Package ghidra.program.util
Class FieldNameFieldLocation
- java.lang.Object
- 
- ghidra.program.util.ProgramLocation
- 
- ghidra.program.util.CodeUnitLocation
- 
- ghidra.program.util.FieldNameFieldLocation
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<ProgramLocation>
 
 public class FieldNameFieldLocation extends CodeUnitLocation TheFieldNameFieldLocationclass provides specific information about the Function Name field within a program location.
- 
- 
Field Summary- 
Fields inherited from class ghidra.program.util.ProgramLocationaddr, program, refAddr
 
- 
 - 
Constructor SummaryConstructors Constructor Description FieldNameFieldLocation()Default constructor needed for restoring a field name location from XMLFieldNameFieldLocation(Program program, Address addr, int[] componentPath, java.lang.String fieldName, int charOffset)Construct a new FieldNameFieldLocation.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetFieldName()Returns the field name of this location.inthashCode()voidrestoreState(Program p, SaveState obj)Restore this program location using the given program and save state object.voidsaveState(SaveState obj)Save this program location to the given save state object.java.lang.StringtoString()- 
Methods inherited from class ghidra.program.util.CodeUnitLocationisValid
 - 
Methods inherited from class ghidra.program.util.ProgramLocationcompareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow
 
- 
 
- 
- 
- 
Constructor Detail- 
FieldNameFieldLocationpublic FieldNameFieldLocation(Program program, Address addr, int[] componentPath, java.lang.String fieldName, int charOffset) Construct a new FieldNameFieldLocation.- Parameters:
- the- program of the location
- addr- the address of the codeunit.
- componentPath- if not null, it is the array of indexes that point to a specific data type inside of another data type
- fieldName- the field name
- charOffset- the character position within the field name for this location.
 
 - 
FieldNameFieldLocationpublic FieldNameFieldLocation() Default constructor needed for restoring a field name location from XML
 
- 
 - 
Method Detail- 
getFieldNamepublic java.lang.String getFieldName() Returns the field name of this location.
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- ProgramLocation
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- ProgramLocation
 
 - 
saveStatepublic void saveState(SaveState obj) Description copied from class:ProgramLocationSave this program location to the given save state object.- Overrides:
- saveStatein class- ProgramLocation
- Parameters:
- obj- the save state object for saving the location
 
 - 
restoreStatepublic void restoreState(Program p, SaveState obj) Description copied from class:ProgramLocationRestore this program location using the given program and save state object.- Overrides:
- restoreStatein class- ProgramLocation
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- ProgramLocation
 
 
- 
 
-