Package ghidra.program.util
Class XRefFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.CodeUnitLocation
-
- ghidra.program.util.XRefFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
- Direct Known Subclasses:
XRefHeaderFieldLocation
public class XRefFieldLocation extends CodeUnitLocation
TheXRefFieldLocation
class contains specific location information within the XREF field of a CodeUnitLocation object.
-
-
Field Summary
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description XRefFieldLocation()
Creates a cross reference field location.XRefFieldLocation(Program program, Address addr, int[] componentPath, Address refAddr, int index, int charOffset)
Construct a new XRefFieldLocation object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
Returns the index of the XREF in the list.java.lang.String
toString()
-
Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, equals, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, hashCode, restoreState, saveState
-
-
-
-
Constructor Detail
-
XRefFieldLocation
public XRefFieldLocation(Program program, Address addr, int[] componentPath, Address refAddr, int index, int charOffset)
Construct a new XRefFieldLocation object.- Parameters:
program
- the program of the locationaddr
- address of the location appear at more than one group path); may be nullcomponentPath
- array of indexes for each nested data component; the index is the data component's index within its parent; may be nullrefAddr
- the reference address at this location.index
- the index of the XREF in the list of all XREFs at this address.charOffset
- the character position within the XREF.
-
XRefFieldLocation
public XRefFieldLocation()
Creates a cross reference field location. Should only be used for XML restoring.
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the index of the XREF in the list.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classProgramLocation
-
-