1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 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;
15 
16 /**
17  * Represents an import container is a child of a Java compilation unit that contains
18  * all (and only) the import declarations. If a compilation unit has no import
19  * declarations, no import container will be present.
20  *
21  * @noimplement This interface is not intended to be implemented by clients.
22  */
23 public interface IImportContainer extends IJavaElement, IParent, ISourceReference {
24 /**
25  * Returns the first import declaration in this import container with the given name.
26  * This is a handle-only method. The import declaration may or may not exist.
27  *
28  * @param name the given name
29  *
30  * @return the first import declaration in this import container with the given name
31  */
getImport(String name)32 IImportDeclaration getImport(String name);
33 }
34