|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IJVMCommandArgument>
com.github.croesch.micro_debug.mic1.mem.IJVMCommandArgument
public enum IJVMCommandArgument
Argument that belongs to an IJVMCommand.
| Enum Constant Summary | |
|---|---|
BYTE
represents a single byte |
|
CONST
represents a constant |
|
INDEX
represents an index |
|
LABEL
represents a label defined in the assembler code |
|
OFFSET
represents an offset |
|
VARNUM
represents a variable |
|
| Method Summary | |
|---|---|
int |
getNumberOfBytes()
Returns the number of bytes needed to build this argument. |
String |
getRepresentationOfArgument(int addr,
int value,
Memory mem)
Returns the String representing the given value of this argument. |
String |
represent(int addr,
int value,
Memory mem)
Returns the String representation of the given value that is expected to have the correct size. |
static IJVMCommandArgument |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IJVMCommandArgument[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IJVMCommandArgument BYTE
public static final IJVMCommandArgument LABEL
public static final IJVMCommandArgument CONST
public static final IJVMCommandArgument VARNUM
public static final IJVMCommandArgument OFFSET
public static final IJVMCommandArgument INDEX
| Method Detail |
|---|
public static IJVMCommandArgument[] values()
for (IJVMCommandArgument c : IJVMCommandArgument.values()) System.out.println(c);
public static IJVMCommandArgument valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic final int getNumberOfBytes()
public final String getRepresentationOfArgument(int addr,
int value,
Memory mem)
String representing the given value of this argument.
addr - the address of the command this argument belongs tovalue - the value of the argument to represent as Stringmem - the memory to fetch values from
String representing the given value for this argument.
public String represent(int addr,
int value,
Memory mem)
String representation of the given value that is expected to have the correct size. By default
this will return the hexadecimal representation of the given number.
addr - the address of the command this argument belongs tovalue - the number to representmem - the memory to fetch values from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||