public enum InstructionCode extends java.lang.Enum<InstructionCode>
| Enum Constant and Description |
|---|
ADD |
CMP |
DAT |
DJN |
JMN |
JMP |
JMZ |
MOV |
SLT |
SPL |
SUB |
| Modifier and Type | Method and Description |
|---|---|
static InstructionCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InstructionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstructionCode DAT
public static final InstructionCode MOV
public static final InstructionCode ADD
public static final InstructionCode SUB
public static final InstructionCode JMP
public static final InstructionCode JMZ
public static final InstructionCode JMN
public static final InstructionCode SLT
public static final InstructionCode DJN
public static final InstructionCode CMP
public static final InstructionCode SPL
public static InstructionCode[] values()
for (InstructionCode c : InstructionCode.values()) System.out.println(c);
public static InstructionCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null