Package ghidra.app.util.viewer.field
Class ArrayElementFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.CodeUnitLocation
-
- ghidra.program.util.OperandFieldLocation
-
- ghidra.app.util.viewer.field.ArrayElementFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class ArrayElementFieldLocation extends OperandFieldLocation
-
-
Field Summary
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description ArrayElementFieldLocation()
Default constructor needed for restoring from XML.ArrayElementFieldLocation(Program program, Address address, int[] componentPath, java.lang.String displayValue, int elementIndex, int charOffset)
Creates an ArrayElementFieldLocation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getElementIndexOnLine(Data firstDataOnLine)
-
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
-
ArrayElementFieldLocation
public ArrayElementFieldLocation(Program program, Address address, int[] componentPath, java.lang.String displayValue, int elementIndex, int charOffset)
Creates an ArrayElementFieldLocation- Parameters:
program
- the programaddress
- the address of the locationcomponentPath
- the data component pathdisplayValue
- the text being displayed in the text.elementIndex
- the element of the array on the line.charOffset
- the character position within the text.
-
ArrayElementFieldLocation
public ArrayElementFieldLocation()
Default constructor needed for restoring from XML.
-
-
Method Detail
-
getElementIndexOnLine
public int getElementIndexOnLine(Data firstDataOnLine)
-
-