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.trueorfalse.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.esa.snap.core.jexp.TermTerm.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 SummaryConstructors Constructor Description Const()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompare(Term other)booleanevalB(EvalEnv env)Evaluates this term to abooleanvalue.doubleevalD(EvalEnv env)Evaluates this term to adoublevalue.intevalI(EvalEnv env)Evaluates this term to anintvalue.StringevalS(EvalEnv env)Evaluates this term to aStringvalue.booleanisConst()intpre()protected abstract booleantoB()protected abstract doubletoD()protected abstract inttoI()protected abstract StringtoS()
 
- 
- 
- 
Method Detail- 
evalBpublic boolean evalB(EvalEnv env) Description copied from class:TermEvaluates this term to abooleanvalue.
 - 
toBprotected abstract boolean toB() 
 - 
evalIpublic int evalI(EvalEnv env) Description copied from class:TermEvaluates this term to anintvalue.
 - 
toIprotected abstract int toI() 
 - 
evalDpublic double evalD(EvalEnv env) Description copied from class:TermEvaluates this term to adoublevalue.
 - 
toDprotected abstract double toD() 
 - 
evalSpublic String evalS(EvalEnv env) Description copied from class:TermEvaluates this term to aStringvalue. The default implementation simply returns the value ofTerm.toString().
 - 
toSprotected abstract String toS() 
 - 
isConstpublic final boolean isConst() 
 
- 
 
-