-
- All Implemented Interfaces:
public final class ConstantNameAndTypeInfo extends AbstractConstant
Describes a CONSTANT_NameAndType_info constant pool data structure.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegernameIndexprivate IntegerdescriptorIndexprivate final ConstantTypeconstantTypeprivate final Stringverboseprivate final Stringnameprivate final ConstantUtf8InfonameConstantprivate final Stringdescriptorprivate final ConstantUtf8InfodescriptorConstant
-
Constructor Summary
Constructors Constructor Description ConstantNameAndTypeInfo(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetNameIndex()Index of the constant pool entry containing the name of this entry. final UnitsetNameIndex(Integer nameIndex)Index of the constant pool entry containing the name of this entry. final IntegergetDescriptorIndex()Index of the constant pool entry containing the descriptor of this entry. final UnitsetDescriptorIndex(Integer descriptorIndex)Index of the constant pool entry containing the descriptor of this entry. ConstantTypegetConstantType()Type of the cp_info structure. StringgetVerbose()final StringgetName()final ConstantUtf8InfogetNameConstant()final StringgetDescriptor()final ConstantUtf8InfogetDescriptorConstant()Booleanequals(Object other)Check if constant is equal to another one. IntegerhashCode()Hash code of the constant, -
-
Constructor Detail
-
ConstantNameAndTypeInfo
ConstantNameAndTypeInfo(ClassFile classFile)
-
-
Method Detail
-
getNameIndex
final Integer getNameIndex()
Index of the constant pool entry containing the name of this entry.
-
setNameIndex
final Unit setNameIndex(Integer nameIndex)
Index of the constant pool entry containing the name of this entry.
-
getDescriptorIndex
final Integer getDescriptorIndex()
Index of the constant pool entry containing the descriptor of this entry.
-
setDescriptorIndex
final Unit setDescriptorIndex(Integer descriptorIndex)
Index of the constant pool entry containing the descriptor of this entry.
-
getConstantType
ConstantType getConstantType()
Type of the cp_info structure.
-
getVerbose
String getVerbose()
-
getNameConstant
final ConstantUtf8Info getNameConstant()
-
getDescriptor
final String getDescriptor()
-
getDescriptorConstant
final ConstantUtf8Info getDescriptorConstant()
-
-
-
-