com.bc.jexp
Class Term.Cond

java.lang.Object
  extended by com.bc.jexp.Term
      extended by com.bc.jexp.Term.Op
          extended by com.bc.jexp.Term.Cond
Enclosing class:
Term

public static final class Term.Cond
extends Term.Op

The conditional operation

b-term ? term : term


Nested Class Summary
 
Nested classes/interfaces inherited from class com.bc.jexp.Term
Term.Add, Term.AndB, Term.AndI, Term.Assign, Term.Binary, Term.BinaryB, Term.BinaryI, Term.BinaryN, Term.Call, Term.Cond, Term.ConstB, Term.ConstD, Term.ConstI, Term.ConstS, Term.Div, Term.EqB, Term.EqD, Term.EqI, Term.GeD, Term.GeI, Term.GtD, Term.GtI, Term.LeD, Term.LeI, Term.LtD, Term.LtI, Term.Mod, Term.Mul, Term.Neg, Term.NEqB, Term.NEqD, Term.NEqI, Term.NotB, Term.NotI, Term.Op, Term.OrB, Term.OrI, Term.Ref, Term.Sub, Term.Unary, Term.UnaryB, Term.UnaryI, Term.UnaryN, Term.XOrI
 
Field Summary
protected  Term arg1
           
protected  Term arg2
           
protected  Term arg3
           
 
Fields inherited from class com.bc.jexp.Term.Op
args, name, type
 
Fields inherited from class com.bc.jexp.Term
TYPE_B, TYPE_D, TYPE_I, TYPE_S
 
Constructor Summary
Term.Cond(int type, Term arg1, Term arg2, Term arg3)
           
 
Method Summary
 boolean evalB(EvalEnv env)
          Evaluates this term to a boolean value.
 double evalD(EvalEnv env)
          Evaluates this term to a double value.
 int evalI(EvalEnv env)
          Evaluates this term to an int value.
 
Methods inherited from class com.bc.jexp.Term.Op
getArgs, getChildren, getRetType, toString
 
Methods inherited from class com.bc.jexp.Term
evalS, isB, isD, isI, isN, toB, toB, toD, toI, toI, toS, toS, toS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

arg1

protected final Term arg1

arg2

protected final Term arg2

arg3

protected final Term arg3
Constructor Detail

Term.Cond

public Term.Cond(int type,
                 Term arg1,
                 Term arg2,
                 Term arg3)
Method Detail

evalB

public boolean evalB(EvalEnv env)
Description copied from class: Term
Evaluates this term to a boolean value.

Specified by:
evalB in class Term
Parameters:
env - the application dependant environment.
Returns:
a boolean value

evalI

public int evalI(EvalEnv env)
Description copied from class: Term
Evaluates this term to an int value.

Specified by:
evalI in class Term
Parameters:
env - the application dependant environment.
Returns:
an int value

evalD

public double evalD(EvalEnv env)
Description copied from class: Term
Evaluates this term to a double value.

Specified by:
evalD in class Term
Parameters:
env - the application dependant environment.
Returns:
a double value


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.