Package org.esa.snap.core.jexp
Class Term.Op
java.lang.Object
org.esa.snap.core.jexp.Term
org.esa.snap.core.jexp.Term.Op
- Direct Known Subclasses:
Term.Binary
,Term.Cond
,Term.Unary
- Enclosing class:
Term
An abstract operation.
-
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getArg()
getArg
(int index) int
Term[]
getArgs()
Term[]
Returns an array of terms which are children of this term.getName()
int
Gets the term's "natural" return type.boolean
isConst()
toString()
Returns a string representation of this term which can be used for debugging.
-
Field Details
-
name
-
type
protected final int type -
args
-
-
Constructor Details
-
Op
-
-
Method Details
-
getName
-
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.
-
getArgCount
public int getArgCount() -
getArg
-
getArg
-
getArgs
-
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
Description copied from class:Term
Returns a string representation of this term which can be used for debugging. -
isConst
public boolean isConst() -
compare
-