Package org.esa.snap.core.jexp
Class Term.Const
- java.lang.Object
-
- org.esa.snap.core.jexp.Term
-
- org.esa.snap.core.jexp.Term.Const
-
- Direct Known Subclasses:
Term.ConstB
,Term.ConstD
,Term.ConstI
,Term.ConstS
- Enclosing class:
- Term
public abstract static class Term.Const extends Term
A boolean constant, e.g.true
orfalse
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.esa.snap.core.jexp.Term
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 Summary
Constructors Constructor Description Const()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compare(Term other)
boolean
evalB(EvalEnv env)
Evaluates this term to aboolean
value.double
evalD(EvalEnv env)
Evaluates this term to adouble
value.int
evalI(EvalEnv env)
Evaluates this term to anint
value.String
evalS(EvalEnv env)
Evaluates this term to aString
value.boolean
isConst()
int
pre()
protected abstract boolean
toB()
protected abstract double
toD()
protected abstract int
toI()
protected abstract String
toS()
-
-
-
Method Detail
-
evalB
public boolean evalB(EvalEnv env)
Description copied from class:Term
Evaluates this term to aboolean
value.
-
toB
protected abstract boolean toB()
-
evalI
public int evalI(EvalEnv env)
Description copied from class:Term
Evaluates this term to anint
value.
-
toI
protected abstract int toI()
-
evalD
public double evalD(EvalEnv env)
Description copied from class:Term
Evaluates this term to adouble
value.
-
toD
protected abstract double toD()
-
evalS
public String evalS(EvalEnv env)
Description copied from class:Term
Evaluates this term to aString
value. The default implementation simply returns the value ofTerm.toString()
.
-
toS
protected abstract String toS()
-
isConst
public final boolean isConst()
-
-