Uses of Interface
javax.lang.model.element.TypeElement
Package
Description
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
Interfaces used to model elements of the Java programming language.
Utilities to assist in the processing of
program elements and
types.
-
Uses of TypeElement in javax.annotation.processing
Modifier and TypeMethodDescriptionRoundEnvironment.getElementsAnnotatedWith
(TypeElement a) Returns the elements annotated with the given annotation interface.RoundEnvironment.getElementsAnnotatedWithAny
(TypeElement... annotations) Returns the elements annotated with one or more of the given annotation interfaces.Modifier and TypeMethodDescriptionabstract boolean
AbstractProcessor.process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor.boolean
Processor.process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. -
Uses of TypeElement in javax.lang.model.element
Modifier and TypeMethodDescriptionModuleElement.ProvidesDirective.getService()
Returns the service being provided.ModuleElement.UsesDirective.getService()
Returns the service that is used.Modifier and TypeMethodDescriptionList
<? extends TypeElement> ModuleElement.ProvidesDirective.getImplementations()
Returns the implementations of the service being provided.Modifier and TypeMethodDescriptionElementVisitor.visitType
(TypeElement e, P p) Visits a type element. -
Uses of TypeElement in javax.lang.model.util
Modifier and TypeMethodDescriptionTypes.boxedClass
(PrimitiveType p) Returns the class of a boxed value of the primitive type argument.default TypeElement
Elements.getEnumConstantBody
(VariableElement enumConstant) Returns the class body of anenum
constant if the argument is anenum
constant declared with an optional class body,null
otherwise.default TypeElement
Elements.getOutermostTypeElement
(Element e) Returns the outermost type element an element is contained in if such a containing element exists; otherwise returnsnull
.Elements.getTypeElement
(CharSequence name) Returns a type element given its canonical name if the type element is uniquely determinable in the environment.default TypeElement
Elements.getTypeElement
(ModuleElement module, CharSequence name) Returns a type element given its canonical name, as seen from the given module.Modifier and TypeMethodDescriptiondefault Set
<? extends TypeElement> Elements.getAllTypeElements
(CharSequence name) Returns all type elements with the given canonical name.static List
<TypeElement> Returns a list of classes and interfaces inelements
.static Set
<TypeElement> Returns a set of types inelements
.Modifier and TypeMethodDescriptionElements.getAllMembers
(TypeElement type) Returns all members of a type element, whether inherited or declared directly.Elements.getBinaryName
(TypeElement type) Returns the binary name of a type element.Types.getDeclaredType
(TypeElement typeElem, TypeMirror... typeArgs) Returns the type corresponding to a type element and actual type arguments.Types.getDeclaredType
(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) Returns the type corresponding to a type element and actual type arguments, given a containing type of which it is a member.boolean
Elements.isFunctionalInterface
(TypeElement type) Returnstrue
if the type element is a functional interface,false
otherwise.boolean
Elements.overrides
(ExecutableElement overrider, ExecutableElement overridden, TypeElement type) Tests whether one method, as a member of a given class or interface, overrides another method.ElementKindVisitor6.visitType
(TypeElement e, P p) Visits a type element.ElementScanner14.visitType
(TypeElement e, P p) Visits a type element.ElementScanner6.visitType
(TypeElement e, P p) Visits a type element.SimpleElementVisitor6.visitType
(TypeElement e, P p) Visits a type element.ElementKindVisitor6.visitTypeAsAnnotationType
(TypeElement e, P p) Visits anANNOTATION_TYPE
type element.ElementKindVisitor6.visitTypeAsClass
(TypeElement e, P p) Visits aCLASS
type element.ElementKindVisitor6.visitTypeAsEnum
(TypeElement e, P p) Visits anENUM
type element.ElementKindVisitor6.visitTypeAsInterface
(TypeElement e, P p) Visits anINTERFACE
type element.ElementKindVisitor14.visitTypeAsRecord
(TypeElement e, P p) Visits aRECORD
type element.ElementKindVisitor6.visitTypeAsRecord
(TypeElement e, P p) Visits aRECORD
type element.