|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.program.ProgramInstruction
public abstract class ProgramInstruction
Abstract superclass of all program instructions.
All processor instructions need to be cloneable, but it most cases the default Object.clone operation will suffice, since in most cases the processing instructions will be stateless, or the state will be immutable. The exception to this are instructions that have sub programs in them - those sub programs need to be cloned.
Field Summary |
---|
Constructor Summary | |
---|---|
ProgramInstruction()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Override Object.clone() to make the method public. |
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
java.util.Map |
getDescriptionProperties()
Get a description as a set of properties of primitive types such as String, Integer, etc. |
abstract void |
process(ProcedurePlan env)
Allow this instruction to do whatever processing it needs, and to in turn manipulate the running program, (via the ProcessorEnvironment getProgramStack method.) A typical instruction should simply increment the program counter of the current program, but specialized
instructions may add sub programs to the stack or not increment the counter (so that they are executed again.) |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgramInstruction()
Method Detail |
---|
public abstract void process(ProcedurePlan env) throws MetaMatrixComponentException, MetaMatrixProcessingException
getProgramStack
method.) A typical instruction should simply increment
the program counter of the current program, but specialized
instructions may add sub programs to the stack or not increment the counter (so that they are executed again.)
MetaMatrixComponentException
MetaMatrixProcessingException
public java.util.Collection getChildPlans()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.Map getDescriptionProperties()
Describable
getDescriptionProperties
in interface Describable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |