org.moremotion.evaluator
Class ThenElse

java.lang.Object
  extended by org.moremotion.evaluator.ThenElse
All Implemented Interfaces:
Evaluable

public class ThenElse
extends java.lang.Object
implements Evaluable

Version:
$Id: ThenElse.java 51 2008-03-10 11:46:54Z erkan $

Constructor Summary
ThenElse(OPNode n1, OPNode n2)
          Creates a new instance of ThenElse
 
Method Summary
 java.lang.Object eval(SymbolResolver sr, boolean then)
           
 java.lang.Object evaluate(SymbolResolver sr)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThenElse

public ThenElse(OPNode n1,
                OPNode n2)
Creates a new instance of ThenElse

Method Detail

evaluate

public java.lang.Object evaluate(SymbolResolver sr)
                          throws EvaluationException
Specified by:
evaluate in interface Evaluable
Throws:
EvaluationException

eval

public java.lang.Object eval(SymbolResolver sr,
                             boolean then)
                      throws EvaluationException
Throws:
EvaluationException

toString

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


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.