Class MnemoColumn
- java.lang.Object
-
- net.emustudio.emulib.runtime.interaction.debugger.MnemoColumn
-
- All Implemented Interfaces:
DebuggerColumn<java.lang.String>
public class MnemoColumn extends java.lang.Object implements DebuggerColumn<java.lang.String>
This class represents "mnemo" column in the debug table. The column displays mnemonic (textual) representations of the instruction at specific location..
-
-
Constructor Summary
Constructors Constructor Description MnemoColumn(Disassembler disassembler)
-
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 instruction mnemonic.boolean
isEditable()
Determines whether this column is editable by user.void
setValue(int location, java.lang.Object value)
Has no effect.
-
-
-
Constructor Detail
-
MnemoColumn
public MnemoColumn(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 interfaceDebuggerColumn<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 interfaceDebuggerColumn<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 interfaceDebuggerColumn<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 interfaceDebuggerColumn<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 instruction mnemonic.- Specified by:
getValue
in interfaceDebuggerColumn<java.lang.String>
- Parameters:
location
- memory address (not row in debug table)- Returns:
- Mnemonic form 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 interfaceDebuggerColumn<java.lang.String>
- Returns:
- default width of the column in pixels or -1 if it is not known
-
-