Class FunctionSignatureFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.FunctionLocation
ghidra.program.util.FunctionSignatureFieldLocation
- All Implemented Interfaces:
Cloneable, Comparable<ProgramLocation>
- Direct Known Subclasses:
FunctionCallingConventionFieldLocation, FunctionEndParametersFieldLocation, FunctionInlineFieldLocation, FunctionNameFieldLocation, FunctionNoReturnFieldLocation, FunctionParameterFieldLocation, FunctionReturnTypeFieldLocation, FunctionStartParametersFieldLocation, FunctionThunkFieldLocation
The
FunctionSignatureFieldLocation class provides specific information
about the Function Signature field within a program location.-
Field Summary
Fields inherited from class FunctionLocation
functionAddrFields inherited from class ProgramLocation
addr, program, refAddr -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor needed for restoring a program location from XMLFunctionSignatureFieldLocation(Program program, Address functionAddr) Construct a new FunctionSignatureFieldLocation object with field-based positioning.FunctionSignatureFieldLocation(Program program, Address functionAddr, int col, String signature) Construct a new FunctionSignatureFieldLocation object.FunctionSignatureFieldLocation(Program program, Address locationAddr, Address functionAddr, int charOffset, String signature) Construct a new FunctionSignatureFieldLocation object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the function signature string at this location.inthashCode()booleanvoidrestoreState(Program p, SaveState obj) Restore this function location using the given program and save state object.voidSave this function location to the given save state object.toString()Returns a String representation of this location.Methods inherited from class FunctionLocation
getFunctionAddress, isValidMethods inherited from class ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
FunctionSignatureFieldLocation
public FunctionSignatureFieldLocation(Program program, Address locationAddr, Address functionAddr, int charOffset, String signature) Construct a new FunctionSignatureFieldLocation object.- Parameters:
program- the program of the locationlocationAddr- the address of the listing location (i.e., referent code unit)functionAddr- the function addresscharOffset- the character position within the function signature string for this location.signature- the function signature String at this location.
-
FunctionSignatureFieldLocation
public FunctionSignatureFieldLocation(Program program, Address functionAddr, int col, String signature) Construct a new FunctionSignatureFieldLocation object.- Parameters:
program- the program of the locationfunctionAddr- the function addresscol- the character position within the function signature string for this location.signature- the function signature String at this location.
-
FunctionSignatureFieldLocation
-
FunctionSignatureFieldLocation
public FunctionSignatureFieldLocation()Default constructor needed for restoring a program location from XML
-
-
Method Details
-
isFieldBasedPositioning
public boolean isFieldBasedPositioning() -
getSignature
Return the function signature string at this location. -
toString
Returns a String representation of this location.- Overrides:
toStringin classFunctionLocation
-
hashCode
public int hashCode()- Overrides:
hashCodein classProgramLocation
-
equals
- Overrides:
equalsin classFunctionLocation
-
saveState
Description copied from class:FunctionLocationSave this function location to the given save state object.- Overrides:
saveStatein classFunctionLocation- Parameters:
obj- the save state object for saving the location
-
restoreState
Description copied from class:FunctionLocationRestore this function location using the given program and save state object.- Overrides:
restoreStatein classFunctionLocation- Parameters:
p- the program containing the function locationobj- the save state object for saving the location
-