Package | Description |
---|---|
javax.lang.model.element |
REVISED Interfaces used to model elements of the Java programming language.
|
javax.lang.model.util |
Modifier and Type | Interface | Description |
---|---|---|
interface |
ModuleElement |
NEW Represents a module program element.
|
interface |
PackageElement |
REVISED Represents a package program element.
|
interface |
QualifiedNameable |
A mixin interface for an element that has a qualified name.
|
Modifier and Type | Method | Description |
---|---|---|
Element |
Element.getEnclosingElement() |
REVISED Returns the innermost element
within which this element is, loosely speaking, enclosed.
|
Element |
PackageElement.getEnclosingElement() |
REVISED Returns the enclosing module if such a module exists; otherwise
returns
null . |
Element |
ModuleElement.getEnclosingElement() |
Returns
null since a module is not enclosed by another
element. |
Modifier and Type | Method | Description |
---|---|---|
List<? extends Element> |
Element.getEnclosedElements() |
REVISED Returns the elements that are, loosely speaking, directly
enclosed by this element.
|
List<? extends Element> |
ModuleElement.getEnclosedElements() |
Returns the packages within this module.
|
List<? extends Element> |
PackageElement.getEnclosedElements() |
Returns the top-level
classes and interfaces within this package.
|
Modifier and Type | Method | Description |
---|---|---|
default R |
ElementVisitor.visit(Element e) |
A convenience method equivalent to
visit(e, null) . |
R |
ElementVisitor.visit(Element e,
P p) |
Visits an element.
|
R |
ElementVisitor.visitUnknown(Element e,
P p) |
Visits an unknown kind of element.
|
Modifier and Type | Method | Description |
---|---|---|
List<? extends Element> |
Elements.getAllMembers(TypeElement type) |
Returns all members of a type element, whether inherited or
declared directly.
|
Modifier and Type | Method | Description |
---|---|---|
default ModuleElement |
Elements.getModuleOf(Element type) |
NEW Returns the module of an element.
|
List<? extends AnnotationMirror> |
Elements.getAllAnnotationMirrors(Element e) |
Returns all annotations present on an element, whether
directly present or present via inheritance.
|
String |
Elements.getDocComment(Element e) |
Returns the text of the documentation ("Javadoc")
comment of an element.
|
default Elements.Origin |
Elements.getOrigin(Element e) |
Returns the origin of the given element.
|
PackageElement |
Elements.getPackageOf(Element type) |
Returns the package of an element.
|
boolean |
Elements.hides(Element hider,
Element hidden) |
Tests whether one type, method, or field hides another.
|
boolean |
Elements.isDeprecated(Element e) |
Returns
true if the element is deprecated, false otherwise. |
void |
Elements.printElements(Writer w,
Element... elements) |
Prints a representation of the elements to the given writer in
the specified order.
|
R |
AbstractElementVisitor6.visit(Element e) |
Visits any program element as if by passing itself to that
element's
accept method and passing
null for the additional parameter. |
R |
AbstractElementVisitor6.visit(Element e,
P p) |
Visits any program element as if by passing itself to that
element's
accept method. |
R |
AbstractElementVisitor6.visitUnknown(Element e,
P p) |
Visits an unknown kind of element.
|
Modifier and Type | Method | Description |
---|---|---|
static List<ModuleElement> |
ElementFilter.modulesIn(Iterable<? extends Element> elements) |
NEW Returns a list of modules in
elements . |
static Set<ModuleElement> |
ElementFilter.modulesIn(Set<? extends Element> elements) |
NEW Returns a set of modules in
elements . |
static List<ExecutableElement> |
ElementFilter.constructorsIn(Iterable<? extends Element> elements) |
Returns a list of constructors in
elements . |
static Set<ExecutableElement> |
ElementFilter.constructorsIn(Set<? extends Element> elements) |
Returns a set of constructors in
elements . |
static List<VariableElement> |
ElementFilter.fieldsIn(Iterable<? extends Element> elements) |
Returns a list of fields in
elements . |
static Set<VariableElement> |
ElementFilter.fieldsIn(Set<? extends Element> elements) |
Returns a set of fields in
elements . |
static List<ExecutableElement> |
ElementFilter.methodsIn(Iterable<? extends Element> elements) |
Returns a list of methods in
elements . |
static Set<ExecutableElement> |
ElementFilter.methodsIn(Set<? extends Element> elements) |
Returns a set of methods in
elements . |
static List<PackageElement> |
ElementFilter.packagesIn(Iterable<? extends Element> elements) |
Returns a list of packages in
elements . |
static Set<PackageElement> |
ElementFilter.packagesIn(Set<? extends Element> elements) |
Returns a set of packages in
elements . |
static List<TypeElement> |
ElementFilter.typesIn(Iterable<? extends Element> elements) |
Returns a list of types in
elements . |
static Set<TypeElement> |
ElementFilter.typesIn(Set<? extends Element> elements) |
Returns a set of types in
elements . |
Copyright © 1993, 2017, Oracle and/or its affiliates · All rights reserved · License