|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.processor.proc.Program
public class Program
A program is a sequence of ProgramInstruction. Certain
ProgramInstructions, such as IfInstruction and WhileInstruction may
have pointers to sub programs.
| 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. |
ProgramInstruction |
getCurrentInstruction()
Returns the next instruction to be executed, or null if there are none or no more instructions. |
PlanNode |
getDescriptionProperties()
|
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<ProgramInstruction> |
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.Object clone()
clone in class java.lang.Objectpublic PlanNode getDescriptionProperties()
public java.util.List<ProgramInstruction> getProcessorInstructions()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||