Package ghidra.program.util
Class SpacerFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.CodeUnitLocation
ghidra.program.util.SpacerFieldLocation
- All Implemented Interfaces:
Cloneable
,Comparable<ProgramLocation>
The
SpacerFieldLocation
class contains specific location information
within a spacer field of a CodeUnitLocation object.-
Field Summary
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorDescriptionShould only be used by XML restoration.SpacerFieldLocation
(Program program, Address addr, int[] componentPath, int charOffset, String text) Construct a new SpacerFieldLocation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getText()
Returns the text of the Spacer field containing this location.int
hashCode()
void
restoreState
(Program p, SaveState obj) Restore this program location using the given program and save state object.void
Save this program location to the given save state object.toString()
returns a String representation of this location.Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
Methods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
SpacerFieldLocation
public SpacerFieldLocation(Program program, Address addr, int[] componentPath, int charOffset, String text) Construct a new SpacerFieldLocation.- Parameters:
program
- the program of the locationaddr
- the address of the codeunit.componentPath
- the componentPath of the codeUnitcharOffset
- the character position on the row of the location.text
- the constant text in this spacer.
-
SpacerFieldLocation
public SpacerFieldLocation()Should only be used by XML restoration.
-
-
Method Details
-
getText
Returns the text of the Spacer field containing this location. -
toString
returns a String representation of this location.- Overrides:
toString
in classProgramLocation
-
hashCode
public int hashCode()- Overrides:
hashCode
in classProgramLocation
-
equals
- Overrides:
equals
in classProgramLocation
-
restoreState
Description copied from class:ProgramLocation
Restore this program location using the given program and save state object.- Overrides:
restoreState
in classProgramLocation
- Parameters:
p
- program to restore fromobj
- the save state to restore from
-
saveState
Description copied from class:ProgramLocation
Save this program location to the given save state object.- Overrides:
saveState
in classProgramLocation
- Parameters:
obj
- the save state object for saving the location
-