Package com.tonic.analysis.ssa.value
Class DynamicConstant
- java.lang.Object
-
- com.tonic.analysis.ssa.value.Constant
-
- com.tonic.analysis.ssa.value.DynamicConstant
-
-
Constructor Summary
Constructors Constructor Description DynamicConstant(String name, String descriptor, int bootstrapMethodIndex, int originalCpIndex)Creates a dynamic constant.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetBootstrapMethodIndex()StringgetDescriptor()StringgetName()intgetOriginalCpIndex()IRTypegetType()Gets the IR type of this value.ObjectgetValue()Gets the value of this constant.inthashCode()StringtoString()-
Methods inherited from class com.tonic.analysis.ssa.value.Constant
isConstant
-
Methods inherited from interface com.tonic.analysis.ssa.value.Value
isNull, isSSAValue
-
-
-
-
Constructor Detail
-
DynamicConstant
public DynamicConstant(String name, String descriptor, int bootstrapMethodIndex, int originalCpIndex)
Creates a dynamic constant.- Parameters:
name- the name of the constantdescriptor- the type descriptorbootstrapMethodIndex- the index into the BootstrapMethods attributeoriginalCpIndex- the original constant pool index
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
getDescriptor
public String getDescriptor()
- Returns:
- the descriptor
-
getBootstrapMethodIndex
public int getBootstrapMethodIndex()
- Returns:
- the bootstrap method index
-
getOriginalCpIndex
public int getOriginalCpIndex()
- Returns:
- the original cp index
-
getType
public IRType getType()
Description copied from interface:ValueGets the IR type of this value.- Returns:
- the IR type
-
getValue
public Object getValue()
Description copied from class:ConstantGets the value of this constant.
-
-