The Meta-Environment API

toolbus.process
Class IfElse

java.lang.Object
  extended by toolbus.process.ProcessExpression
      extended by toolbus.process.IfElse
Direct Known Subclasses:
IfThen

public class IfElse
extends ProcessExpression

IfElse is the abstract syntax operator for the if-then-else-fi operator in Tscripts. It is compiled away and does not exist during execution.


Field Summary
private  Environment env
           
private  ProcessExpression left
           
private  ProcessExpression right
           
private  aterm.ATerm test
           
 
Fields inherited from class toolbus.process.ProcessExpression
posInfo, tbfactory
 
Constructor Summary
IfElse(aterm.ATerm test, ProcessExpression Pthen, ProcessExpression Pelse, TBTermFactory tbfactory, PositionInformation posInfo)
           
 
Method Summary
protected  void compile(ProcessInstance P, java.util.Stack<java.lang.String> calls, State follows)
           
protected  void computeFirst()
           
protected  ProcessExpression copy()
           
 AtomList getAtoms()
           
protected  void replaceFormals(Environment e)
           
 java.lang.String toString()
           
 
Methods inherited from class toolbus.process.ProcessExpression
addToFirst, addToFollow, getFirst, getFollow, getPosInfo, setFirst, setFollow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

test

private final aterm.ATerm test

left

private final ProcessExpression left

right

private final ProcessExpression right

env

private Environment env
Constructor Detail

IfElse

public IfElse(aterm.ATerm test,
              ProcessExpression Pthen,
              ProcessExpression Pelse,
              TBTermFactory tbfactory,
              PositionInformation posInfo)
Method Detail

copy

protected ProcessExpression copy()
Specified by:
copy in class ProcessExpression

computeFirst

protected void computeFirst()
Specified by:
computeFirst in class ProcessExpression

replaceFormals

protected void replaceFormals(Environment e)
                       throws ToolBusException
Specified by:
replaceFormals in class ProcessExpression
Throws:
ToolBusException

compile

protected void compile(ProcessInstance P,
                       java.util.Stack<java.lang.String> calls,
                       State follows)
                throws ToolBusException
Specified by:
compile in class ProcessExpression
Throws:
ToolBusException

getAtoms

public AtomList getAtoms()
Specified by:
getAtoms in class ProcessExpression

toString

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

The Meta-Environment API