Interface ModuleElement

All Superinterfaces:
AnnotatedConstruct, Element, QualifiedNameable

public interface ModuleElement extends Element, QualifiedNameable
Represents a module program element. Provides access to information about the module, its directives, and its members.
API Note:
The represented module 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 module is typically a module-info.java file (JLS 7.7). Automatic modules (JLS 7.7.1) are named modules that do not have a module-info file. Implicit information is used to model unnamed modules.

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

  • created from the initial inputs to a run of the tool
  • queried for in the configured environment
See Java Language Specification:
7.7 Module Declarations
Since:
9
See Also: