Package ghidra.program.util
Class RegisterFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.RegisterFieldLocation
- All Implemented Interfaces:
Cloneable
,Comparable<ProgramLocation>
ProgramLocation for the Register Field.
-
Field Summary
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorDescriptionDefault constructorRegisterFieldLocation
(Program program, Address addr, String[] registerNames, String[] registerStrings, int row, int charOffset) -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
Get the register strings.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.Methods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy, isValid, toString
-
Constructor Details
-
RegisterFieldLocation
-
RegisterFieldLocation
public RegisterFieldLocation()Default constructor
-
-
Method Details
-
getRegisterStrings
Get the register strings. -
getRegister
-
hashCode
public int hashCode()- Overrides:
hashCode
in classProgramLocation
-
equals
- Overrides:
equals
in classProgramLocation
-
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
-
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
-