public abstract static class Term.Const extends Term
true
or false
.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
Constructor and Description |
---|
Const() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Term other) |
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. |
String |
evalS(EvalEnv env)
Evaluates this term to a
String value. |
boolean |
isConst() |
int |
pre() |
protected abstract boolean |
toB() |
protected abstract double |
toD() |
protected abstract int |
toI() |
protected abstract String |
toS() |
public boolean evalB(EvalEnv env)
Term
boolean
value.protected abstract boolean toB()
public int evalI(EvalEnv env)
Term
int
value.protected abstract int toI()
public double evalD(EvalEnv env)
Term
double
value.protected abstract double toD()
public String evalS(EvalEnv env)
Term
String
value.
The default implementation simply returns the value of Term.toString()
.protected abstract String toS()
public final boolean isConst()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.