elan.instruction
Class If

java.lang.Object
  |
  +--elan.GrammarElement
        |
        +--elan.instruction.Instruction
              |
              +--elan.instruction.If

public class If
extends Instruction

Relates to "IF"-type instructions,


Field Summary
protected  Expression myExpression
           
protected  StrictInstructionList myList
           
 
Fields inherited from class elan.GrammarElement
ourMap
 
Constructor Summary
If(Expression e, StrictInstructionList sil)
           
 
Method Summary
 java.lang.Object evaluate(Context c)
           
 java.lang.String toString()
          Returns the statement as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myExpression

protected Expression myExpression

myList

protected StrictInstructionList myList
Constructor Detail

If

public If(Expression e,
          StrictInstructionList sil)
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
Overrides:
evaluate in class Instruction

toString

public java.lang.String toString()
Returns the statement as a String.

Overrides:
toString in class java.lang.Object