Package org.esa.snap.core.jexp
Class Term.Call
- java.lang.Object
-
- org.esa.snap.core.jexp.Term
-
- org.esa.snap.core.jexp.Term.Call
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(TermVisitor<T> visitor)
Visitor support.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.Term
getArg()
Term
getArg(int index)
int
getArgCount()
Term[]
getArgs()
Term[]
getChildren()
Returns an array of terms which are children of this term.Function
getFunction()
int
getRetType()
Gets the term's "natural" return type.boolean
isConst()
int
pre()
String
toString()
Returns a string representation of this term which can be used for debugging.
-
-
-
Method Detail
-
getRetType
public int getRetType()
Description copied from class:Term
Gets the term's "natural" return type.- Specified by:
getRetType
in classTerm
- Returns:
- the type, should always be one of the
TYPE_
X constants defined in this class.
-
getFunction
public Function getFunction()
-
getArgCount
public int getArgCount()
-
getArg
public Term getArg()
-
getArg
public Term getArg(int index)
-
getArgs
public Term[] getArgs()
-
evalB
public boolean evalB(EvalEnv env)
Description copied from class:Term
Evaluates this term to aboolean
value.
-
evalI
public int evalI(EvalEnv env)
Description copied from class:Term
Evaluates this term to anint
value.
-
evalD
public double evalD(EvalEnv env)
Description copied from class:Term
Evaluates this term to adouble
value.
-
getChildren
public Term[] getChildren()
Description copied from class:Term
Returns an array of terms which are children of this term.- Overrides:
getChildren
in classTerm
- Returns:
- an array of terms, never
null
but can be empty
-
toString
public String toString()
Description copied from class:Term
Returns a string representation of this term which can be used for debugging.
-
accept
public <T> T accept(TermVisitor<T> visitor)
Description copied from class:Term
Visitor support.
-
isConst
public boolean isConst()
-
-