public class InstructionSequence
extends java.lang.Object
Constructor | Description |
---|---|
InstructionSequence() |
Modifier and Type | Method | 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. an operator)
|
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