Void
for visitors that do not need to return results.
Void
for visitors that do not need an additional parameter.
RELEASE_6
source version.
Visit methods corresponding to RELEASE_6 language
constructs call defaultAction, passing their
arguments to defaultAction's corresponding parameters.
For constructs introduced in RELEASE_7 and later, visitUnknown is called instead.
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 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 simple
element 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.
SimpleElementVisitor7, SimpleElementVisitor8, SimpleElementVisitor9, SimpleElementVisitor14
| Modifier and Type | Field and Description |
|---|---|
| protected final R | DEFAULT_VALUE
Default value to be returned; |
| Access | Constructor and Description |
|---|---|
| protected | SimpleElementVisitor6()
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses; uses |
| protected | SimpleElementVisitor6(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 |
|---|---|
| protected R | Returns: DEFAULT_VALUE unless overriddenthe element to process e, P a visitor-specified parameter p)The default action for visit methods. |
| public R | visitExecutable(ExecutableElement e, P p)
Implements javax. Visits an executable element. |
| public R | visitPackage(PackageElement e, P p)
Implements javax. Visits a package element. |
| public R | visitType(TypeElement e, P p)
Implements javax. Visits a type element. |
| public R | visitTypeParameter(TypeParameterElement e, P p)
Implements javax. Visits a type parameter element. |
| public R | visitVariable(VariableElement e, P p)
Implements javax. Visits a variable element. |
| DEFAULT_VALUE | back to summary |
|---|---|
| protected final R DEFAULT_VALUE Default value to be returned; | |
| SimpleElementVisitor6 | back to summary |
|---|---|
| protected SimpleElementVisitor6()
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses; uses
| |
| SimpleElementVisitor6 | back to summary |
|---|---|
| protected SimpleElementVisitor6(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.
| |
| defaultAction | back to summary |
|---|---|
| protected R defaultAction(Element e, P p) The default action for visit methods. Implementation Specification The implementation in this class just returns
| |
| visitExecutable | back to summary |
|---|---|
| public R visitExecutable(ExecutableElement e, P p) Implements javax. Doc from javax. Visits an executable element. Implementation Specification This implementation calls
| |
| visitPackage | back to summary |
|---|---|
| public R visitPackage(PackageElement e, P p) Implements javax. Doc from javax. Visits a package element. Implementation Specification This implementation calls
| |
| visitType | back to summary |
|---|---|
| public R visitType(TypeElement e, P p) Implements javax. Doc from javax. Visits a type element. Implementation Specification This implementation calls
| |
| visitTypeParameter | back to summary |
|---|---|
| public R visitTypeParameter(TypeParameterElement e, P p) Implements javax. Doc from javax. Visits a type parameter element. Implementation Specification This implementation calls
| |
| visitVariable | back to summary |
|---|---|
| public R visitVariable(VariableElement e, P p) Implements javax. Doc from javax. Visits a variable element. Implementation Specification This implementation calls
| |