Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.util
Interface IConstantPoolEntry


public interface IConstantPoolEntry

Description of a constant pool entry as described in the JVM specifications. Its contents is initialized according to its kind. This interface may be implemented by clients.

Since:
2.0

Method Summary
 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 field name for a CONSTANT_Methodref or CONSTANT_InterfaceMethodred type entry.
 int getNameAndTypeIndex ()
          Returns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref 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 getStringIndex ()
          Returns the string index for a CONSTANT_String type entry.
  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.
 

Method Detail

getKind

int getKind()
Returns the type of this entry.

Returns:
the type of this entry

getClassInfoNameIndex

int getClassInfoNameIndex()
Returns the name index for a CONSTANT_Class type entry. The value is unspecified otherwise.

Returns:
the name index for a CONSTANT_Class type entry

getClassIndex

int getClassIndex()
Returns the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. The value is unspecified otherwise.

Returns:
the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry

getNameAndTypeIndex

int getNameAndTypeIndex()
Returns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. The value is unspecified otherwise.

Returns:
the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry

getStringIndex

int getStringIndex()
Returns the string index for a CONSTANT_String type entry. The value is unspecified otherwise.

Returns:
the string index for a CONSTANT_String type entry

getStringValue

String getStringValue()
Returns the string value for a CONSTANT_String type entry. Returns null otherwise.

Returns:
the string value for a CONSTANT_String type entry

getIntegerValue

int getIntegerValue()
Returns the integer value for a CONSTANT_Integer type entry. The value is unspecified otherwise.

Returns:
the integer value for a CONSTANT_Integer type entry

getFloatValue

float getFloatValue()
Returns the float value for a CONSTANT_Float type entry. The value is unspecified otherwise.

Returns:
the float value for a CONSTANT_Float type entry

getDoubleValue

double getDoubleValue()
Returns the double value for a CONSTANT_Double type entry. The value is unspecified otherwise.

Returns:
the double value for a CONSTANT_Double type entry

getLongValue

long getLongValue()
Returns the long value for a CONSTANT_Long type entry. The value is unspecified otherwise.

Returns:
the long value for a CONSTANT_Long type entry

getNameAndTypeInfoDescriptorIndex

int getNameAndTypeInfoDescriptorIndex()
Returns the descriptor index for a CONSTANT_NameAndType type entry. The value is unspecified otherwise.

Returns:
the descriptor index for a CONSTANT_NameAndType type entry

getNameAndTypeInfoNameIndex

int getNameAndTypeInfoNameIndex()
Returns the name index for a CONSTANT_NameAndType type entry. The value is unspecified otherwise.

Returns:
the name index for a CONSTANT_NameAndType type entry

getClassInfoName

char[] getClassInfoName()
Returns the class name for a CONSTANT_Class type entry. Returns null otherwise.

Returns:
the class name for a CONSTANT_Class type entry

getClassName

char[] getClassName()
Returns the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry. Returns null otherwise.

Returns:
the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry

getFieldName

char[] getFieldName()
Returns the field name for a CONSTANT_Fieldref type entry. Returns null otherwise.

Returns:
the field name for a CONSTANT_Fieldref type entry

getMethodName

char[] getMethodName()
Returns the field name for a CONSTANT_Methodref or CONSTANT_InterfaceMethodred type entry. Returns null otherwise.

Returns:
the field name for a CONSTANT_Methodref or CONSTANT_InterfaceMethodred type entry

getFieldDescriptor

char[] getFieldDescriptor()
Returns the field descriptor value for a CONSTANT_Fieldref type entry. This value is set only when decoding the CONSTANT_Fieldref entry. Returns null otherwise.

Returns:
the field descriptor value for a CONSTANT_Fieldref type entry. This value is set only when decoding the CONSTANT_Fieldref entry

getMethodDescriptor

char[] getMethodDescriptor()
Returns the method descriptor value for a CONSTANT_Methodref or CONSTANT_InterfaceMethodref type entry. This value is set only when decoding the CONSTANT_Methodref or CONSTANT_InterfaceMethodref entry. Returns null otherwise.

Returns:
the method descriptor value for a CONSTANT_Methodref or CONSTANT_InterfaceMethodref type entry. This value is set only when decoding the CONSTANT_Methodref or CONSTANT_InterfaceMethodref entry

getUtf8Value

char[] getUtf8Value()
Returns the utf8 value for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry. Returns null otherwise.

Returns:
the utf8 value for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry

getUtf8Length

int getUtf8Length()
Returns the utf8 length for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry. Returns null otherwise.

Returns:
the utf8 length for a CONSTANT_Utf8 type entry. This value is set only when decoding a UTF8 entry

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire