Package ghidra.program.util
Class FunctionSignatureSourceFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.FunctionLocation
ghidra.program.util.FunctionSignatureSourceFieldLocation
- All Implemented Interfaces:
Cloneable,Comparable<ProgramLocation>
The
FunctionSignatureFieldLocation class provides specific information
about the Function Signature field within a program location.-
Field Summary
Fields inherited from class ghidra.program.util.FunctionLocation
functionAddrFields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor needed for restoring a program location from XMLFunctionSignatureSourceFieldLocation(Program program, Address locationAddr, Address functionAddr, String source, int charOffset) Construct a new FunctionSignatureFieldLocation object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the function signature source at this location.inthashCode()voidrestoreState(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 ghidra.program.util.FunctionLocation
getFunctionAddress, isValidMethods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
FunctionSignatureSourceFieldLocation
public FunctionSignatureSourceFieldLocation(Program program, Address locationAddr, Address functionAddr, String source, int charOffset) Construct a new FunctionSignatureFieldLocation object.- Parameters:
program- the program of the locationlocationAddr- the address of this location.functionAddr- the function addresssource- the function signature SourceType at this location.charOffset- field character position
-
FunctionSignatureSourceFieldLocation
public FunctionSignatureSourceFieldLocation()Default constructor needed for restoring a program location from XML
-
-
Method Details
-
getSignatureSource
Return the function signature source at this location.- See Also:
-
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
-