| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends VariableElement> | ExecutableElement. getParameters()Returns the formal parameters of this executable. | 
| Modifier and Type | Method and Description | 
|---|---|
| R | AnnotationValueVisitor. visitEnumConstant(VariableElement c,
                 P p)Visits an  enumvalue in an annotation. | 
| R | ElementVisitor. visitVariable(VariableElement e,
             P p)Visits a variable element. | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<VariableElement> | ElementFilter. fieldsIn(Iterable<? extends Element> elements)Returns a list of fields in  elements. | 
| static Set<VariableElement> | ElementFilter. fieldsIn(Set<? extends Element> elements)Returns a set of fields in  elements. | 
| Modifier and Type | Method and Description | 
|---|---|
| R | SimpleAnnotationValueVisitor6. visitEnumConstant(VariableElement c,
                 P p)Visits an  enumvalue in an annotation. | 
| R | ElementKindVisitor6. visitVariable(VariableElement e,
             P p)Visits a variable element, dispatching to the visit method for
 the specific kind of variable,  ENUM_CONSTANT,EXCEPTION_PARAMETER,FIELD,LOCAL_VARIABLE,PARAMETER, orRESOURCE_VARIABLE. | 
| R | SimpleElementVisitor6. visitVariable(VariableElement e,
             P p)Visits a variable element. | 
| R | SimpleElementVisitor7. visitVariable(VariableElement e,
             P p)This implementation calls  defaultAction. | 
| R | ElementScanner6. visitVariable(VariableElement e,
             P p)Visits a variable element. | 
| R | ElementScanner7. visitVariable(VariableElement e,
             P p)This implementation scans the enclosed elements. | 
| R | ElementKindVisitor6. visitVariableAsEnumConstant(VariableElement e,
                           P p)Visits an  ENUM_CONSTANTvariable element by callingdefaultAction. | 
| R | ElementKindVisitor6. visitVariableAsExceptionParameter(VariableElement e,
                                 P p)Visits an  EXCEPTION_PARAMETERvariable element by callingdefaultAction. | 
| R | ElementKindVisitor6. visitVariableAsField(VariableElement e,
                    P p)Visits a  FIELDvariable element by callingdefaultAction. | 
| R | ElementKindVisitor6. visitVariableAsLocalVariable(VariableElement e,
                            P p)Visits a  LOCAL_VARIABLEvariable element by callingdefaultAction. | 
| R | ElementKindVisitor6. visitVariableAsParameter(VariableElement e,
                        P p)Visits a  PARAMETERvariable element by callingdefaultAction. | 
| R | ElementKindVisitor7. visitVariableAsResourceVariable(VariableElement e,
                               P p)Visits a  RESOURCE_VARIABLEvariable element by callingdefaultAction. | 
| R | ElementKindVisitor6. visitVariableAsResourceVariable(VariableElement e,
                               P p)Visits a  RESOURCE_VARIABLEvariable element by callingvisitUnknown. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.