org.shiftone.bigcalc.core
Class IfElseFunctor
java.lang.Object
org.shiftone.bigcalc.core.IfElseFunctor
- All Implemented Interfaces:
- Functor
- public class IfElseFunctor
- extends java.lang.Object
- implements Functor
- Version:
- $Revision: 1.11 $
- Author:
- $Author: jeffdrost $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfElseFunctor
public IfElseFunctor(Functor condition,
Functor thenFunctor,
Functor elseFunctor)
IfElseFunctor
public IfElseFunctor(Functor condition,
Functor thenFunctor)
evaluate
public java.lang.Object evaluate(Context context)
throws java.lang.Exception
- Specified by:
evaluate
in interface Functor
- Throws:
java.lang.Exception
print
public void print(java.lang.StringBuffer sb,
Context context)
throws java.lang.Exception
- Specified by:
print
in interface Functor
- Throws:
java.lang.Exception
getCondition
public Functor getCondition()
setCondition
public void setCondition(Functor condition)
getThenFunctor
public Functor getThenFunctor()
setThenFunctor
public void setThenFunctor(Functor thenFunctor)
getElseFunctor
public Functor getElseFunctor()
setElseFunctor
public void setElseFunctor(Functor elseFunctor)
toString
public java.lang.String toString()