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

- Packages that use ElementVisitor
  Package | Description
  --- | ---
  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 ElementVisitor in javax.lang.model.element

    Methods in javax.lang.model.element with parameters of type ElementVisitor
    Modifier and Type | Method | Description
    --- | --- | ---
    `<R,P> R` | Element.`accept(ElementVisitor<R,P> v, P p)` Applies a visitor to this element.

  - ### Uses of ElementVisitor in javax.lang.model.util

    Classes in javax.lang.model.util that implement ElementVisitor
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AbstractElementVisitor6<R,P>` A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
    `class` | `AbstractElementVisitor7<R,P>` A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
    `class` | `AbstractElementVisitor8<R,P>` A skeletal visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.
    `class` | `ElementKindVisitor6<R,P>` A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_6` source version.
    `class` | `ElementKindVisitor7<R,P>` A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_7` source version.
    `class` | `ElementKindVisitor8<R,P>` A visitor of program elements based on their kind with default behavior appropriate for the `RELEASE_8` source version.
    `class` | `ElementScanner6<R,P>` A scanning visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
    `class` | `ElementScanner7<R,P>` A scanning visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
    `class` | `ElementScanner8<R,P>` A scanning visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.
    `class` | `SimpleElementVisitor6<R,P>` A simple visitor of program elements with default behavior appropriate for the `RELEASE_6` source version.
    `class` | `SimpleElementVisitor7<R,P>` A simple visitor of program elements with default behavior appropriate for the `RELEASE_7` source version.
    `class` | `SimpleElementVisitor8<R,P>` A simple visitor of program elements with default behavior appropriate for the `RELEASE_8` source version.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.