Package Summary Overview Summary |
javax.lang.model.AnnotatedConstruct
, Element
, javax.lang.model.element.QualifiedNameable
public interface ModuleElement extends Element, javax.lang.model.element.QualifiedNameable
Elements.getModuleOf(javax.lang.model.element.Element)
Modifier and Type | Interface | Description |
---|---|---|
static interface | ModuleElement.Directive |
Represents a directive 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 |
---|---|---|
java.util.List<? extends ModuleElement.Directive> | getDirectives() |
Returns the directives contained in the declaration of this module.
|
java.util.List<? extends Element> | getEnclosedElements() |
Returns the packages within this module.
|
Element | getEnclosingElement() |
Returns
null since a module is not enclosed by another element. |
javax.lang.model.element.Name | getQualifiedName() |
Returns the fully qualified name of this module.
|
javax.lang.model.element.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. |
accept, asType, equals, getAnnotation, getAnnotationMirrors, getKind, getModifiers, hashCode
javax.lang.model.element.Name getQualifiedName()
getQualifiedName
in interface javax.lang.model.element.QualifiedNameable
javax.lang.model.element.Name getSimpleName()
getSimpleName
in interface Element
PackageElement.getSimpleName()
, ExecutableElement.getSimpleName()
, TypeElement.getSimpleName()
, VariableElement.getSimpleName()
, getSimpleName()
java.util.List<? extends Element> getEnclosedElements()
getEnclosedElements
in interface Element
TypeElement.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
otherwise boolean isUnnamed()
true
if this is an unnamed module and false
otherwise. true
if this is an unnamed module and false
otherwise Element getEnclosingElement()
null
since a module is not enclosed by another element. getEnclosingElement
in interface Element
null
Elements.getPackageOf(javax.lang.model.element.Element)
java.util.List<? extends ModuleElement.Directive> getDirectives()
Copyright © 1993, 2017, Oracle and/or its affiliates · All rights reserved · License