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;
11:
12: /**
13: * Represents an import container is a child of a Java compilation unit that contains
14: * all (and only) the import declarations. If a compilation unit has no import
15: * declarations, no import container will be present.
16: * <p>
17: * This interface is not intended to be implemented by clients.
18: * </p>
19: */
20: public interface IImportContainer extends IJavaElement, IParent,
21: ISourceReference {
22: /**
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.
25: *
26: * @param name the given name
27: *
28: * @return the first import declaration in this import container with the given name
29: */
30: IImportDeclaration getImport(String name);
31: }
|