Package ghidra.util.table.field
Class CodeUnitTableCellData
- java.lang.Object
-
- ghidra.util.table.field.CodeUnitTableCellData
-
- All Implemented Interfaces:
java.lang.Comparable<CodeUnitTableCellData>
public class CodeUnitTableCellData extends java.lang.Object implements java.lang.Comparable<CodeUnitTableCellData>
A class that knows how to renderCodeUnit
s in 1 or more lines
-
-
Constructor Summary
Constructors Constructor Description CodeUnitTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat, int codeUnitOffset, int codeUnitCount)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CodeUnitTableCellData data)
java.lang.String
getDisplayString()
Get the visual representation for the code unit at or containing the address associated with this cell's rowjava.util.List<java.lang.String>
getDisplayStrings()
java.lang.String
getHTMLDisplayString()
Get the visual representation as HTML for the code unit at or containing the address associated with this cell's rowboolean
isOffcut()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CodeUnitTableCellData
public CodeUnitTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat, int codeUnitOffset, int codeUnitCount)
Constructor- Parameters:
location
- the location of the code unit to displaycodeUnitFormat
- the format needed to render the code unitcodeUnitOffset
- relative code-unit offset from the specified address (this is not a byte-offset, it is expressed in terms of number of code-units).codeUnitCount
- number of code-units to be displayed
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(CodeUnitTableCellData data)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CodeUnitTableCellData>
-
getDisplayString
public java.lang.String getDisplayString()
Get the visual representation for the code unit at or containing the address associated with this cell's row- Returns:
- the display string
-
getHTMLDisplayString
public java.lang.String getHTMLDisplayString()
Get the visual representation as HTML for the code unit at or containing the address associated with this cell's row- Returns:
- the display string
-
getDisplayStrings
public java.util.List<java.lang.String> getDisplayStrings()
-
isOffcut
public boolean isOffcut()
-
-