Package ghidra.program.util
Class RegisterFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.RegisterFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class RegisterFieldLocation extends ProgramLocation
ProgramLocation for the Register Field.
-
-
Field Summary
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description RegisterFieldLocation()Default constructorRegisterFieldLocation(Program program, Address addr, java.lang.String[] registerNames, java.lang.String[] registerStrings, int row, int charOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RegistergetRegister()java.lang.String[]getRegisterStrings()Get the register strings.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.-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, isValid, toString
-
-
-
-
Method Detail
-
getRegisterStrings
public java.lang.String[] getRegisterStrings()
Get the register strings.
-
getRegister
public Register getRegister()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classProgramLocation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classProgramLocation
-
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
-
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
-
-