Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 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 an annotation component value as described in the JVM specifications (added in J2SE 1.5). This interface may be implemented by clients.

Since:
3.1
 
 public interface IAnnotationComponentValue {

Tag value for a constant of type byte

Since:
3.1
 
 	int BYTE_TAG = 'B';
Tag value for a constant of type char

Since:
3.1
 
 	int CHAR_TAG = 'C';
Tag value for a constant of type double

Since:
3.1
 
 	int DOUBLE_TAG = 'D';
Tag value for a constant of type float

Since:
3.1
 
 	int FLOAT_TAG = 'F';
Tag value for a constant of type int

Since:
3.1
 
 	int INTEGER_TAG = 'I';
Tag value for a constant of type long

Since:
3.1
 
 	int LONG_TAG = 'J';
Tag value for a constant of type short

Since:
3.1
 
 	int SHORT_TAG = 'S';
Tag value for a constant of type boolean

Since:
3.1
 
 	int BOOLEAN_TAG = 'Z';
Tag value for a constant of type java.lang.String

Since:
3.1
 
 	int STRING_TAG = 's';
Tag value for a value that represents an enum constant

Since:
3.1
 
 	int ENUM_TAG = 'e';
Tag value for a value that represents a class

Since:
3.1
 
 	int CLASS_TAG = 'c';
Tag value for a value that represents an annotation

Since:
3.1
 
 	int ANNOTATION_TAG = '@';
Tag value for a value that represents an array

Since:
3.1
 
 	int ARRAY_TAG = '[';

Returns the annotation component values as described in the JVM specifications if the tag item is '['. Returns null otherwise.

Returns:
the annotation component values
 
Returns the annotation value as described in the JVM specifications if the tag item is '@'. Returns null otherwise.

Returns:
the attribute value
Since:
3.1
Returns the class info as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.

Returns:
the class info
Returns the class info index as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.

Returns:
the class info index
Returns the constant value as described in the JVM specifications if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'. Returns null otherwise.

Returns:
the constant value
Returns the constant value index as described in the JVM specifications if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'. The value is unspecified otherwise.

Returns:
the constant value index
Returns the simple name of the enum constant represented by this annotation component value as described in the JVM specifications if the tag item is 'e'. Returns null otherwise.

Returns:
the enum constant
Since:
3.1
Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.

Returns:
the enum constant index
Since:
3.1
Returns the binary name of the type of the enum constant represented by this annotation component value as described in the JVM specifications if the tag item is 'e'. Returns null otherwise.

Returns:
the enum constant
Since:
3.1
Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.

Returns:
the enum constant index
Since:
3.1
Returns the tag as described in the JVM specifications.

Returns:
the tag
	int getTag();

Returns the number of values as described in the JVM specifications if the tag item is '['. The value is unspecified otherwise.

Returns:
the number of values
New to GrepCode? Check out our FAQ X