java.lang.Objectjava.lang.Enum<Befehl>
Befehl
public enum Befehl
Die Befehle der Registermaschine
Enum Constant Summary | |
---|---|
____
|
|
ADD
|
|
CLOAD
|
|
DEC
|
|
DIV
|
|
END
|
|
ILOAD
|
|
INC
|
|
ISTORE
|
|
JEQ
|
|
JGE
|
|
JGT
|
|
JLE
|
|
JLT
|
|
JUMP
|
|
LOAD
|
|
MULT
|
|
STORE
|
|
SUB
|
Method Summary | |
---|---|
int |
brauchtArgument()
Nenne die Art des Arguments, das der Befehl braucht. |
static Befehl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Befehl[] |
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 Befehl ____
public static final Befehl ADD
public static final Befehl CLOAD
public static final Befehl DEC
public static final Befehl DIV
public static final Befehl END
public static final Befehl ILOAD
public static final Befehl INC
public static final Befehl ISTORE
public static final Befehl JEQ
public static final Befehl JGE
public static final Befehl JGT
public static final Befehl JLE
public static final Befehl JLT
public static final Befehl JUMP
public static final Befehl LOAD
public static final Befehl MULT
public static final Befehl STORE
public static final Befehl SUB
Method Detail |
---|
public int brauchtArgument()
public static Befehl 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 name
java.lang.NullPointerException
- if the argument is nullpublic static Befehl[] values()
for (Befehl c : Befehl.values()) System.out.println(c);