Class OpcodeColumn

  • All Implemented Interfaces:
    DebuggerColumn<java.lang.String>

    public class OpcodeColumn
    extends java.lang.Object
    implements DebuggerColumn<java.lang.String>
    This class represents "opcode" column in the debug table. The opcode means operating code - the formatted binary representation of the instruction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<java.lang.String> getClassType()
      Gets class type of the column.
      int getDefaultWidth()
      Get default width of the column in pixels.
      java.lang.String getTitle()
      Gets title of the column.
      java.lang.String getValue​(int location)
      Get opcode for instruction at specific location.
      boolean isEditable()
      Determines whether this column is editable by user.
      void setValue​(int location, java.lang.Object value)
      Has no effect.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpcodeColumn

        public OpcodeColumn​(Disassembler disassembler)
    • Method Detail

      • getClassType

        public java.lang.Class<java.lang.String> getClassType()
        Description copied from interface: DebuggerColumn
        Gets class type of the column.
        Specified by:
        getClassType in interface DebuggerColumn<java.lang.String>
        Returns:
        Java type of this column
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: DebuggerColumn
        Gets title of the column.
        Specified by:
        getTitle in interface DebuggerColumn<java.lang.String>
        Returns:
        title of this column
      • isEditable

        public boolean isEditable()
        Description copied from interface: DebuggerColumn
        Determines whether this column is editable by user. For example, a "mnemo" column shouldn't be editable, but "breakpoint" column can (and should). Note that the returned value holds to all cells in the column.
        Specified by:
        isEditable in interface DebuggerColumn<java.lang.String>
        Returns:
        true if the column is editable, false otherwise
      • setValue

        public void setValue​(int location,
                             java.lang.Object value)
        Has no effect.
        Specified by:
        setValue in interface DebuggerColumn<java.lang.String>
        Parameters:
        location - memory address (not row in debug table)
        value - new value of the cell
      • getValue

        public java.lang.String getValue​(int location)
        Get opcode for instruction at specific location.
        Specified by:
        getValue in interface DebuggerColumn<java.lang.String>
        Parameters:
        location - memory address (not row in debug table)
        Returns:
        Opcode string of an instruction at specific location
      • getDefaultWidth

        public int getDefaultWidth()
        Description copied from interface: DebuggerColumn
        Get default width of the column in pixels. If it is not known, this method should return -1.
        Specified by:
        getDefaultWidth in interface DebuggerColumn<java.lang.String>
        Returns:
        default width of the column in pixels or -1 if it is not known