javax.lang.model.util (Java SE 21 & JDK 21)
Description: declaration: module: java.compiler, package: javax.lang.model.util
Keywords: javax.lang.model.util package

Module java.compiler

# Package javax.lang.model.util

package javax.lang.model.util
Utilities to assist in the processing of program elements and types.

Unless otherwise specified in a particular implementation, the collections returned by methods in this package should be expected to be unmodifiable by the caller and unsafe for concurrent access.

Unless otherwise specified, methods in this package will throw a `NullPointerException` if given a `null` argument.

Since:
  1.6
See Also:
  - JSR 269: Pluggable Annotation Processing API

- Related Packages
  Package
  Description
  javax.lang.model
  Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java programming language.
  javax.lang.model.element
  Interfaces used to model elements of the Java programming language.
  javax.lang.model.type
  Interfaces used to model Java programming language types.
- Class
  Description
  AbstractAnnotationValueVisitor14<R,P>
  A skeletal visitor for annotation values with default behavior appropriate for source version `RELEASE_14`.
  AbstractAnnotationValueVisitor6<R,P>
  A skeletal visitor for annotation values with default behavior appropriate for the `RELEASE_6` source version.
  AbstractAnnotationValueVisitor7<R,P>
  A skeletal visitor for annotation values with default behavior appropriate for the `RELEASE_7` source version.
  AbstractAnnotationValueVisitor8<R,P>
  A skeletal visitor for annotation values with default behavior appropriate for the `RELEASE_8` source version.
  AbstractAnnotationValueVisitor9<R,P>
  A skeletal visitor for annotation values with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  AbstractElementVisitor14<R,P>
  A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_14` source version.
  AbstractElementVisitor6<R,P>
  A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
  AbstractElementVisitor7<R,P>
  A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
  AbstractElementVisitor8<R,P>
  A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.
  AbstractElementVisitor9<R,P>
  A skeletal visitor of program elements with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  AbstractTypeVisitor14<R,P>
  A skeletal visitor of types with default behavior appropriate for the `RELEASE_14` source version.
  AbstractTypeVisitor6<R,P>
  A skeletal visitor of types with default behavior appropriate for the `RELEASE_6` source version.
  AbstractTypeVisitor7<R,P>
  A skeletal visitor of types with default behavior appropriate for the `RELEASE_7` source version.
  AbstractTypeVisitor8<R,P>
  A skeletal visitor of types with default behavior appropriate for the `RELEASE_8` source version.
  AbstractTypeVisitor9<R,P>
  A skeletal visitor of types with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  ElementFilter
  Filters for selecting just the elements of interest from a collection of elements.
  ElementKindVisitor14<R,P>
  A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_14` source version.
  ElementKindVisitor6<R,P>
  A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_6` source version.
  ElementKindVisitor7<R,P>
  A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_7` source version.
  ElementKindVisitor8<R,P>
  A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_8` source version.
  ElementKindVisitor9<R,P>
  A visitor of program elements based on their kind with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  Elements
  Utility methods for operating on program elements.
  Elements.Origin
  The origin of an element or other language model item.
  ElementScanner14<R,P>
  A scanning visitor of program elements with default behavior appropriate for the `RELEASE_14` source version.
  ElementScanner6<R,P>
  A scanning visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
  ElementScanner7<R,P>
  A scanning visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
  ElementScanner8<R,P>
  A scanning visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.
  ElementScanner9<R,P>
  A scanning visitor of program elements with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  SimpleAnnotationValueVisitor14<R,P>
  A simple visitor for annotation values with default behavior appropriate for source version `RELEASE_14`.
  SimpleAnnotationValueVisitor6<R,P>
  A simple visitor for annotation values with default behavior appropriate for the `RELEASE_6` source version.
  SimpleAnnotationValueVisitor7<R,P>
  A simple visitor for annotation values with default behavior appropriate for the `RELEASE_7` source version.
  SimpleAnnotationValueVisitor8<R,P>
  A simple visitor for annotation values with default behavior appropriate for the `RELEASE_8` source version.
  SimpleAnnotationValueVisitor9<R,P>
  A simple visitor for annotation values with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  SimpleElementVisitor14<R,P>
  A simple visitor of program elements with default behavior appropriate for the `RELEASE_14` source version.
  SimpleElementVisitor6<R,P>
  A simple visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
  SimpleElementVisitor7<R,P>
  A simple visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
  SimpleElementVisitor8<R,P>
  A simple visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.
  SimpleElementVisitor9<R,P>
  A simple visitor of program elements with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  SimpleTypeVisitor14<R,P>
  A simple visitor of types with default behavior appropriate for source version `RELEASE_14`.
  SimpleTypeVisitor6<R,P>
  A simple visitor of types with default behavior appropriate for the `RELEASE_6` source version.
  SimpleTypeVisitor7<R,P>
  A simple visitor of types with default behavior appropriate for the `RELEASE_7` source version.
  SimpleTypeVisitor8<R,P>
  A simple visitor of types with default behavior appropriate for the `RELEASE_8` source version.
  SimpleTypeVisitor9<R,P>
  A simple visitor of types with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  TypeKindVisitor14<R,P>
  A visitor of types based on their kind with default behavior appropriate for source version `RELEASE_14`.
  TypeKindVisitor6<R,P>
  A visitor of types based on their kind with default behavior appropriate for the `RELEASE_6` source version.
  TypeKindVisitor7<R,P>
  A visitor of types based on their kind with default behavior appropriate for the `RELEASE_7` source version.
  TypeKindVisitor8<R,P>
  A visitor of types based on their kind with default behavior appropriate for the `RELEASE_8` source version.
  TypeKindVisitor9<R,P>
  A visitor of types based on their kind with default behavior appropriate for source versions `RELEASE_9` through `RELEASE_14`.
  Types
  Utility methods for operating on types.