| Package | Description |
|---|---|
| javax.annotation.processing |
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
|
| javax.lang.model.element |
Interfaces used to model elements of the Java programming language.
|
| javax.lang.model.util |
Utilities to assist in the processing of program elements and types.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
RoundEnvironment.getElementsAnnotatedWith(TypeElement
Returns the elements annotated with the given annotation type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
AbstractProcessor.process(Set
Processes a set of annotation types on type elements originating from the prior round and returns whether or not these annotation types are claimed by this processor.
|
boolean |
Processor.process(Set
Processes a set of annotation types on type elements originating from the prior round and returns whether or not these annotation types are claimed by this processor.
|
| Modifier and Type | Method and Description |
|---|---|
R |
ElementVisitor.visitType(TypeElement
Visits a type element.
|
| Modifier and Type | Method and Description |
|---|---|
TypeElement |
Types.boxedClass(PrimitiveType
Returns the class of a boxed value of a given primitive type.
|
TypeElement |
Elements.getTypeElement(CharSequence
Returns a type element given its canonical name.
|
| Modifier and Type | Method and Description |
|---|---|
static List |
ElementFilter.typesIn(Iterable
Returns a list of types in
elements.
|
static Set |
ElementFilter.typesIn(Set
Returns a set of types in
elements.
|
| Modifier and Type | Method and Description |
|---|---|
List |
Elements.getAllMembers(TypeElement
Returns all members of a type element, whether inherited or declared directly.
|
Name |
Elements.getBinaryName(TypeElement
Returns the
binary name of a type element.
|
DeclaredType |
Types.getDeclaredType(DeclaredType
Returns the type corresponding to a type element and actual type arguments, given a
containing type of which it is a member.
|
DeclaredType |
Types.getDeclaredType(TypeElement
Returns the type corresponding to a type element and actual type arguments.
|
boolean |
Elements.isFunctionalInterface(TypeElement
Returns
true if the type element is a functional interface,
false otherwise.
|
boolean |
Elements.overrides(ExecutableElement
Tests whether one method, as a member of a given type, overrides another method.
|
R |
SimpleElementVisitor6.visitType(TypeElement
Visits a type element.
|
R |
ElementScanner6.visitType(TypeElement
Visits a type element.
|
R |
ElementKindVisitor6.visitType(TypeElement
Visits a type element, dispatching to the visit method for the specific
kind of type,
ANNOTATION_TYPE,
CLASS,
ENUM, or
INTERFACE.
|
R |
ElementKindVisitor6.visitTypeAsAnnotationType(TypeElement
Visits an
ANNOTATION_TYPE type element by calling
defaultAction.
|
R |
ElementKindVisitor6.visitTypeAsClass(TypeElement
Visits a
CLASS type element by calling
defaultAction.
|
R |
ElementKindVisitor6.visitTypeAsEnum(TypeElement
Visits an
ENUM type element by calling
defaultAction.
|
R |
ElementKindVisitor6.visitTypeAsInterface(TypeElement
Visits an
INTERFACE type element by calling
defaultAction.
|