Enum Befehl

java.lang.Object
  extended by java.lang.Enum<Befehl>
      extended by Befehl
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Befehl>

public enum Befehl
extends java.lang.Enum<Befehl>

Die Befehle der Registermaschine

Version:
2015-01-18
Author:
Bernd Gramlich

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 ____

ADD

public static final Befehl ADD

CLOAD

public static final Befehl CLOAD

DEC

public static final Befehl DEC

DIV

public static final Befehl DIV

END

public static final Befehl END

ILOAD

public static final Befehl ILOAD

INC

public static final Befehl INC

ISTORE

public static final Befehl ISTORE

JEQ

public static final Befehl JEQ

JGE

public static final Befehl JGE

JGT

public static final Befehl JGT

JLE

public static final Befehl JLE

JLT

public static final Befehl JLT

JUMP

public static final Befehl JUMP

LOAD

public static final Befehl LOAD

MULT

public static final Befehl MULT

STORE

public static final Befehl STORE

SUB

public static final Befehl SUB
Method Detail

brauchtArgument

public int brauchtArgument()
Nenne die Art des Arguments, das der Befehl braucht.


valueOf

public static Befehl valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

values

public static Befehl[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Befehl c : Befehl.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared