1 /*******************************************************************************
2  * Copyright (c) 2017 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.jdt.core.util;
15 
16 /**
17  * Description of a constant pool entry as described in the JVM specifications.
18  * Its contents is initialized according to its kind.
19  *
20  * @noimplement This interface is not intended to be implemented by clients.
21  * @since 3.14
22  */
23 public interface IConstantPoolEntry3 extends IConstantPoolEntry2 {
24 	/**
25 	 * Returns the index for a CONSTANT_Module type entry.
26 	 * The value is unspecified otherwise.
27 	 *
28 	 * @return the index for a CONSTANT_Module type entry
29 	 * @see IConstantPoolConstant#CONSTANT_Module
30 	 * @see #getModuleName()
31 	 */
getModuleIndex()32 	int getModuleIndex();
33 
34 	/**
35 	 * Returns the name of a CONSTANT_Module type entry.
36 	 * Returns null otherwise.
37 	 *
38 	 * @return the name of a CONSTANT_Module type entry
39 	 * @see IConstantPoolConstant#CONSTANT_Module
40 	 * @see #getModuleIndex()
41 	 */
getModuleName()42 	char[] getModuleName();
43 
44 	/**
45 	 * Returns the index for a CONSTANT_Package type entry.
46 	 * The value is unspecified otherwise.
47 	 *
48 	 * @return the index for a CONSTANT_Package type entry
49 	 * @see IConstantPoolConstant#CONSTANT_Package
50 	 * @see #getPackageName()
51 	 */
getPackageIndex()52 	int getPackageIndex();
53 
54 	/**
55 	 * Returns the name of a CONSTANT_Package type entry.
56 	 * Returns null otherwise.
57 	 *
58 	 * @return the name of a CONSTANT_Package type entry
59 	 * @see IConstantPoolConstant#CONSTANT_Package
60 	 * @see #getPackageIndex()
61 	 */
getPackageName()62 	char[] getPackageName();
63 }
64