## Uses of Interface
javax.lang.model.element.TypeElement

- Packages that use 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 and Description
    --- | ---
    `Set<? extends Element>` | RoundEnvironment.`getElementsAnnotatedWith(TypeElement a)` Returns the elements annotated with the given annotation type.

    Method parameters in javax.annotation.processing with type arguments of type TypeElement
    Modifier and Type | Method and Description
    --- | ---
    `abstract boolean` | AbstractProcessor.`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.
    `boolean` | Processor.`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 with parameters of type TypeElement
    Modifier and Type | Method and Description
    --- | ---
    `R` | ElementVisitor.`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 and Description
    --- | ---
    `TypeElement` | Types.`boxedClass(PrimitiveType p)` Returns the class of a boxed value of a given primitive type.
    `TypeElement` | Elements.`getTypeElement(CharSequence name)` Returns a type element given its canonical name.

    Methods in javax.lang.model.util that return types with arguments of type TypeElement
    Modifier and Type | Method and Description
    --- | ---
    `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`.

    Methods in javax.lang.model.util with parameters of type TypeElement
    Modifier and Type | Method and Description
    --- | ---
    `List<? extends Element>` | Elements.`getAllMembers(TypeElement type)` Returns all members of a type element, whether inherited or declared directly.
    `Name` | Elements.`getBinaryName(TypeElement type)` Returns the binary name of a type element.
    `DeclaredType` | 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.
    `DeclaredType` | Types.`getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs)` Returns the type corresponding to a type element and actual type arguments.
    `boolean` | Elements.`isFunctionalInterface(TypeElement type)` Returns `true` 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 type, overrides another method.
    `R` | ElementKindVisitor6.`visitType(TypeElement e, P p)` Visits a type element, dispatching to the visit method for the specific kind of type, `ANNOTATION_TYPE`, `CLASS`, `ENUM`, or `INTERFACE`.
    `R` | SimpleElementVisitor6.`visitType(TypeElement e, P p)` Visits a type element.
    `R` | ElementScanner6.`visitType(TypeElement e, P p)` Visits a type element.
    `R` | ElementKindVisitor6.`visitTypeAsAnnotationType(TypeElement e, P p)` Visits an `ANNOTATION_TYPE` type element by calling `defaultAction`.
    `R` | ElementKindVisitor6.`visitTypeAsClass(TypeElement e, P p)` Visits a `CLASS` type element by calling `defaultAction`.
    `R` | ElementKindVisitor6.`visitTypeAsEnum(TypeElement e, P p)` Visits an `ENUM` type element by calling `defaultAction`.
    `R` | ElementKindVisitor6.`visitTypeAsInterface(TypeElement e, P p)` Visits an `INTERFACE` type element by calling `defaultAction`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.