public interface ModuleElement extends Element, QualifiedNameable
Elements.getModuleOf(javax.lang.model.element.Element)| Modifier and Type | Interface and 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.ExportsDirective
An exported 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 and 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 |
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 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-14-195246.buildd.src