|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.processor.program.Program
public class Program
A program is a sequence of ProgramInstruction. Certain
ProgramInstructions, such as IfInstruction and WhileInstruction may
have pointers to sub programs.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Program()
Constructor for Program. |
|
| Method Summary | |
|---|---|
void |
addInstruction(ProgramInstruction instruction)
|
void |
addInstructions(Program instructions)
|
java.lang.Object |
clone()
Produces a deep clone. |
void |
decrementProgramCounter()
Decrements the program counter, so that the next call to getCurrentInstruction() will return the previous
instruction. |
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
ProgramInstruction |
getCurrentInstruction()
Returns the next instruction to be executed, or null if there are none or no more instructions. |
java.util.Map |
getDescriptionProperties()
Get a description as a set of properties of primitive types such as String, Integer, etc. |
ProgramInstruction |
getInstructionAt(int instructionIndex)
Returns the instruction to be executed at the indicated index, or null if there is no instruction at that index. |
java.util.List |
getProcessorInstructions()
|
void |
incrementProgramCounter()
Increments the program counter, so that the next call to getCurrentInstruction() will return the following
instruction. |
void |
resetProgramCounter()
Resets this program, so it can be run through again. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Program()
| Method Detail |
|---|
public ProgramInstruction getCurrentInstruction()
public void incrementProgramCounter()
getCurrentInstruction() will return the following
instruction. This method is intended to be used by a
ProcessingInstruction itself, to control the flow of execution.
public void decrementProgramCounter()
getCurrentInstruction() will return the previous
instruction. This method is intended to be used by a
ProcessingInstruction itself, to control the flow of execution.
public void resetProgramCounter()
public ProgramInstruction getInstructionAt(int instructionIndex)
public void addInstruction(ProgramInstruction instruction)
public void addInstructions(Program instructions)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.util.Map getDescriptionProperties()
Describable
getDescriptionProperties in interface Describablepublic java.util.Collection getChildPlans()
public java.util.List getProcessorInstructions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||