Interface PackageElement

All Superinterfaces:
AnnotatedConstruct, Element, QualifiedNameable

public interface PackageElement extends Element, QualifiedNameable
Represents a package program element. Provides access to information about the package and its members.
API Note:
The represented package may have an explicit reference representation (either source code or executable output) or may be created from implicit information. The explicit and standalone source code construct for a package is typically a package-info.java file (JLS §7.4.1). A named package without a standalone package-info.java file can be declared in the package declaration of a top-level class or interface. Implicit information is used to model unnamed packages (JLS §7.4.2).

In the context of annotation processing, a package element can be:

See Java Language Specification:
7.4 Package Declarations
Since:
1.6
See Also: