1 /*******************************************************************************
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core;
14 * Represents an import container is a child of a Java compilation unit that contains
15 * all (and only) the import declarations. If a compilation unit has no import
16 * declarations, no import container will be present.
18 * This interface is not intended to be implemented by clients.
21 public interface IImportContainer extends IJavaElement, IParent, ISourceReference {
23 * Returns the first import declaration in this import container with the given name.
24 * This is a handle-only method. The import declaration may or may not exist.
26 * @param name the given name
28 * @return the first import declaration in this import container with the given name
30 IImportDeclaration getImport(String name);