# Uses of Interface
org.eclipse.jdt.core.IImportDeclaration

Packages that use IImportDeclaration
Package
Description
org.eclipse.jdt.core
The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.

## Uses of IImportDeclaration in org.eclipse.jdt.core

Methods in org.eclipse.jdt.core that return IImportDeclaration
Modifier and Type
Method
Description
`IImportDeclaration`
ICompilationUnit.`createImport(String name, IJavaElement sibling, int flags, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns an import declaration in this compilation unit with the given name.
`IImportDeclaration`
ICompilationUnit.`createImport(String name, IJavaElement sibling, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns an non-static import declaration in this compilation unit with the given name.
`IImportDeclaration`
ICompilationUnit.`getImport(String name)`
Returns the first import declaration in this compilation unit with the given name.
`IImportDeclaration`
IImportContainer.`getImport(String name)`
Returns the first import declaration in this import container with the given name.
`IImportDeclaration[]`
ICompilationUnit.`getImports()`
Returns the import declarations in this compilation unit in the order in which they appear in the source.