Package com.tonic.analysis.ssa.value
Class Constant
- java.lang.Object
-
- com.tonic.analysis.ssa.value.Constant
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
ClassConstant,DoubleConstant,DynamicConstant,FloatConstant,IntConstant,LongConstant,MethodHandleConstant,MethodTypeConstant,NullConstant,StringConstant
public abstract class Constant extends Object implements Value
Base class for all constant values.
-
-
Constructor Summary
Constructors Constructor Description Constant()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ObjectgetValue()Gets the value of this constant.booleanisConstant()Checks if this value is a constant.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tonic.analysis.ssa.value.Value
getType, isNull, isSSAValue
-
-
-
-
Method Detail
-
isConstant
public boolean isConstant()
Description copied from interface:ValueChecks if this value is a constant.- Specified by:
isConstantin interfaceValue- Returns:
- true if constant, false otherwise
-
getValue
public abstract Object getValue()
Gets the value of this constant.- Returns:
- the constant value
-
-