Package ghidra.program.util
Class OffsetFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.CodeUnitLocation
ghidra.program.util.OffsetFieldLocation
- All Implemented Interfaces:
Cloneable
,Comparable<ProgramLocation>
Provides specific information about a program location within an offset field
-
Field Summary
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorDescriptionOffsetFieldLocation
(Program program, Address addr, int[] componentPath, int charOffset, OffsetFieldType type) Creates a newOffsetFieldLocation
for the given addressDefault constructor needed for restoring the field location from XML -
Method Summary
Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
Methods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, equals, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy, hashCode, restoreState, saveState, toString
-
Constructor Details
-
OffsetFieldLocation
public OffsetFieldLocation(Program program, Address addr, int[] componentPath, int charOffset, OffsetFieldType type) Creates a newOffsetFieldLocation
for the given address- Parameters:
program
- the programaddr
- the address of the byte for this locationcomponentPath
- the path to data, or nullcharOffset
- the position into the string representation indicating the exact position within the fieldtype
- Thetype
of offset field
-
OffsetFieldLocation
Default constructor needed for restoring the field location from XML- Parameters:
type
- Thetype
of offset field
-
-
Method Details
-
getType
Returns the type of offset field.- Returns:
- the type of offset field
-