Package ghidra.program.util
Class SpacerFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.CodeUnitLocation
-
- ghidra.program.util.SpacerFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class SpacerFieldLocation extends CodeUnitLocation
TheSpacerFieldLocationclass 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
Constructors Constructor Description SpacerFieldLocation()Should only be used by XML restoration.SpacerFieldLocation(Program program, Address addr, int[] componentPath, int charOffset, java.lang.String text)Construct a new SpacerFieldLocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetText()Returns the text of the Spacer field containing this location.inthashCode()voidrestoreState(Program p, SaveState obj)Restore this program location using the given program and save state object.voidsaveState(SaveState obj)Save this program location to the given save state object.java.lang.StringtoString()returns a String representation of this location.-
Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow
-
-
-
-
Constructor Detail
-
SpacerFieldLocation
public SpacerFieldLocation(Program program, Address addr, int[] componentPath, int charOffset, java.lang.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 Detail
-
getText
public java.lang.String getText()
Returns the text of the Spacer field containing this location.
-
toString
public java.lang.String toString()
returns a String representation of this location.- Overrides:
toStringin classProgramLocation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classProgramLocation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classProgramLocation
-
restoreState
public void restoreState(Program p, SaveState obj)
Description copied from class:ProgramLocationRestore this program location using the given program and save state object.- Overrides:
restoreStatein classProgramLocation- Parameters:
p- program to restore fromobj- the save state to restore from
-
saveState
public void saveState(SaveState obj)
Description copied from class:ProgramLocationSave this program location to the given save state object.- Overrides:
saveStatein classProgramLocation- Parameters:
obj- the save state object for saving the location
-
-