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.intgetDefaultWidth()Get default width of the column in pixels.java.lang.StringgetTitle()Gets title of the column.java.lang.StringgetValue(int location)Get instruction mnemonic.booleanisEditable()Determines whether this column is editable by user.voidsetValue(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:DebuggerColumnGets class type of the column.- Specified by:
getClassTypein interfaceDebuggerColumn<java.lang.String>- Returns:
- Java type of this column
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DebuggerColumnGets title of the column.- Specified by:
getTitlein interfaceDebuggerColumn<java.lang.String>- Returns:
- title of this column
-
isEditable
public boolean isEditable()
Description copied from interface:DebuggerColumnDetermines 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:
isEditablein 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:
setValuein 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:
getValuein 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:DebuggerColumnGet default width of the column in pixels. If it is not known, this method should return -1.- Specified by:
getDefaultWidthin interfaceDebuggerColumn<java.lang.String>- Returns:
- default width of the column in pixels or -1 if it is not known
-
-