-
- All Implemented Interfaces:
public abstract class ConstantReference extends AbstractConstant
Base class for constant pool data structures which reference class members.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerclassIndexprivate IntegernameAndTypeIndexprivate final Stringverboseprivate final ConstantClassInfoclassConstantprivate final ConstantNameAndTypeInfonameAndTypeConstantprivate final ConstantTypeconstantType
-
Constructor Summary
Constructors Constructor Description ConstantReference(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetClassIndex()Index of the constant pool entry containing the CONSTANT_Class_info of this entry. final UnitsetClassIndex(Integer classIndex)Index of the constant pool entry containing the CONSTANT_Class_info of this entry. final IntegergetNameAndTypeIndex()Index of the constant pool entry containing the CONSTANT_NameAndType_info of this entry. final UnitsetNameAndTypeIndex(Integer nameAndTypeIndex)Index of the constant pool entry containing the CONSTANT_NameAndType_info of this entry. StringgetVerbose()final ConstantClassInfogetClassConstant()final ConstantNameAndTypeInfogetNameAndTypeConstant()Booleanequals(Object other)Check if constant is equal to another one. IntegerhashCode()Hash code of the constant, -
-
Constructor Detail
-
ConstantReference
ConstantReference(ClassFile classFile)
-
-
Method Detail
-
getClassIndex
final Integer getClassIndex()
Index of the constant pool entry containing the CONSTANT_Class_info of this entry.
-
setClassIndex
final Unit setClassIndex(Integer classIndex)
Index of the constant pool entry containing the CONSTANT_Class_info of this entry.
-
getNameAndTypeIndex
final Integer getNameAndTypeIndex()
Index of the constant pool entry containing the CONSTANT_NameAndType_info of this entry.
-
setNameAndTypeIndex
final Unit setNameAndTypeIndex(Integer nameAndTypeIndex)
Index of the constant pool entry containing the CONSTANT_NameAndType_info of this entry.
-
getVerbose
String getVerbose()
-
getClassConstant
final ConstantClassInfo getClassConstant()
-
getNameAndTypeConstant
final ConstantNameAndTypeInfo getNameAndTypeConstant()
-
-
-
-