KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > IImportContainer


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core;
12
13 /**
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.
17  * <p>
18  * This interface is not intended to be implemented by clients.
19  * </p>
20  */

21 public interface IImportContainer extends IJavaElement, IParent, 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 JavaDoc name);
31 }
32
Popular Tags