Void for visitors that do not need to return results.
Void for visitors that do not need an
additional parameter.
RELEASE_6 source version. For elements Xyz that may have more than one
kind, the visitXyz methods in this class delegate
to the visitXyzAsKind method corresponding to the
first argument's kind. The visitXyzAsKind methods
call defaultAction, passing their arguments
to defaultAction's corresponding parameters.
API Note
Methods in this class may be overridden subject to their general contract.
WARNING: The ElementVisitor interface implemented by this class may have
methods added to it or the ElementKind enum
used in this class may have constants added to it in the future to
accommodate new, currently unknown, language structures added to
future versions of the Java programming language.
Therefore, methods whose names begin with "visit" may be
added to this class in the future; to avoid incompatibilities,
classes and subclasses which extend this class should not declare
any instance methods with names beginning with "visit".
When such a new visit method is added, the default
implementation in this class will be to directly or indirectly call
the visitUnknown method. A new abstract
element kind visitor class will also be introduced to correspond to
the new language level; this visitor will have different default
behavior for the visit method in question. When a new visitor is
introduced, portions of this visitor class may be deprecated,
including its constructors.
ElementKindVisitor7, ElementKindVisitor8, ElementKindVisitor9, ElementKindVisitor14
| Access | Constructor and Description |
|---|---|
| protected | ElementKindVisitor6()
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses; uses |
| protected | ElementKindVisitor6(R
the value to assign to defaultValue)DEFAULT_VALUE
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses; uses the argument for the default value. |
| Modifier and Type | Method and Description |
|---|---|
| public R | Returns: the result of the kind-specific visit methodOverrides javax. Implements javax. Visits an executable element. |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | visitPackage(PackageElement e, P p)
Overrides javax. Implements javax. Visits a package element. |
| public R | Returns: the result of the kind-specific visit methodOverrides javax. Implements javax. Visits a type element. |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofvisitUnknownthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | visitTypeParameter(TypeParameterElement e, P p)
Overrides javax. Implements javax. Visits a type parameter element. |
| public R | Returns: the result of the kind-specific visit methodOverrides javax. Implements javax. Visits a variable element. |
| public R | Returns: the result ofvisitUnknownthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe element to visit e, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofvisitUnknownthe element to visit e, P a visitor-specified parameter p)Visits a |
| ElementKindVisitor6 | back to summary |
|---|---|
| protected ElementKindVisitor6()
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses; uses
| |
| ElementKindVisitor6 | back to summary |
|---|---|
| protected ElementKindVisitor6(R defaultValue)
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses; uses the argument for the default value.
| |
| visitExecutable | back to summary |
|---|---|
| public R visitExecutable(ExecutableElement e, P p) Overrides javax. Implements javax. Doc from javax. Visits an executable element. Implementation Specification This implementation dispatches to the visit method
for the specific kind of executable,
| |
| visitExecutableAsConstructor | back to summary |
|---|---|
| public R visitExecutableAsConstructor(ExecutableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitExecutableAsInstanceInit | back to summary |
|---|---|
| public R visitExecutableAsInstanceInit(ExecutableElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitExecutableAsMethod | back to summary |
|---|---|
| public R visitExecutableAsMethod(ExecutableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitExecutableAsStaticInit | back to summary |
|---|---|
| public R visitExecutableAsStaticInit(ExecutableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitPackage | back to summary |
|---|---|
| public R visitPackage(PackageElement e, P p) Overrides javax. Implements javax. Doc from javax. Visits a package element.
The element argument has kind Implementation Specification This implementation calls
| |
| visitType | back to summary |
|---|---|
| public R visitType(TypeElement e, P p) Overrides javax. Implements javax. Doc from javax. Visits a type element. Implementation Specification This implementation dispatches to the visit method for the
specific kind of type,
| |
| visitTypeAsAnnotationType | back to summary |
|---|---|
| public R visitTypeAsAnnotationType(TypeElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitTypeAsClass | back to summary |
|---|---|
| public R visitTypeAsClass(TypeElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitTypeAsEnum | back to summary |
|---|---|
| public R visitTypeAsEnum(TypeElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitTypeAsInterface | back to summary |
|---|---|
| public R visitTypeAsInterface(TypeElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitTypeAsRecord | back to summary |
|---|---|
| public R visitTypeAsRecord(TypeElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitTypeParameter | back to summary |
|---|---|
| public R visitTypeParameter(TypeParameterElement e, P p) Overrides javax. Implements javax. Doc from javax. Visits a type parameter element.
The element argument has kind Implementation Specification This implementation calls
| |
| visitVariable | back to summary |
|---|---|
| public R visitVariable(VariableElement e, P p) Overrides javax. Implements javax. Doc from javax. Visits a variable element. Implementation Specification This implementation dispatches to the visit method for
the specific kind of variable,
| |
| visitVariableAsBindingVariable | back to summary |
|---|---|
| public R visitVariableAsBindingVariable(VariableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitVariableAsEnumConstant | back to summary |
|---|---|
| public R visitVariableAsEnumConstant(VariableElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitVariableAsExceptionParameter | back to summary |
|---|---|
| public R visitVariableAsExceptionParameter(VariableElement e, P p) Visits an Implementation Specification This implementation calls
| |
| visitVariableAsField | back to summary |
|---|---|
| public R visitVariableAsField(VariableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitVariableAsLocalVariable | back to summary |
|---|---|
| public R visitVariableAsLocalVariable(VariableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitVariableAsParameter | back to summary |
|---|---|
| public R visitVariableAsParameter(VariableElement e, P p) Visits a Implementation Specification This implementation calls
| |
| visitVariableAsResourceVariable | back to summary |
|---|---|
| public R visitVariableAsResourceVariable(VariableElement e, P p) Visits a Implementation Specification This implementation calls
| |