org.eclipse.jdt.internal.core.util
Class ConstantPoolEntry

java.lang.Object
  extended by org.eclipse.jdt.internal.core.util.ConstantPoolEntry
Direct Known Subclasses:
ConstantPoolEntry2

public class ConstantPoolEntry
extends java.lang.Object

Default implementation of IConstantPoolEntry

Since:
2.0

Constructor Summary
ConstantPoolEntry()
           
 
Method Summary
 int getClassIndex()
           
 char[] getClassInfoName()
           
 int getClassInfoNameIndex()
           
 char[] getClassName()
           
 double getDoubleValue()
           
 char[] getFieldDescriptor()
           
 char[] getFieldName()
           
 float getFloatValue()
           
 int getIntegerValue()
           
 int getKind()
           
 long getLongValue()
           
 char[] getMethodDescriptor()
           
 char[] getMethodName()
           
 int getNameAndTypeDescriptorIndex()
          Gets the nameAndTypeDescriptorIndex.
 int getNameAndTypeIndex()
           
 int getNameAndTypeInfoDescriptorIndex()
           
 int getNameAndTypeInfoNameIndex()
           
 int getNameAndTypeNameIndex()
          Gets the nameAndTypeNameIndex.
 int getStringIndex()
           
 java.lang.String getStringValue()
           
 int getUtf8Length()
           
 char[] getUtf8Value()
           
 void reset()
           
 void setClassIndex(int classIndex)
          Sets the classIndex.
 void setClassInfoName(char[] classInfoName)
          Sets the classInfoName.
 void setClassInfoNameIndex(int classInfoNameIndex)
          Sets the classInfoNameIndex.
 void setClassName(char[] className)
          Sets the className.
 void setDoubleValue(double doubleValue)
          Sets the doubleValue.
 void setFieldDescriptor(char[] fieldDescriptor)
          Sets the fieldDescriptor.
 void setFieldName(char[] fieldName)
          Sets the fieldName.
 void setFloatValue(float floatValue)
          Sets the floatValue.
 void setIntegerValue(int integerValue)
          Sets the integerValue.
 void setKind(int kind)
          Sets the kind.
 void setLongValue(long longValue)
          Sets the longValue.
 void setMethodDescriptor(char[] methodDescriptor)
          Sets the methodDescriptor.
 void setMethodName(char[] methodName)
          Sets the methodName.
 void setNameAndTypeDescriptorIndex(int nameAndTypeDescriptorIndex)
          Sets the nameAndTypeDescriptorIndex.
 void setNameAndTypeIndex(int nameAndTypeIndex)
          Sets the nameAndTypeIndex.
 void setNameAndTypeNameIndex(int nameAndTypeNameIndex)
          Sets the nameAndTypeNameIndex.
 void setStringIndex(int stringIndex)
          Sets the stringIndex.
 void setStringValue(char[] stringValue)
          Sets the stringValue.
 void setUtf8Length(int utf8Length)
          Sets the utf8Length.
 void setUtf8Value(char[] utf8Value)
          Sets the utf8Value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPoolEntry

public ConstantPoolEntry()
Method Detail

getKind

public int getKind()
See Also:
IConstantPoolEntry#getKind()

setKind

public void setKind(int kind)
Sets the kind.

Parameters:
kind - The kind to set

getClassInfoNameIndex

public int getClassInfoNameIndex()
See Also:
IConstantPoolEntry#getClassInfoNameIndex()

getClassIndex

public int getClassIndex()
See Also:
IConstantPoolEntry#getClassIndex()

getNameAndTypeIndex

public int getNameAndTypeIndex()
See Also:
IConstantPoolEntry#getNameAndTypeIndex()

getStringIndex

public int getStringIndex()
See Also:
IConstantPoolEntry#getStringIndex()

getStringValue

public java.lang.String getStringValue()
See Also:
IConstantPoolEntry#getStringValue()

getIntegerValue

public int getIntegerValue()
See Also:
IConstantPoolEntry#getIntegerValue()

getFloatValue

public float getFloatValue()
See Also:
IConstantPoolEntry#getFloatValue()

getDoubleValue

public double getDoubleValue()
See Also:
IConstantPoolEntry#getDoubleValue()

getLongValue

public long getLongValue()
See Also:
IConstantPoolEntry#getLongValue()

getNameAndTypeInfoDescriptorIndex

public int getNameAndTypeInfoDescriptorIndex()
See Also:
IConstantPoolEntry#getNameAndTypeInfoDescriptorIndex()

getNameAndTypeInfoNameIndex

public int getNameAndTypeInfoNameIndex()
See Also:
IConstantPoolEntry#getNameAndTypeInfoNameIndex()

getClassName

public char[] getClassName()
See Also:
IConstantPoolEntry#getClassName()

getFieldName

public char[] getFieldName()
See Also:
IConstantPoolEntry#getFieldName()

getMethodName

public char[] getMethodName()
See Also:
IConstantPoolEntry#getMethodName()

getFieldDescriptor

public char[] getFieldDescriptor()
See Also:
IConstantPoolEntry#getFieldDescriptor()

getMethodDescriptor

public char[] getMethodDescriptor()
See Also:
IConstantPoolEntry#getMethodDescriptor()

getUtf8Value

public char[] getUtf8Value()
See Also:
IConstantPoolEntry#getUtf8Value()

getClassInfoName

public char[] getClassInfoName()
See Also:
IConstantPoolEntry#getClassInfoName()

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()
See Also:
IConstantPoolEntry#getUtf8Length()

setUtf8Length

public void setUtf8Length(int utf8Length)
Sets the utf8Length.

Parameters:
utf8Length - The utf8Length to set

reset

public void reset()