org.eclipse.jdt.core.IImportContainer Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.core;
/**
* Represents an import container is a child of a Java compilation unit that contains
* all (and only) the import declarations. If a compilation unit has no import
* declarations, no import container will be present.
*
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IImportContainer extends IJavaElement, IParent, ISourceReference {
/**
* Returns the first import declaration in this import container with the given name.
* This is a handle-only method. The import declaration may or may not exist.
*
* @param name the given name
*
* @return the first import declaration in this import container with the given name
*/
IImportDeclaration getImport(String name);
}