Package ghidra.program.util
Class SubDataFieldLocation
- java.lang.Object
- 
- ghidra.program.util.ProgramLocation
- 
- ghidra.program.util.CodeUnitLocation
- 
- ghidra.program.util.SubDataFieldLocation
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<ProgramLocation>
 
 public class SubDataFieldLocation extends CodeUnitLocation TheSubDataFieldLocationclass contains specific location information within the Sub-data field of a CodeUnitLocation object.
- 
- 
Field Summary- 
Fields inherited from class ghidra.program.util.ProgramLocationaddr, program, refAddr
 
- 
 - 
Constructor SummaryConstructors Constructor Description SubDataFieldLocation()Should only be used by XML restoration.SubDataFieldLocation(Program program, Address addr, GroupPath path, int[] componentPath, Address refAddr, java.lang.String rep, int charOffset, java.lang.String fieldName)Construct a new SubDataFieldLocation object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDataRepresentation()Returns a string representation of the dataValue at this location.java.lang.StringgetFieldName()Returns the name of the sub-data field.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()Returns a String representation of this location.- 
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- 
SubDataFieldLocationpublic SubDataFieldLocation(Program program, Address addr, GroupPath path, int[] componentPath, Address refAddr, java.lang.String rep, int charOffset, java.lang.String fieldName) Construct a new SubDataFieldLocation object.- Parameters:
- program- the program of the location
- addr- address of the location
- path- path associated with the address (an address could appear at more than one group path); may be null
- componentPath- array of indexes for each nested data component; the index is the data component's index within its parent; may be null
- refAddr- the "referred to" address if the location is over a reference; may be null
- rep- the String representation of the operand.
- charOffset- the character position within the operand string.
- fieldName- the name of the sub-data field
 
 - 
SubDataFieldLocationpublic SubDataFieldLocation() Should only be used by XML restoration.
 
- 
 - 
Method Detail- 
getDataRepresentationpublic java.lang.String getDataRepresentation() Returns a string representation of the dataValue at this location.
 - 
getFieldNamepublic java.lang.String getFieldName() Returns the name of the sub-data field.
 - 
toStringpublic java.lang.String toString() Returns a String representation of this location.- Overrides:
- toStringin class- ProgramLocation
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- ProgramLocation
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- ProgramLocation
 
 - 
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
 
 - 
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
 
 
- 
 
-