Package com.tonic.analysis.ssa.value
Interface Value
-
- All Known Implementing Classes:
ClassConstant,Constant,DoubleConstant,DynamicConstant,FloatConstant,IntConstant,LongConstant,MethodHandleConstant,MethodTypeConstant,NullConstant,SSAValue,StringConstant
public interface ValueBase interface for all values in SSA form.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IRTypegetType()Gets the IR type of this value.booleanisConstant()Checks if this value is a constant.default booleanisNull()Checks if this value is null.default booleanisSSAValue()Checks if this value is an SSA value.
-
-
-
Method Detail
-
getType
IRType getType()
Gets the IR type of this value.- Returns:
- the IR type
-
isConstant
boolean isConstant()
Checks if this value is a constant.- Returns:
- true if constant, false otherwise
-
isSSAValue
default boolean isSSAValue()
Checks if this value is an SSA value.- Returns:
- true if this is an SSAValue instance, false otherwise
-
isNull
default boolean isNull()
Checks if this value is null.- Returns:
- true if this is a NullConstant, false otherwise
-
-