public class ConstantPoolEntry extends java.lang.Object implements IConstantPoolEntry
ConstantPoolEntry2| Constructor and Description |
|---|
ConstantPoolEntry() |
| Modifier and Type | Method and Description |
|---|---|
int |
getClassIndex()
Returns the class index for a CONSTANT_Fieldref,
CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.
|
char[] |
getClassInfoName()
Returns the class name for a CONSTANT_Class type entry.
|
int |
getClassInfoNameIndex()
Returns the name index for a CONSTANT_Class type entry.
|
char[] |
getClassName()
Returns the class name for a CONSTANT_Fieldref,
CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.
|
double |
getDoubleValue()
Returns the double value for a CONSTANT_Double type entry.
|
char[] |
getFieldDescriptor()
Returns the field descriptor value for a CONSTANT_Fieldref type entry.
|
char[] |
getFieldName()
Returns the field name for a CONSTANT_Fieldref type entry.
|
float |
getFloatValue()
Returns the float value for a CONSTANT_Float type entry.
|
int |
getIntegerValue()
Returns the integer value for a CONSTANT_Integer type entry.
|
int |
getKind()
Returns the type of this entry.
|
long |
getLongValue()
Returns the long value for a CONSTANT_Long type entry.
|
char[] |
getMethodDescriptor()
Returns the method descriptor value for a CONSTANT_Methodref or
CONSTANT_InterfaceMethodref type entry.
|
char[] |
getMethodName()
Returns the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref
or CONSTANT_InvokeDynamic type entry.
|
int |
getNameAndTypeDescriptorIndex()
Gets the nameAndTypeDescriptorIndex.
|
int |
getNameAndTypeIndex()
Returns the nameAndType index for a CONSTANT_Fieldref,
CONSTANT_Methodref, CONSTANT_InterfaceMethodref,
CONSTANT_InvokeDynamic type entry.
|
int |
getNameAndTypeInfoDescriptorIndex()
Returns the descriptor index for a CONSTANT_NameAndType type entry.
|
int |
getNameAndTypeInfoNameIndex()
Returns the name index for a CONSTANT_NameAndType type entry.
|
int |
getNameAndTypeNameIndex()
Gets the nameAndTypeNameIndex.
|
int |
getStringIndex()
Returns the string index for a CONSTANT_String type entry.
|
java.lang.String |
getStringValue()
Returns the string value for a CONSTANT_String type entry.
|
int |
getUtf8Length()
Returns the utf8 length for a CONSTANT_Utf8 type entry.
|
char[] |
getUtf8Value()
Returns the utf8 value for a CONSTANT_Utf8 type entry.
|
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.
|
public int getKind()
IConstantPoolEntrygetKind in interface IConstantPoolEntryIConstantPoolEntry.getKind()public void setKind(int kind)
kind - The kind to setpublic int getClassInfoNameIndex()
IConstantPoolEntrygetClassInfoNameIndex in interface IConstantPoolEntryIConstantPoolEntry.getClassInfoNameIndex()public int getClassIndex()
IConstantPoolEntrygetClassIndex in interface IConstantPoolEntryIConstantPoolEntry.getClassIndex()public int getNameAndTypeIndex()
IConstantPoolEntrygetNameAndTypeIndex in interface IConstantPoolEntryIConstantPoolEntry.getNameAndTypeIndex()public int getStringIndex()
IConstantPoolEntrygetStringIndex in interface IConstantPoolEntryIConstantPoolEntry.getStringIndex()public java.lang.String getStringValue()
IConstantPoolEntrygetStringValue in interface IConstantPoolEntryIConstantPoolEntry.getStringValue()public int getIntegerValue()
IConstantPoolEntrygetIntegerValue in interface IConstantPoolEntryIConstantPoolEntry.getIntegerValue()public float getFloatValue()
IConstantPoolEntrygetFloatValue in interface IConstantPoolEntryIConstantPoolEntry.getFloatValue()public double getDoubleValue()
IConstantPoolEntrygetDoubleValue in interface IConstantPoolEntryIConstantPoolEntry.getDoubleValue()public long getLongValue()
IConstantPoolEntrygetLongValue in interface IConstantPoolEntryIConstantPoolEntry.getLongValue()public int getNameAndTypeInfoDescriptorIndex()
IConstantPoolEntrygetNameAndTypeInfoDescriptorIndex in interface IConstantPoolEntryIConstantPoolEntry.getNameAndTypeInfoDescriptorIndex()public int getNameAndTypeInfoNameIndex()
IConstantPoolEntrygetNameAndTypeInfoNameIndex in interface IConstantPoolEntryIConstantPoolEntry.getNameAndTypeInfoNameIndex()public char[] getClassName()
IConstantPoolEntrygetClassName in interface IConstantPoolEntryIConstantPoolEntry.getClassName()public char[] getFieldName()
IConstantPoolEntrygetFieldName in interface IConstantPoolEntryIConstantPoolEntry.getFieldName()public char[] getMethodName()
IConstantPoolEntrygetMethodName in interface IConstantPoolEntryIConstantPoolEntry.getMethodName()public char[] getFieldDescriptor()
IConstantPoolEntrygetFieldDescriptor in interface IConstantPoolEntryIConstantPoolEntry.getFieldDescriptor()public char[] getMethodDescriptor()
IConstantPoolEntrygetMethodDescriptor in interface IConstantPoolEntryIConstantPoolEntry.getMethodDescriptor()public char[] getUtf8Value()
IConstantPoolEntrygetUtf8Value in interface IConstantPoolEntryIConstantPoolEntry.getUtf8Value()public char[] getClassInfoName()
IConstantPoolEntrygetClassInfoName in interface IConstantPoolEntryIConstantPoolEntry.getClassInfoName()public void setClassInfoNameIndex(int classInfoNameIndex)
classInfoNameIndex - The classInfoNameIndex to setpublic void setClassIndex(int classIndex)
classIndex - The classIndex to setpublic void setNameAndTypeIndex(int nameAndTypeIndex)
nameAndTypeIndex - The nameAndTypeIndex to setpublic void setStringIndex(int stringIndex)
stringIndex - The stringIndex to setpublic void setStringValue(char[] stringValue)
stringValue - The stringValue to setpublic void setIntegerValue(int integerValue)
integerValue - The integerValue to setpublic void setFloatValue(float floatValue)
floatValue - The floatValue to setpublic void setDoubleValue(double doubleValue)
doubleValue - The doubleValue to setpublic void setLongValue(long longValue)
longValue - The longValue to setpublic int getNameAndTypeDescriptorIndex()
public void setNameAndTypeDescriptorIndex(int nameAndTypeDescriptorIndex)
nameAndTypeDescriptorIndex - The nameAndTypeDescriptorIndex to setpublic int getNameAndTypeNameIndex()
public void setNameAndTypeNameIndex(int nameAndTypeNameIndex)
nameAndTypeNameIndex - The nameAndTypeNameIndex to setpublic void setClassName(char[] className)
className - The className to setpublic void setFieldName(char[] fieldName)
fieldName - The fieldName to setpublic void setMethodName(char[] methodName)
methodName - The methodName to setpublic void setFieldDescriptor(char[] fieldDescriptor)
fieldDescriptor - The fieldDescriptor to setpublic void setMethodDescriptor(char[] methodDescriptor)
methodDescriptor - The methodDescriptor to setpublic void setUtf8Value(char[] utf8Value)
utf8Value - The utf8Value to setpublic void setClassInfoName(char[] classInfoName)
classInfoName - The classInfoName to setpublic int getUtf8Length()
IConstantPoolEntrygetUtf8Length in interface IConstantPoolEntryIConstantPoolEntry.getUtf8Length()public void setUtf8Length(int utf8Length)
utf8Length - The utf8Length to setpublic void reset()