Class ConstantPoolEntry2
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry
org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry2
- All Implemented Interfaces:
IConstantPoolEntry, IConstantPoolEntry2, IConstantPoolEntry3
Default implementation of IConstantPoolEntry2 and IConstantPoolEntry3.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the bootstrap method attribute index.intReturns the descriptor index.intReturns the index for a CONSTANT_Module type entry.char[]Returns the name of a CONSTANT_Module type entry.intReturns the index for a CONSTANT_Package type entry.char[]Returns the name of a CONSTANT_Package type entry.intReturns the reference index.intReturns the reference kind.voidreset()voidsetBootstrapMethodAttributeIndex(int bootstrapMethodAttributeIndex) voidsetDescriptorIndex(int descriptorIndex) voidsetModuleIndex(int moduleIndex) voidsetModuleName(char[] moduleName) voidsetPackageIndex(int packageIndex) voidsetPackageName(char[] packageName) voidsetReferenceIndex(int referenceIndex) voidsetReferenceKind(int referenceKind) Methods inherited from class ConstantPoolEntry
getClassIndex, getClassInfoName, getClassInfoNameIndex, getClassName, getDoubleValue, getFieldDescriptor, getFieldName, getFloatValue, getIntegerValue, getKind, getLongValue, getMethodDescriptor, getMethodName, getNameAndTypeDescriptorIndex, getNameAndTypeIndex, getNameAndTypeInfoDescriptorIndex, getNameAndTypeInfoNameIndex, getNameAndTypeNameIndex, getStringIndex, getStringValue, getUtf8Length, getUtf8Value, setClassIndex, setClassInfoName, setClassInfoNameIndex, setClassName, setDoubleValue, setFieldDescriptor, setFieldName, setFloatValue, setIntegerValue, setKind, setLongValue, setMethodDescriptor, setMethodName, setNameAndTypeDescriptorIndex, setNameAndTypeIndex, setNameAndTypeNameIndex, setStringIndex, setStringValue, setUtf8Length, setUtf8ValueModifier and TypeMethodDescriptionintReturns the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.char[]Returns the class name for a CONSTANT_Class type entry.intReturns the name index for a CONSTANT_Class type entry.char[]Returns the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.doubleReturns the double value for a CONSTANT_Double type entry.char[]Returns the field descriptor value for a CONSTANT_Fieldref type entry.char[]Returns the field name for a CONSTANT_Fieldref type entry.floatReturns the float value for a CONSTANT_Float type entry.intReturns the integer value for a CONSTANT_Integer type entry.intgetKind()Returns the type of this entry.longReturns the long value for a CONSTANT_Long type entry.char[]Returns the method descriptor value for a CONSTANT_Methodref or CONSTANT_InterfaceMethodref type entry.char[]Returns the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry.intGets the nameAndTypeDescriptorIndex.intReturns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry.intReturns the descriptor index for a CONSTANT_NameAndType type entry.intReturns the name index for a CONSTANT_NameAndType type entry.intGets the nameAndTypeNameIndex.intReturns the string index for a CONSTANT_String type entry.Returns the string value for a CONSTANT_String type entry.intReturns the utf8 length for a CONSTANT_Utf8 type entry.char[]Returns the utf8 value for a CONSTANT_Utf8 type entry.voidsetClassIndex(int classIndex) Sets the classIndex.voidsetClassInfoName(char[] classInfoName) Sets the classInfoName.voidsetClassInfoNameIndex(int classInfoNameIndex) Sets the classInfoNameIndex.voidsetClassName(char[] className) Sets the className.voidsetDoubleValue(double doubleValue) Sets the doubleValue.voidsetFieldDescriptor(char[] fieldDescriptor) Sets the fieldDescriptor.voidsetFieldName(char[] fieldName) Sets the fieldName.voidsetFloatValue(float floatValue) Sets the floatValue.voidsetIntegerValue(int integerValue) Sets the integerValue.voidsetKind(int kind) Sets the kind.voidsetLongValue(long longValue) Sets the longValue.voidsetMethodDescriptor(char[] methodDescriptor) Sets the methodDescriptor.voidsetMethodName(char[] methodName) Sets the methodName.voidsetNameAndTypeDescriptorIndex(int nameAndTypeDescriptorIndex) Sets the nameAndTypeDescriptorIndex.voidsetNameAndTypeIndex(int nameAndTypeIndex) Sets the nameAndTypeIndex.voidsetNameAndTypeNameIndex(int nameAndTypeNameIndex) Sets the nameAndTypeNameIndex.voidsetStringIndex(int stringIndex) Sets the stringIndex.voidsetStringValue(char[] stringValue) Sets the stringValue.voidsetUtf8Length(int utf8Length) Sets the utf8Length.voidsetUtf8Value(char[] utf8Value) Sets the utf8Value.
-
Constructor Details
-
ConstantPoolEntry2
public ConstantPoolEntry2()
-
-
Method Details
-
getDescriptorIndex
public int getDescriptorIndex()Description copied from interface:IConstantPoolEntry2Returns the descriptor index. This value is set only when decoding a MethodType entry. The value is unspecified otherwise. The corresponding UTF8 value can be retrieved by usingIConstantPoolEntry.getMethodDescriptor().- Specified by:
getDescriptorIndexin interfaceIConstantPoolEntry2- Returns:
- the descriptor index. This value is set only when decoding a MethodType entry.
- See Also:
-
getReferenceKind
public int getReferenceKind()Description copied from interface:IConstantPoolEntry2Returns the reference kind. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.- Specified by:
getReferenceKindin interfaceIConstantPoolEntry2- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-
getReferenceIndex
public int getReferenceIndex()Description copied from interface:IConstantPoolEntry2Returns the reference index. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.- Specified by:
getReferenceIndexin interfaceIConstantPoolEntry2- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-
getBootstrapMethodAttributeIndex
public int getBootstrapMethodAttributeIndex()Description copied from interface:IConstantPoolEntry2Returns the bootstrap method attribute index. This value is set only when decoding a InvokeDynamic entry. The value is unspecified otherwise.- Specified by:
getBootstrapMethodAttributeIndexin interfaceIConstantPoolEntry2- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-
getModuleIndex
public int getModuleIndex()Description copied from interface:IConstantPoolEntry3Returns the index for a CONSTANT_Module type entry. The value is unspecified otherwise.- Specified by:
getModuleIndexin interfaceIConstantPoolEntry3- Returns:
- the index for a CONSTANT_Module type entry
- See Also:
-
getModuleName
public char[] getModuleName()Description copied from interface:IConstantPoolEntry3Returns the name of a CONSTANT_Module type entry. Returns null otherwise.- Specified by:
getModuleNamein interfaceIConstantPoolEntry3- Returns:
- the name of a CONSTANT_Module type entry
- See Also:
-
getPackageIndex
public int getPackageIndex()Description copied from interface:IConstantPoolEntry3Returns the index for a CONSTANT_Package type entry. The value is unspecified otherwise.- Specified by:
getPackageIndexin interfaceIConstantPoolEntry3- Returns:
- the index for a CONSTANT_Package type entry
- See Also:
-
getPackageName
public char[] getPackageName()Description copied from interface:IConstantPoolEntry3Returns the name of a CONSTANT_Package type entry. Returns null otherwise.- Specified by:
getPackageNamein interfaceIConstantPoolEntry3- Returns:
- the name of a CONSTANT_Package type entry
- See Also:
-
setDescriptorIndex
public void setDescriptorIndex(int descriptorIndex) -
setReferenceKind
public void setReferenceKind(int referenceKind) -
setReferenceIndex
public void setReferenceIndex(int referenceIndex) -
setBootstrapMethodAttributeIndex
public void setBootstrapMethodAttributeIndex(int bootstrapMethodAttributeIndex) -
setModuleIndex
public void setModuleIndex(int moduleIndex) -
setModuleName
public void setModuleName(char[] moduleName) -
setPackageIndex
public void setPackageIndex(int packageIndex) -
setPackageName
public void setPackageName(char[] packageName) -
reset
public void reset()- Overrides:
resetin classConstantPoolEntry
-