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