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 org.aspectj.org.eclipse.jdt.internal.core.util.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, setUtf8ValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.core.util.IConstantPoolEntry
getClassIndex, getClassInfoName, getClassInfoNameIndex, getClassName, getDoubleValue, getFieldDescriptor, getFieldName, getFloatValue, getIntegerValue, getKind, getLongValue, getMethodDescriptor, getMethodName, getNameAndTypeIndex, getNameAndTypeInfoDescriptorIndex, getNameAndTypeInfoNameIndex, getStringIndex, getStringValue, getUtf8Length, getUtf8Value
-
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
-