Package ghidra.program.util
Class FunctionTagFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.FunctionLocation
ghidra.program.util.FunctionTagFieldLocation
- All Implemented Interfaces:
Cloneable,Comparable<ProgramLocation>
Provides information about the location of an object that
represents the tag names assigned to a function.
-
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 XMLFunctionTagFieldLocation(Program program, Address locationAddr, Address functionAddr, String tags, int charOffset) Construct a new FunctionTagFieldLocation object. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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()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
-
FunctionTagFieldLocation
public FunctionTagFieldLocation(Program program, Address locationAddr, Address functionAddr, String tags, int charOffset) Construct a new FunctionTagFieldLocation object.- Parameters:
program- the program of the locationlocationAddr- the address of the listing location (i.e., referent code unit)functionAddr- the function addresstags- the function tag field text.charOffset- the character position within the field
-
FunctionTagFieldLocation
public FunctionTagFieldLocation()Default constructor needed for restoring a program location from XML
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classProgramLocation
-
equals
- Overrides:
equalsin classFunctionLocation
-
toString
- Overrides:
toStringin 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
-