Term.Add, Term.AndB, Term.AndI, Term.Assign, Term.Binary, Term.BinaryB, Term.BinaryI, Term.BinaryN, Term.Call, Term.Cond, Term.Const, 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
Modifier and Type | Field and Description |
---|---|
protected Term |
arg1 |
protected Term |
arg2 |
protected Term |
arg3 |
Constructor and Description |
---|
Cond(int type,
Term arg1,
Term arg2,
Term arg3) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(TermVisitor<T> visitor)
Visitor support.
|
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. |
int |
pre() |
compare, getArg, getArg, getArgCount, getArgs, getChildren, getName, getRetType, isConst, toString
protected final Term arg1
protected final Term arg2
protected final Term arg3
public boolean evalB(EvalEnv env)
Term
boolean
value.public int evalI(EvalEnv env)
Term
int
value.public double evalD(EvalEnv env)
Term
double
value.public <T> T accept(TermVisitor<T> visitor)
Term
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.