Package ghidra.program.util
Class FunctionCallFixupFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.FunctionLocation
ghidra.program.util.FunctionCallFixupFieldLocation
- All Implemented Interfaces:
Cloneable
,Comparable<ProgramLocation>
The
FunctionCallFixupFieldLocation
class provides specific information
about the Function call-fixup field within a program location.-
Field Summary
Fields inherited from class ghidra.program.util.FunctionLocation
functionAddr
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorDescriptionDefault constructor needed for restoring a program location from XMLFunctionCallFixupFieldLocation
(Program program, Address locationAddr, Address functionAddr, String callFixupName, int charOffset) Construct a new FunctionCallFixupFieldLocation object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get function call fixup nameint
hashCode()
void
restoreState
(Program p, SaveState obj) Restore this function location using the given program and save state object.void
Save this function location to the given save state object.toString()
Methods inherited from class ghidra.program.util.FunctionLocation
getFunctionAddress, isValid
Methods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
FunctionCallFixupFieldLocation
public FunctionCallFixupFieldLocation(Program program, Address locationAddr, Address functionAddr, String callFixupName, int charOffset) Construct a new FunctionCallFixupFieldLocation object.- Parameters:
program
- the program of the locationlocationAddr
- the address of the listing location (i.e., referent code unit)functionAddr
- the function addresscallFixupName
- the function call-fixup field text String at this location.charOffset
- the character position within the field
-
FunctionCallFixupFieldLocation
public FunctionCallFixupFieldLocation()Default constructor needed for restoring a program location from XML
-
-
Method Details
-
getCallFixupName
Get function call fixup name- Returns:
- function call fixup name
-
hashCode
public int hashCode()- Overrides:
hashCode
in classProgramLocation
-
equals
- Overrides:
equals
in classFunctionLocation
- See Also:
-
toString
- Overrides:
toString
in classFunctionLocation
-
saveState
Description copied from class:FunctionLocation
Save this function location to the given save state object.- Overrides:
saveState
in classFunctionLocation
- Parameters:
obj
- the save state object for saving the location
-
restoreState
Description copied from class:FunctionLocation
Restore this function location using the given program and save state object.- Overrides:
restoreState
in classFunctionLocation
- Parameters:
p
- the program containing the function locationobj
- the save state object for saving the location
-