-
- All Implemented Interfaces:
public abstract class ConstantDynamic extends AbstractConstant
Base class for constants that reference a bootstrap method.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerbootstrapMethodAttributeIndexprivate IntegernameAndTypeIndexprivate final Stringverboseprivate final ConstantNameAndTypeInfonameAndTypeInfoprivate final ConstantTypeconstantType
-
Constructor Summary
Constructors Constructor Description ConstantDynamic(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetBootstrapMethodAttributeIndex()The constant pool index of the bootstrap method attribute. final UnitsetBootstrapMethodAttributeIndex(Integer bootstrapMethodAttributeIndex)The constant pool index of the bootstrap method attribute. final IntegergetNameAndTypeIndex()The constant pool index of the associated ConstantNameAndTypeInfo. final UnitsetNameAndTypeIndex(Integer nameAndTypeIndex)The constant pool index of the associated ConstantNameAndTypeInfo. StringgetVerbose()final ConstantNameAndTypeInfogetNameAndTypeInfo()Booleanequals(Object other)Check if constant is equal to another one. IntegerhashCode()Hash code of the constant, -
-
Constructor Detail
-
ConstantDynamic
ConstantDynamic(ClassFile classFile)
-
-
Method Detail
-
getBootstrapMethodAttributeIndex
final Integer getBootstrapMethodAttributeIndex()
The constant pool index of the bootstrap method attribute.
-
setBootstrapMethodAttributeIndex
final Unit setBootstrapMethodAttributeIndex(Integer bootstrapMethodAttributeIndex)
The constant pool index of the bootstrap method attribute.
-
getNameAndTypeIndex
final Integer getNameAndTypeIndex()
The constant pool index of the associated ConstantNameAndTypeInfo.
-
setNameAndTypeIndex
final Unit setNameAndTypeIndex(Integer nameAndTypeIndex)
The constant pool index of the associated ConstantNameAndTypeInfo.
-
getVerbose
String getVerbose()
-
getNameAndTypeInfo
final ConstantNameAndTypeInfo getNameAndTypeInfo()
-
-
-
-