-
- All Implemented Interfaces:
public final class ConstantMethodHandleInfo extends AbstractConstant
Describes a CONSTANT_MethodHandle_info constant pool data structure.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerreferenceIndexprivate MethodHandleTypetypeprivate final ConstantTypeconstantTypeprivate final Stringverboseprivate final Stringnameprivate final ConstantReferencereferenceConstant
-
Constructor Summary
Constructors Constructor Description ConstantMethodHandleInfo(MethodHandleType type, ClassFile classFile)Constructor.
-
Method Summary
Modifier and Type Method Description final IntegergetReferenceIndex()Index of the constant pool entry containing the reference. final UnitsetReferenceIndex(Integer referenceIndex)Index of the constant pool entry containing the reference. final MethodHandleTypegetType()Method handle type. final UnitsetType(MethodHandleType type)Method handle type. ConstantTypegetConstantType()Type of the cp_info structure. StringgetVerbose()final StringgetName()final ConstantReferencegetReferenceConstant()Booleanequals(Object other)Check if constant is equal to another one. IntegerhashCode()Hash code of the constant, -
-
Constructor Detail
-
ConstantMethodHandleInfo
ConstantMethodHandleInfo(MethodHandleType type, ClassFile classFile)
Constructor.- Parameters:
type- the method handle typeclassFile- the class file of which this structure is part of
-
-
Method Detail
-
getReferenceIndex
final Integer getReferenceIndex()
Index of the constant pool entry containing the reference.
-
setReferenceIndex
final Unit setReferenceIndex(Integer referenceIndex)
Index of the constant pool entry containing the reference.
-
getType
final MethodHandleType getType()
Method handle type.
-
setType
final Unit setType(MethodHandleType type)
Method handle type.
-
getConstantType
ConstantType getConstantType()
Type of the cp_info structure.
-
getVerbose
String getVerbose()
-
getReferenceConstant
final ConstantReference getReferenceConstant()
-
-
-
-