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

Packages that use IPackageDeclaration
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 IPackageDeclaration in org.eclipse.jdt.core

Methods in org.eclipse.jdt.core that return IPackageDeclaration
Modifier and Type
Method
Description
`IPackageDeclaration`
ICompilationUnit.`createPackageDeclaration(String name, IProgressMonitor monitor)`
Creates and returns a package declaration in this compilation unit with the given package name.
`IPackageDeclaration`
ICompilationUnit.`getPackageDeclaration(String name)`
Returns the first package declaration in this compilation unit with the given package name (there normally is at most one package declaration).
`IPackageDeclaration[]`
ICompilationUnit.`getPackageDeclarations()`
Returns the package declarations in this compilation unit in the order in which they appear in the source.