public enum BFFutureCommand extends java.lang.Enum<BFFutureCommand>
BFCommand
, but includes higher level commands.Enum Constant and Description |
---|
COPY_CHUNK_A_TO_B
Copy one
BFScript.MemoryChunk to another. |
DECREMENT
Decrement the value at the pointer by one
|
INCREMENT
Increment the value at the pointer by one
|
INPUT
Accept input saved to the currently pointed at position
|
LOOP_END
End a loop.
|
LOOP_START
Start a loop.
|
MOVE_TO_CHUNK
Move to the starting position of a
BFScript.MemoryChunk . |
PRINT
Print out the value at this pointed position
|
PRINT_CHUNK
Print a
BFScript.MemoryChunk by moving to it's position and printing each value in it. |
SHIFT_DOWN
Shift the pointer down one position
|
SHIFT_UP
Shift the pointer up one position
|
Modifier and Type | Method and Description |
---|---|
BFScript.MemoryChunk |
getChunk()
Get the chunk used in this command
|
int |
getChunkAddress()
Get the memory address of the chunk in this command.
|
int |
getChunkSize()
Get the size of the chunk used in this command
|
BFScript.MemoryChunk |
getDestChunk()
Get the destination chunk used in this command
|
int |
getDestChunkAddress()
Get the memory address of the destination chunk in this command.
|
int |
getDestChunkSize()
Get the size of the destination chunk used in this command.
|
BFFutureCommand |
setChunk(BFScript.MemoryChunk c)
Set the chunk used in this command.
|
BFFutureCommand |
setDestChunk(BFScript.MemoryChunk c)
Set the destination chunk for this command.
|
static BFFutureCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BFFutureCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BFFutureCommand INCREMENT
public static final BFFutureCommand DECREMENT
public static final BFFutureCommand SHIFT_UP
public static final BFFutureCommand SHIFT_DOWN
public static final BFFutureCommand INPUT
public static final BFFutureCommand PRINT
public static final BFFutureCommand LOOP_START
public static final BFFutureCommand LOOP_END
public static final BFFutureCommand MOVE_TO_CHUNK
BFScript.MemoryChunk
.BFScript.MemoryChunk
public static final BFFutureCommand PRINT_CHUNK
BFScript.MemoryChunk
by moving to it's position and printing each value in it.BFScript.MemoryChunk
public static final BFFutureCommand COPY_CHUNK_A_TO_B
BFScript.MemoryChunk
to another.BFScript.MemoryChunk
public static BFFutureCommand[] values()
for (BFFutureCommand c : BFFutureCommand.values()) System.out.println(c);
public static BFFutureCommand 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 int getChunkSize()
BFScript.MemoryChunk
public int getDestChunkSize()
BFScript.MemoryChunk.getSize()
of the destination chunk, or 0 if it doesn't exist.BFScript.MemoryChunk
public int getChunkAddress()
BFScript.MemoryChunk
public int getDestChunkAddress()
BFScript.MemoryChunk
public BFFutureCommand setChunk(BFScript.MemoryChunk c)
c
- Chunk usedpublic BFFutureCommand setDestChunk(BFScript.MemoryChunk c)
c
- Chunk destinationpublic BFScript.MemoryChunk getChunk()
public BFScript.MemoryChunk getDestChunk()