Package org.esa.snap.core.jexp
Class Term.ConstD
- java.lang.Object
-
- org.esa.snap.core.jexp.Term
-
- org.esa.snap.core.jexp.Term.Const
-
- org.esa.snap.core.jexp.Term.ConstD
-
- Enclosing class:
- Term
public static final class Term.ConstD extends Term.Const
A floating point constant, e.g.2.97665
or1.4e-12
.
-
-
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.ConstD
E
static Term.ConstD
HALF
static Term.ConstD
NAN
static Term.ConstD
ONE
static Term.ConstD
PI
static Term.ConstD
TWO
static Term.ConstD
ZERO
-
Constructor Summary
Constructors Constructor Description ConstD(double value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(TermVisitor<T> visitor)
Visitor support.static boolean
eq(double v1, double v2)
Special comparison only valid for numbers whose exponent is -1 to +1.int
getRetType()
Gets the term's "natural" return type.double
getValue()
static Term.ConstD
lookup(double value)
protected boolean
toB()
protected double
toD()
protected int
toI()
protected String
toS()
String
toString()
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
-
NAN
public static final Term.ConstD NAN
-
ZERO
public static final Term.ConstD ZERO
-
ONE
public static final Term.ConstD ONE
-
TWO
public static final Term.ConstD TWO
-
HALF
public static final Term.ConstD HALF
-
PI
public static final Term.ConstD PI
-
E
public static final Term.ConstD E
-
-
Method Detail
-
lookup
public static Term.ConstD lookup(double value)
-
getValue
public double getValue()
-
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.
-
toB
protected boolean toB()
- Specified by:
toB
in classTerm.Const
-
toI
protected int toI()
- Specified by:
toI
in classTerm.Const
-
toD
protected double toD()
- Specified by:
toD
in classTerm.Const
-
toS
protected String toS()
- Specified by:
toS
in classTerm.Const
-
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.
-
eq
public static boolean eq(double v1, double v2)
Special comparison only valid for numbers whose exponent is -1 to +1.
-
-