01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.core.util;
11:
12: /**
13: * This class represents a generic class file attribute. It is intended to be extended
14: * for any new attribute.
15: *
16: * @since 2.0
17: */
18: public interface IClassFileAttribute {
19:
20: /**
21: * Answer back the attribute name index in the constant pool as specified
22: * in the JVM specifications.
23: *
24: * @return the attribute name index in the constant pool
25: */
26: int getAttributeNameIndex();
27:
28: /**
29: * Answer back the attribute name as specified
30: * in the JVM specifications.
31: *
32: * @return the attribute name
33: */
34: char[] getAttributeName();
35:
36: /**
37: * Answer back the attribute length as specified
38: * in the JVM specifications.
39: *
40: * @return the attribute length
41: */
42: long getAttributeLength();
43: }
|