Class ConstantPoolEntry
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry
- All Implemented Interfaces:
IConstantPoolEntry
- Direct Known Subclasses:
ConstantPoolEntry2
Default implementation of IConstantPoolEntry
- Since:
- 2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.voidreset()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
-
ConstantPoolEntry
public ConstantPoolEntry()
-
-
Method Details
-
getKind
public int getKind()Description copied from interface:IConstantPoolEntryReturns the type of this entry.- Specified by:
getKindin interfaceIConstantPoolEntry- Returns:
- the type of this entry
- See Also:
-
setKind
public void setKind(int kind) Sets the kind.- Parameters:
kind- The kind to set
-
getClassInfoNameIndex
public int getClassInfoNameIndex()Description copied from interface:IConstantPoolEntryReturns the name index for a CONSTANT_Class type entry. The value is unspecified otherwise.- Specified by:
getClassInfoNameIndexin interfaceIConstantPoolEntry- Returns:
- the name index for a CONSTANT_Class type entry
- See Also:
-
getClassIndex
public int getClassIndex()Description copied from interface:IConstantPoolEntryReturns the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. The value is unspecified otherwise.- Specified by:
getClassIndexin interfaceIConstantPoolEntry- Returns:
- the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry
- See Also:
-
getNameAndTypeIndex
public int getNameAndTypeIndex()Description copied from interface:IConstantPoolEntryReturns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry. The value is unspecified otherwise.- Specified by:
getNameAndTypeIndexin interfaceIConstantPoolEntry- Returns:
- the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry
- See Also:
-
getStringIndex
public int getStringIndex()Description copied from interface:IConstantPoolEntryReturns the string index for a CONSTANT_String type entry. The value is unspecified otherwise.- Specified by:
getStringIndexin interfaceIConstantPoolEntry- Returns:
- the string index for a CONSTANT_String type entry
- See Also:
-
getStringValue
Description copied from interface:IConstantPoolEntryReturns the string value for a CONSTANT_String type entry. Returns null otherwise.- Specified by:
getStringValuein interfaceIConstantPoolEntry- Returns:
- the string value for a CONSTANT_String type entry
- See Also:
-
getIntegerValue
public int getIntegerValue()Description copied from interface:IConstantPoolEntryReturns the integer value for a CONSTANT_Integer type entry. The value is unspecified otherwise.- Specified by:
getIntegerValuein interfaceIConstantPoolEntry- Returns:
- the integer value for a CONSTANT_Integer type entry
- See Also:
-
getFloatValue
public float getFloatValue()Description copied from interface:IConstantPoolEntryReturns the float value for a CONSTANT_Float type entry. The value is unspecified otherwise.- Specified by:
getFloatValuein interfaceIConstantPoolEntry- Returns:
- the float value for a CONSTANT_Float type entry
- See Also:
-
getDoubleValue
public double getDoubleValue()Description copied from interface:IConstantPoolEntryReturns the double value for a CONSTANT_Double type entry. The value is unspecified otherwise.- Specified by:
getDoubleValuein interfaceIConstantPoolEntry- Returns:
- the double value for a CONSTANT_Double type entry
- See Also:
-
getLongValue
public long getLongValue()Description copied from interface:IConstantPoolEntryReturns the long value for a CONSTANT_Long type entry. The value is unspecified otherwise.- Specified by:
getLongValuein interfaceIConstantPoolEntry- Returns:
- the long value for a CONSTANT_Long type entry
- See Also:
-
getNameAndTypeInfoDescriptorIndex
public int getNameAndTypeInfoDescriptorIndex()Description copied from interface:IConstantPoolEntryReturns the descriptor index for a CONSTANT_NameAndType type entry. The value is unspecified otherwise.- Specified by:
getNameAndTypeInfoDescriptorIndexin interfaceIConstantPoolEntry- Returns:
- the descriptor index for a CONSTANT_NameAndType type entry
- See Also:
-
getNameAndTypeInfoNameIndex
public int getNameAndTypeInfoNameIndex()Description copied from interface:IConstantPoolEntryReturns the name index for a CONSTANT_NameAndType type entry. The value is unspecified otherwise.- Specified by:
getNameAndTypeInfoNameIndexin interfaceIConstantPoolEntry- Returns:
- the name index for a CONSTANT_NameAndType type entry
- See Also:
-
getClassName
public char[] getClassName()Description copied from interface:IConstantPoolEntryReturns the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. Returns null otherwise.- Specified by:
getClassNamein interfaceIConstantPoolEntry- Returns:
- the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry
- See Also:
-
getFieldName
public char[] getFieldName()Description copied from interface:IConstantPoolEntryReturns the field name for a CONSTANT_Fieldref type entry. Returns null otherwise.- Specified by:
getFieldNamein interfaceIConstantPoolEntry- Returns:
- the field name for a CONSTANT_Fieldref type entry
- See Also:
-
getMethodName
public char[] getMethodName()Description copied from interface:IConstantPoolEntryReturns the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry. Returns null otherwise.- Specified by:
getMethodNamein interfaceIConstantPoolEntry- Returns:
- the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry
- See Also:
-
getFieldDescriptor
public char[] getFieldDescriptor()Description copied from interface:IConstantPoolEntryReturns the field descriptor value for a CONSTANT_Fieldref type entry. This value is set only when decoding the CONSTANT_Fieldref entry. Returns null otherwise.- Specified by:
getFieldDescriptorin interfaceIConstantPoolEntry- Returns:
- the field descriptor value for a CONSTANT_Fieldref type entry. This value is set only when decoding the CONSTANT_Fieldref entry
- See Also:
-
getMethodDescriptor
public char[] getMethodDescriptor()Description copied from interface:IConstantPoolEntryReturns the method descriptor value for a CONSTANT_Methodref or CONSTANT_InterfaceMethodref type entry. This value is set only when decoding the CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_MethodType or CONSTANT_InvokeDynamic entry. Returns null otherwise.- Specified by:
getMethodDescriptorin interfaceIConstantPoolEntry- Returns:
- the method descriptor value for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. This value is set only when decoding the CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_MethodType or CONSTANT_InvokeDynamic entry
- See Also:
-
getUtf8Value
public char[] getUtf8Value()Description copied from interface:IConstantPoolEntryReturns the utf8 value for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry. Returns null otherwise.- Specified by:
getUtf8Valuein interfaceIConstantPoolEntry- Returns:
- the utf8 value for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry
- See Also:
-
getClassInfoName
public char[] getClassInfoName()Description copied from interface:IConstantPoolEntryReturns the class name for a CONSTANT_Class type entry. Returns null otherwise.- Specified by:
getClassInfoNamein interfaceIConstantPoolEntry- Returns:
- the class name for a CONSTANT_Class type entry
- See Also:
-
setClassInfoNameIndex
public void setClassInfoNameIndex(int classInfoNameIndex) Sets the classInfoNameIndex.- Parameters:
classInfoNameIndex- The classInfoNameIndex to set
-
setClassIndex
public void setClassIndex(int classIndex) Sets the classIndex.- Parameters:
classIndex- The classIndex to set
-
setNameAndTypeIndex
public void setNameAndTypeIndex(int nameAndTypeIndex) Sets the nameAndTypeIndex.- Parameters:
nameAndTypeIndex- The nameAndTypeIndex to set
-
setStringIndex
public void setStringIndex(int stringIndex) Sets the stringIndex.- Parameters:
stringIndex- The stringIndex to set
-
setStringValue
public void setStringValue(char[] stringValue) Sets the stringValue.- Parameters:
stringValue- The stringValue to set
-
setIntegerValue
public void setIntegerValue(int integerValue) Sets the integerValue.- Parameters:
integerValue- The integerValue to set
-
setFloatValue
public void setFloatValue(float floatValue) Sets the floatValue.- Parameters:
floatValue- The floatValue to set
-
setDoubleValue
public void setDoubleValue(double doubleValue) Sets the doubleValue.- Parameters:
doubleValue- The doubleValue to set
-
setLongValue
public void setLongValue(long longValue) Sets the longValue.- Parameters:
longValue- The longValue to set
-
getNameAndTypeDescriptorIndex
public int getNameAndTypeDescriptorIndex()Gets the nameAndTypeDescriptorIndex.- Returns:
- Returns a int
-
setNameAndTypeDescriptorIndex
public void setNameAndTypeDescriptorIndex(int nameAndTypeDescriptorIndex) Sets the nameAndTypeDescriptorIndex.- Parameters:
nameAndTypeDescriptorIndex- The nameAndTypeDescriptorIndex to set
-
getNameAndTypeNameIndex
public int getNameAndTypeNameIndex()Gets the nameAndTypeNameIndex.- Returns:
- Returns a int
-
setNameAndTypeNameIndex
public void setNameAndTypeNameIndex(int nameAndTypeNameIndex) Sets the nameAndTypeNameIndex.- Parameters:
nameAndTypeNameIndex- The nameAndTypeNameIndex to set
-
setClassName
public void setClassName(char[] className) Sets the className.- Parameters:
className- The className to set
-
setFieldName
public void setFieldName(char[] fieldName) Sets the fieldName.- Parameters:
fieldName- The fieldName to set
-
setMethodName
public void setMethodName(char[] methodName) Sets the methodName.- Parameters:
methodName- The methodName to set
-
setFieldDescriptor
public void setFieldDescriptor(char[] fieldDescriptor) Sets the fieldDescriptor.- Parameters:
fieldDescriptor- The fieldDescriptor to set
-
setMethodDescriptor
public void setMethodDescriptor(char[] methodDescriptor) Sets the methodDescriptor.- Parameters:
methodDescriptor- The methodDescriptor to set
-
setUtf8Value
public void setUtf8Value(char[] utf8Value) Sets the utf8Value.- Parameters:
utf8Value- The utf8Value to set
-
setClassInfoName
public void setClassInfoName(char[] classInfoName) Sets the classInfoName.- Parameters:
classInfoName- The classInfoName to set
-
getUtf8Length
public int getUtf8Length()Description copied from interface:IConstantPoolEntryReturns the utf8 length for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry. Returns null otherwise.- Specified by:
getUtf8Lengthin interfaceIConstantPoolEntry- Returns:
- the utf8 length for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry
- See Also:
-
setUtf8Length
public void setUtf8Length(int utf8Length) Sets the utf8Length.- Parameters:
utf8Length- The utf8Length to set
-
reset
public void reset()
-