Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.jdt.core.util;

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
 
 public interface IConstantPoolEntry {

Returns the type of this entry.

Returns:
the type of this entry
 
 	int getKind();

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
See also:
IConstantPoolConstant.CONSTANT_Class
 
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
See also:
IConstantPoolConstant.CONSTANT_Fieldref
IConstantPoolConstant.CONSTANT_Methodref
IConstantPoolConstant.CONSTANT_InterfaceMethodref
 
 	int getClassIndex();

Returns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry. The value is unspecified otherwise.

Returns:
the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry
See also:
IConstantPoolConstant.CONSTANT_Fieldref
IConstantPoolConstant.CONSTANT_Methodref
IConstantPoolConstant.CONSTANT_InterfaceMethodref
IConstantPoolConstant.CONSTANT_InvokeDynamic
 
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
See also:
IConstantPoolConstant.CONSTANT_String
 
 	int getStringIndex();

Returns the string value for a CONSTANT_String type entry. Returns null otherwise.

Returns:
the string value for a CONSTANT_String type entry
See also:
IConstantPoolConstant.CONSTANT_String
 
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
See also:
IConstantPoolConstant.CONSTANT_Integer
 
 	int getIntegerValue();

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
See also:
IConstantPoolConstant.CONSTANT_Float
	float getFloatValue();

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
See also:
IConstantPoolConstant.CONSTANT_Double
	double getDoubleValue();

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
See also:
IConstantPoolConstant.CONSTANT_Long
	long getLongValue();

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
See also:
IConstantPoolConstant.CONSTANT_NameAndType
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
See also:
IConstantPoolConstant.CONSTANT_NameAndType
Returns the class name for a CONSTANT_Class type entry. Returns null otherwise.

Returns:
the class name for a CONSTANT_Class type entry
See also:
IConstantPoolConstant.CONSTANT_Class
	char[] getClassInfoName();

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
See also:
IConstantPoolConstant.CONSTANT_Fieldref
IConstantPoolConstant.CONSTANT_Methodref
IConstantPoolConstant.CONSTANT_InterfaceMethodref
	char[] getClassName();

Returns the field name for a CONSTANT_Fieldref type entry. Returns null otherwise.

Returns:
the field name for a CONSTANT_Fieldref type entry
See also:
IConstantPoolConstant.CONSTANT_Fieldref
	char[] getFieldName();

Returns the field name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry. Returns null otherwise.

Returns:
the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry
See also:
IConstantPoolConstant.CONSTANT_Methodref
IConstantPoolConstant.CONSTANT_InterfaceMethodref
IConstantPoolConstant.CONSTANT_InvokeDynamic
	char[] getMethodName();

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
See also:
IConstantPoolConstant.CONSTANT_Fieldref
Returns 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.

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:
IConstantPoolConstant.CONSTANT_Methodref
IConstantPoolConstant.CONSTANT_InterfaceMethodref
IConstantPoolConstant.CONSTANT_MethodType
IConstantPoolConstant.CONSTANT_InvokeDynamic
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
See also:
IConstantPoolConstant.CONSTANT_Utf8
	char[] getUtf8Value();

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
See also:
IConstantPoolConstant.CONSTANT_Utf8
New to GrepCode? Check out our FAQ X