Package ghidra.app.util.viewer.field
Class ResourceFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.CodeUnitLocation
-
- ghidra.program.util.OperandFieldLocation
-
- ghidra.app.util.viewer.field.ResourceFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class ResourceFieldLocation extends OperandFieldLocation
AProgramLocation
of an item that is a Resource embedded in a binary (ie. a embedded graphic image)
-
-
Field Summary
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description ResourceFieldLocation()
Default constructor needed for restoring from XML.ResourceFieldLocation(Program program, Address address, int[] componentPath, java.lang.String displayValue, int opIndex, int characterOffset, Data data)
Creates an ResourceFieldLocation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
getResourceData()
Returns the resource's Data instance.boolean
isDataImageResource()
Returns true if this resource is aDataImage
.-
Methods inherited from class ghidra.program.util.OperandFieldLocation
equals, getOperandIndex, getOperandRepresentation, getSubOperandIndex, getVariableOffset, hashCode, restoreState, saveState, toString
-
Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow
-
-
-
-
Constructor Detail
-
ResourceFieldLocation
public ResourceFieldLocation(Program program, Address address, int[] componentPath, java.lang.String displayValue, int opIndex, int characterOffset, Data data)
Creates an ResourceFieldLocation- Parameters:
program
- the programaddress
- the address of the locationcomponentPath
- the data component pathdisplayValue
- the text being displayed in the text.opIndex
- the index of the operand at this location.characterOffset
- the character position from the beginning of the operand.data
- Data instance at the specified address / component path
-
ResourceFieldLocation
public ResourceFieldLocation()
Default constructor needed for restoring from XML.
-
-