org.teiid.query.processor.xml
Class Program

java.lang.Object
  extended by org.teiid.query.processor.xml.Program

public class Program
extends java.lang.Object

A program is a sequence of ProcessorInstructions. Certain ProcessorInstructions, such as IfInstruction and WhileInstruction may have pointers to sub programs. XMLPlan will maintain a stack of programs during execution.


Constructor Summary
Program()
          Constructor for Program.
 
Method Summary
 void addInstruction(ProcessorInstruction instruction)
           
 void addInstructions(Program instructions)
           
 PlanNode getDescriptionProperties()
           
 ProcessorInstruction getInstructionAt(int instructionIndex)
          Returns the instruction to be executed at the indicated index, or null if there is no instruction at that index.
 void removeInstructionAt(int instructionIndex)
          Removes the instruction to be executed at the indicated index, or do nothing if there is no instruction at that index.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Program

public Program()
Constructor for Program.

Method Detail

getInstructionAt

public ProcessorInstruction getInstructionAt(int instructionIndex)
Returns the instruction to be executed at the indicated index, or null if there is no instruction at that index.

Returns:
instruction to be executed at the indicated index, or null if there is no instruction at that index.

removeInstructionAt

public void removeInstructionAt(int instructionIndex)
Removes the instruction to be executed at the indicated index, or do nothing if there is no instruction at that index.

Parameters:
instructionIndex - index of instruction to be removed

addInstruction

public void addInstruction(ProcessorInstruction instruction)

addInstructions

public void addInstructions(Program instructions)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescriptionProperties

public PlanNode getDescriptionProperties()


Copyright © 2010. All Rights Reserved.