org.shiftone.bigcalc.core
Class IfElseFunctor

java.lang.Object
  extended byorg.shiftone.bigcalc.core.IfElseFunctor
All Implemented Interfaces:
Functor

public class IfElseFunctor
extends java.lang.Object
implements Functor

Version:
$Revision: 1.11 $
Author:
$Author: jeffdrost $

Constructor Summary
IfElseFunctor(Functor condition, Functor thenFunctor)
           
IfElseFunctor(Functor condition, Functor thenFunctor, Functor elseFunctor)
           
 
Method Summary
 java.lang.Object evaluate(Context context)
           
 Functor getCondition()
           
 Functor getElseFunctor()
           
 Functor getThenFunctor()
           
 void print(java.lang.StringBuffer sb, Context context)
           
 void setCondition(Functor condition)
           
 void setElseFunctor(Functor elseFunctor)
           
 void setThenFunctor(Functor thenFunctor)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfElseFunctor

public IfElseFunctor(Functor condition,
                     Functor thenFunctor,
                     Functor elseFunctor)

IfElseFunctor

public IfElseFunctor(Functor condition,
                     Functor thenFunctor)
Method Detail

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()