The Meta-Environment API

toolbus.process
Class ProcessExpression

java.lang.Object
  extended by toolbus.process.ProcessExpression
Direct Known Subclasses:
Alternative, Atom, Disrupt, DynamicProcessCall, IfElse, Iteration, LeftBiasedAlternative, LetDefinition, Merge, ProcessCall, RightBiasedAlternative, Sequence

public abstract class ProcessExpression
extends java.lang.Object

ProcesssExpression represents abstract syntax operators for operators in process expressions of Tscripts. Specific operators like Sequence and Alternative are subclasses of ProcessExpression.


Field Summary
private  State first
          The first (entry) state for the automaton that implements this process expression.
private  State follow
          The state that follows (= connected to the exit of) the automaton that implements this process expression.
protected  PositionInformation posInfo
          Position information (i.e., source code location) of this process expression.
protected  TBTermFactory tbfactory
          The term factory to be used.
 
Constructor Summary
ProcessExpression(TBTermFactory tbfactory, PositionInformation posInfo)
           
 
Method Summary
protected  void addToFirst(StateElement a)
           
protected  void addToFollow(State set)
           
protected abstract  void compile(ProcessInstance processInstance, java.util.Stack<java.lang.String> calls, State followSet)
           
protected abstract  void computeFirst()
           
protected abstract  ProcessExpression copy()
           
abstract  AtomList getAtoms()
           
 State getFirst()
           
 State getFollow()
           
 PositionInformation getPosInfo()
           
protected abstract  void replaceFormals(Environment env)
           
protected  void setFirst(State first)
           
protected  void setFollow(State follow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tbfactory

protected final TBTermFactory tbfactory
The term factory to be used.


first

private State first
The first (entry) state for the automaton that implements this process expression.


follow

private State follow
The state that follows (= connected to the exit of) the automaton that implements this process expression.


posInfo

protected final PositionInformation posInfo
Position information (i.e., source code location) of this process expression.

Constructor Detail

ProcessExpression

public ProcessExpression(TBTermFactory tbfactory,
                         PositionInformation posInfo)
Method Detail

getFirst

public State getFirst()

setFirst

protected void setFirst(State first)

getPosInfo

public PositionInformation getPosInfo()

addToFirst

protected void addToFirst(StateElement a)

getFollow

public State getFollow()

setFollow

protected void setFollow(State follow)

addToFollow

protected void addToFollow(State set)

computeFirst

protected abstract void computeFirst()

replaceFormals

protected abstract void replaceFormals(Environment env)
                                throws ToolBusException
Throws:
ToolBusException

compile

protected abstract void compile(ProcessInstance processInstance,
                                java.util.Stack<java.lang.String> calls,
                                State followSet)
                         throws ToolBusException
Throws:
ToolBusException

copy

protected abstract ProcessExpression copy()

getAtoms

public abstract AtomList getAtoms()

The Meta-Environment API