Uses of Interface
javax.lang.model.element.TypeElement
| 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.
|
-
Uses of TypeElement in javax.annotation.processing
Methods in javax.annotation.processing with parameters of type TypeElement Modifier and Type Method Description Set<? extends Element>RoundEnvironment. getElementsAnnotatedWith(TypeElement a)Returns the elements annotated with the given annotation type.default Set<? extends Element>RoundEnvironment. getElementsAnnotatedWithAny(TypeElement... annotations)Returns the elements annotated with one or more of the given annotation types.Method parameters in javax.annotation.processing with type arguments of type TypeElement Modifier and Type Method Description booleanProcessor. process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)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. -
Uses of TypeElement in javax.lang.model.element
Methods in javax.lang.model.element that return TypeElement Modifier and Type Method Description TypeElementModuleElement.ProvidesDirective. getService()Returns the service being provided.TypeElementModuleElement.UsesDirective. getService()Returns the service that is used.Methods in javax.lang.model.element that return types with arguments of type TypeElement Modifier and Type Method Description List<? extends TypeElement>ModuleElement.ProvidesDirective. getImplementations()Returns the implementations of the service being provided.Methods in javax.lang.model.element with parameters of type TypeElement Modifier and Type Method Description RElementVisitor. visitType(TypeElement e, P p)Visits a type element. -
Uses of TypeElement in javax.lang.model.util
Methods in javax.lang.model.util that return TypeElement Modifier and Type Method Description TypeElementTypes. boxedClass(PrimitiveType p)Returns the class of a boxed value of a given primitive type.TypeElementElements. getTypeElement(CharSequence name)Returns a type element given its canonical name if the type element is unique in the environment.default TypeElementElements. getTypeElement(ModuleElement module, CharSequence name)Returns a type element given its canonical name, as seen from the given module.Methods in javax.lang.model.util that return types with arguments of type TypeElement Modifier and Type Method Description default Set<? extends TypeElement>Elements. getAllTypeElements(CharSequence name)Returns all type elements with the given canonical name.static List<TypeElement>ElementFilter. typesIn(Iterable<? extends Element> elements)Returns a list of types inelements.static Set<TypeElement>ElementFilter. typesIn(Set<? extends Element> elements)Returns a set of types inelements.Methods in javax.lang.model.util with parameters of type TypeElement Modifier and Type Method Description List<? extends Element>Elements. getAllMembers(TypeElement type)Returns all members of a type element, whether inherited or declared directly.NameElements. getBinaryName(TypeElement type)Returns the binary name of a type element.DeclaredTypeTypes. getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs)Returns the type corresponding to a type element and actual type arguments.DeclaredTypeTypes. 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.booleanElements. isFunctionalInterface(TypeElement type)Returnstrueif the type element is a functional interface,falseotherwise.booleanElements. overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)Tests whether one method, as a member of a given type, overrides another method.RElementKindVisitor6. visitType(TypeElement e, P p)Visits a type element.RElementScanner14. visitType(TypeElement e, P p)Visits a type element.RElementScanner6. visitType(TypeElement e, P p)Visits a type element.RSimpleElementVisitor6. visitType(TypeElement e, P p)Visits a type element.RElementKindVisitor6. visitTypeAsAnnotationType(TypeElement e, P p)Visits anANNOTATION_TYPEtype element.RElementKindVisitor6. visitTypeAsClass(TypeElement e, P p)Visits aCLASStype element.RElementKindVisitor6. visitTypeAsEnum(TypeElement e, P p)Visits anENUMtype element.RElementKindVisitor6. visitTypeAsInterface(TypeElement e, P p)Visits anINTERFACEtype element.RElementKindVisitor14. visitTypeAsRecord(TypeElement e, P p)Associated with records, a preview feature of the Java language.
Visits aRECORDtype element.RElementKindVisitor6. visitTypeAsRecord(TypeElement e, P p)Associated with records, a preview feature of the Java language.
Visits aRECORDtype element.