Enum Constant and Description |
---|
DECREMENT
Decrement the value at the pointer by one
|
INCREMENT
Increment the value at the pointer by one
|
INPUT
Accept one byte of input
|
LOOP_END
End a loop.
|
LOOP_START
Start a loop.
|
PRINT
Print the char value of the pointers position in memory
|
SHIFT_DOWN
Shift the pointer down one position
|
SHIFT_UP
Shift the pointer up one position
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static BFCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BFCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BFCommand SHIFT_UP
public static final BFCommand SHIFT_DOWN
public static final BFCommand INCREMENT
public static final BFCommand DECREMENT
public static final BFCommand PRINT
public static final BFCommand INPUT
public static final BFCommand LOOP_START
public static final BFCommand LOOP_END
public static BFCommand[] values()
for (BFCommand c : BFCommand.values()) System.out.println(c);
public static BFCommand 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<BFCommand>