Package ghidra.program.util
Class FunctionTagFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.FunctionLocation
-
- ghidra.program.util.FunctionTagFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class FunctionTagFieldLocation extends FunctionLocation
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
functionAddr
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description FunctionTagFieldLocation()
Default constructor needed for restoring a program location from XMLFunctionTagFieldLocation(Program program, Address locationAddr, Address functionAddr, java.lang.String tags, int charOffset)
Construct a new FunctionTagFieldLocation object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
void
restoreState(Program p, SaveState obj)
Restore this function location using the given program and save state object.void
saveState(SaveState obj)
Save this function location to the given save state object.java.lang.String
toString()
-
Methods inherited from class ghidra.program.util.FunctionLocation
getFunctionAddress, isValid
-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow
-
-
-
-
Constructor Detail
-
FunctionTagFieldLocation
public FunctionTagFieldLocation(Program program, Address locationAddr, Address functionAddr, java.lang.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 Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classProgramLocation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classFunctionLocation
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFunctionLocation
-
saveState
public void saveState(SaveState obj)
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
public void restoreState(Program p, SaveState obj)
Description copied from class:FunctionLocation
Restore this function location using the given program and save state object.- Overrides:
restoreState
in classFunctionLocation
-
-