Class ConstantDynamicInfo
- java.lang.Object
-
- com.tonic.analysis.execution.dispatch.ConstantDynamicInfo
-
public final class ConstantDynamicInfo extends Object
A CONSTANT_Dynamic constant pool entry awaiting bootstrap-method resolution.
-
-
Constructor Summary
Constructors Constructor Description ConstantDynamicInfo(int bootstrapMethodIndex, String name, String descriptor, int constantPoolIndex)Creates a constant-dynamic descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBootstrapMethodIndex()intgetConstantPoolIndex()StringgetDescriptor()StringgetName()StringgetReturnType()booleanisPrimitive()Checks whether the constant is of primitive type.booleanisReference()Checks whether the constant is of reference type.booleanisWideType()Checks whether the constant occupies two stack slots.StringtoString()
-
-
-
Constructor Detail
-
ConstantDynamicInfo
public ConstantDynamicInfo(int bootstrapMethodIndex, String name, String descriptor, int constantPoolIndex)Creates a constant-dynamic descriptor.- Parameters:
bootstrapMethodIndex- index into the BootstrapMethods attributename- the constant's namedescriptor- the constant's field descriptorconstantPoolIndex- index of the entry in the constant pool
-
-
Method Detail
-
getBootstrapMethodIndex
public int getBootstrapMethodIndex()
- Returns:
- the bootstrap method index
-
getName
public String getName()
- Returns:
- the name
-
getDescriptor
public String getDescriptor()
- Returns:
- the descriptor
-
getConstantPoolIndex
public int getConstantPoolIndex()
- Returns:
- the constant pool index
-
getReturnType
public String getReturnType()
- Returns:
- the return type
-
isWideType
public boolean isWideType()
Checks whether the constant occupies two stack slots.- Returns:
- true if the descriptor is long or double
-
isPrimitive
public boolean isPrimitive()
Checks whether the constant is of primitive type.- Returns:
- true if the descriptor denotes a primitive
-
isReference
public boolean isReference()
Checks whether the constant is of reference type.- Returns:
- true if the descriptor denotes an object or array
-
-