Interface DebuggerColumn<T>
- Type Parameters:
T- Java type of this column
public interface DebuggerColumn<T>
Column in the debugger table. CPUs provide custom columns with
CPU.getDebuggerColumns(Decoder).-
Method Summary
Modifier and TypeMethodDescriptionstatic DebuggerColumn<String> Creates "address" column.default intgetTitle()getValue(int location) Gets a value from the column cell.default booleanDetermines whether cells of this column are editable by user.static DebuggerColumn<String> Creates "instruction" column showing instruction mnemonics.static DebuggerColumn<String> Creates "opcode" column showing formatted binary representation of instructions.default voidSet a value to a column cell of an editable column.static DebuggerColumn<String> text(String title, IntFunction<String> values) Creates read-only text column.
-
Method Details
-
getClassType
-
getTitle
String getTitle()- Returns:
- title of this column
-
getValue
Gets a value from the column cell.- Parameters:
location- Cell index (usually memory address). It is not a "row number" in the debugger table.- Returns:
- cell value
-
isEditable
default boolean isEditable()Determines whether cells of this column are editable by user. Columns are read-only by default.- Returns:
- true if the column is editable, false otherwise
-
setValue
Set a value to a column cell of an editable column.- Parameters:
location- Cell index (usually memory address). It is not a "row number" in the debugger table.value- new value assigned to the cell- Throws:
IllegalArgumentException- if the value cannot be assigned
-
getDefaultWidth
default int getDefaultWidth()- Returns:
- default width of the column in pixels or -1 if it is not known
-
text
Creates read-only text column.- Parameters:
title- column titlevalues- cell value by location- Returns:
- new column
-
address
Creates "address" column.- Parameters:
format- address format forString.format(String, Object...), e.g."%04X"- Returns:
- new column
-
mnemo
Creates "instruction" column showing instruction mnemonics.- Parameters:
instructions- caller-owned lookup of captured rows; share it across instruction columns- Returns:
- new column
-
opcode
Creates "opcode" column showing formatted binary representation of instructions.- Parameters:
instructions- caller-owned lookup of captured rows; share it across instruction columns- Returns:
- new column
-