Package com.tonic.analysis.ssa.value
Class DoubleConstant
- java.lang.Object
-
- com.tonic.analysis.ssa.value.Constant
-
- com.tonic.analysis.ssa.value.DoubleConstant
-
-
Field Summary
Fields Modifier and Type Field Description static DoubleConstantONEstatic DoubleConstantZERO
-
Constructor Summary
Constructors Constructor Description DoubleConstant(double value)Creates a double constant with the given value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IRTypegetType()Gets the IR type of this value.DoublegetValue()Gets the value of this constant.inthashCode()static DoubleConstantof(double value)Creates a double constant, using cached instances for common values.StringtoString()-
Methods inherited from class com.tonic.analysis.ssa.value.Constant
isConstant
-
Methods inherited from interface com.tonic.analysis.ssa.value.Value
isNull, isSSAValue
-
-
-
-
Field Detail
-
ZERO
public static final DoubleConstant ZERO
-
ONE
public static final DoubleConstant ONE
-
-
Method Detail
-
of
public static DoubleConstant of(double value)
Creates a double constant, using cached instances for common values.- Parameters:
value- the double value- Returns:
- a DoubleConstant instance
-
getType
public IRType getType()
Description copied from interface:ValueGets the IR type of this value.- Returns:
- the IR type
-
getValue
public Double getValue()
Description copied from class:ConstantGets the value of this constant.
-
-