public class InstructionSequence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object> |
instructions |
Constructor and Description |
---|
InstructionSequence() |
Modifier and Type | Method and Description |
---|---|
void |
addBoolean(boolean value)
Adds a bool value.
|
void |
addInteger(int value)
Adds an int value.
|
void |
addName(java.lang.String name)
Add a name (ex.
|
void |
addProc(InstructionSequence child)
Adds a proc (sub-sequence of instructions).
|
void |
addReal(float value)
Adds a real value.
|
void |
execute(ExecutionContext context)
Executes the instruction sequence.
|
public void addName(java.lang.String name)
name
- the namepublic void addInteger(int value)
value
- the valuepublic void addReal(float value)
value
- the valuepublic void addBoolean(boolean value)
value
- the valuepublic void addProc(InstructionSequence child)
child
- the child procpublic void execute(ExecutionContext context)
context
- the execution context