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: * Description of a constant pool as described in the JVM specifications.
14: *
15: * This interface may be implemented by clients.
16: *
17: * @since 2.0
18: */
19: public interface IConstantPool {
20:
21: /**
22: * Answer back the number of entries in the constant pool.
23: *
24: * @return the number of entries in the constant pool
25: */
26: int getConstantPoolCount();
27:
28: /**
29: * Answer back the type of the entry at the index @index
30: * in the constant pool.
31: *
32: * @param index the index of the entry in the constant pool
33: * @return the type of the entry at the index @index in the constant pool
34: */
35: int getEntryKind(int index);
36:
37: /**
38: * Answer back the entry at the index @index
39: * in the constant pool.
40: *
41: * @param index the index of the entry in the constant pool
42: * @return the entry at the index @index in the constant pool
43: */
44: IConstantPoolEntry decodeEntry(int index);
45: }
|