Package org.esa.snap.core.jexp
Class Term.ConstI
- java.lang.Object
-
- org.esa.snap.core.jexp.Term
-
- org.esa.snap.core.jexp.Term.Const
-
- org.esa.snap.core.jexp.Term.ConstI
-
- Enclosing class:
- Term
public static final class Term.ConstI extends Term.Const
An integer constant, e.g.6325or054(octal) or0x49AF(hex).
-
-
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 Modifier and Type Field Description static Term.ConstIONEstatic Term.ConstITWOstatic Term.ConstIZERO
-
Constructor Summary
Constructors Constructor Description ConstI(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(TermVisitor<T> visitor)Visitor support.intgetRetType()Gets the term's "natural" return type.intgetValue()static Term.ConstIlookup(int value)protected booleantoB()protected doubletoD()protected inttoI()protected StringtoS()StringtoString()Returns a string representation of this term which can be used for debugging.-
Methods inherited from class org.esa.snap.core.jexp.Term.Const
compare, evalB, evalD, evalI, evalS, isConst, pre
-
-
-
-
Field Detail
-
ZERO
public static final Term.ConstI ZERO
-
ONE
public static final Term.ConstI ONE
-
TWO
public static final Term.ConstI TWO
-
-
Method Detail
-
lookup
public static Term.ConstI lookup(int value)
-
getValue
public int getValue()
-
getRetType
public int getRetType()
Description copied from class:TermGets the term's "natural" return type.- Specified by:
getRetTypein classTerm- Returns:
- the type, should always be one of the
TYPE_X constants defined in this class.
-
toB
protected boolean toB()
- Specified by:
toBin classTerm.Const
-
toI
protected int toI()
- Specified by:
toIin classTerm.Const
-
toD
protected double toD()
- Specified by:
toDin classTerm.Const
-
toS
protected String toS()
- Specified by:
toSin classTerm.Const
-
toString
public String toString()
Description copied from class:TermReturns a string representation of this term which can be used for debugging.
-
accept
public <T> T accept(TermVisitor<T> visitor)
Description copied from class:TermVisitor support.
-
-