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 Details

    • getClassType

      Class<T> getClassType()
      Returns:
      Java type of this column
    • getTitle

      String getTitle()
      Returns:
      title of this column
    • getValue

      T getValue(int location)
      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

      default void setValue(int location, Object value)
      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

      static DebuggerColumn<String> text(String title, IntFunction<String> values)
      Creates read-only text column.
      Parameters:
      title - column title
      values - cell value by location
      Returns:
      new column
    • address

      static DebuggerColumn<String> address(String format)
      Creates "address" column.
      Parameters:
      format - address format for String.format(String, Object...), e.g. "%04X"
      Returns:
      new column
    • mnemo

      static DebuggerColumn<String> mnemo(Decoder instructions)
      Creates "instruction" column showing instruction mnemonics.
      Parameters:
      instructions - caller-owned lookup of captured rows; share it across instruction columns
      Returns:
      new column
    • opcode

      static DebuggerColumn<String> opcode(Decoder instructions)
      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