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| Constructor and Description |
|---|
Term.ConstS(String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evalB(EvalEnv context)
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. |
int |
getRetType()
Gets the term's "natural" return type.
|
String |
toString()
Returns a string representation of this term which
can be used for debugging.
|
public Term.ConstS(String value)
public int getRetType()
TermgetRetType in class TermTYPE_X constants
defined in this class.public boolean evalB(EvalEnv context)
Termboolean value.public int evalI(EvalEnv env)
Termint value.public double evalD(EvalEnv env)
Termdouble value.public String evalS(EvalEnv env)
TermString value.
The default implementation simply returns the value of Term.toString().Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.