Package com.tonic.analysis.ssa.value
Class FloatConstant
- java.lang.Object
-
- com.tonic.analysis.ssa.value.Constant
-
- com.tonic.analysis.ssa.value.FloatConstant
-
-
Field Summary
Fields Modifier and Type Field Description static FloatConstantONEstatic FloatConstantTWOstatic FloatConstantZERO
-
Constructor Summary
Constructors Constructor Description FloatConstant(float value)Creates a float 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.FloatgetValue()Gets the value of this constant.inthashCode()static FloatConstantof(float value)Creates a float 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 FloatConstant ZERO
-
ONE
public static final FloatConstant ONE
-
TWO
public static final FloatConstant TWO
-
-
Method Detail
-
of
public static FloatConstant of(float value)
Creates a float constant, using cached instances for common values.- Parameters:
value- the float value- Returns:
- a FloatConstant instance
-
getType
public IRType getType()
Description copied from interface:ValueGets the IR type of this value.- Returns:
- the IR type
-
getValue
public Float getValue()
Description copied from class:ConstantGets the value of this constant.
-
-