KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > util > IClassFileAttribute


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.util;
12
13 /**
14  * This class represents a generic class file attribute. It is intended to be extended
15  * for any new attribute.
16  *
17  * @since 2.0
18  */

19 public interface IClassFileAttribute {
20     
21     /**
22      * Answer back the attribute name index in the constant pool as specified
23      * in the JVM specifications.
24      *
25      * @return the attribute name index in the constant pool
26      */

27     int getAttributeNameIndex();
28
29     /**
30      * Answer back the attribute name as specified
31      * in the JVM specifications.
32      *
33      * @return the attribute name
34      */

35     char[] getAttributeName();
36
37     /**
38      * Answer back the attribute length as specified
39      * in the JVM specifications.
40      *
41      * @return the attribute length
42      */

43     long getAttributeLength();
44 }
45
Popular Tags