AnnotatedConstruct, Element, QualifiedNameablepublic interface ModuleElement extends Element, QualifiedNameable
Elements.getModuleOf(javax.lang.model.element.Element)| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
ModuleElement.Directive |
Represents a "module statement" within the declaration of this module.
|
static class |
ModuleElement.DirectiveKind |
The
kind of a directive. |
static interface |
ModuleElement.DirectiveVisitor<R,P> |
A visitor of module directives, in the style of the visitor design
pattern.
|
static interface |
ModuleElement.ExportsDirective |
An exported package of a module.
|
static interface |
ModuleElement.OpensDirective |
An opened package of a module.
|
static interface |
ModuleElement.ProvidesDirective |
An implementation of a service provided by a module.
|
static interface |
ModuleElement.RequiresDirective |
A dependency of a module.
|
static interface |
ModuleElement.UsesDirective |
A reference to a service used by a module.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<? extends ModuleElement.Directive> |
getDirectives() |
Returns the directives contained in the declaration of this module.
|
List<? extends Element> |
getEnclosedElements() |
Returns the packages within this module.
|
Element |
getEnclosingElement() |
Returns
null since a module is not enclosed by another
element. |
Name |
getQualifiedName() |
Returns the fully qualified name of this module.
|
Name |
getSimpleName() |
Returns the simple name of this module.
|
boolean |
isOpen() |
Returns
true if this is an open module and
false otherwise. |
boolean |
isUnnamed() |
Returns
true if this is an unnamed module and
false otherwise. |
getAnnotationsByTypeaccept, asType, equals, getAnnotation, getAnnotationMirrors, getKind, getModifiers, hashCodeName getQualifiedName()
getQualifiedName in interface QualifiedNameableName getSimpleName()
getSimpleName in interface ElementPackageElement.getSimpleName(),
ExecutableElement.getSimpleName(),
TypeElement.getSimpleName(),
VariableElement.getSimpleName(),
getSimpleName()List<? extends Element> getEnclosedElements()
getEnclosedElements in interface ElementTypeElement.getEnclosedElements(),
PackageElement.getEnclosedElements(),
getEnclosedElements(),
Elements.getAllMembers(javax.lang.model.element.TypeElement)boolean isOpen()
true if this is an open module and
false otherwise.true if this is an open module and
false otherwiseboolean isUnnamed()
true if this is an unnamed module and
false otherwise.true if this is an unnamed module and
false otherwiseElement getEnclosingElement()
null since a module is not enclosed by another
element.getEnclosingElement in interface ElementnullElements.getPackageOf(javax.lang.model.element.Element)List<? extends ModuleElement.Directive> getDirectives()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps