APIdia Launch Partner
Top Description Constructors Methods
javax.lang.model.util

public Class ElementKindVisitor9<R, P>

extends ElementKindVisitor8<R, P>
Class Inheritance
Known Direct Subclasses
javax.lang.model.util.ElementKindVisitor14
Annotations
@SupportedSourceVersion:RELEASE_14
Type Parameters
<R>
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
<P>
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
Imports
javax.lang.model.element.*, javax.annotation.processing.SupportedSourceVersion, javax.lang.model.SourceVersion

A visitor of program elements based on their kind with default behavior appropriate for source versions RELEASE_9 through RELEASE_14. 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.

Since
9
See Also
<strong>Compatibility note for subclasses</strong>, ElementKindVisitor6, ElementKindVisitor7, ElementKindVisitor8

Constructor Summary

AccessConstructor and Description
protected
ElementKindVisitor9()

Constructor for concrete subclasses; uses null for the default value.

protected
ElementKindVisitor9(R
the value to assign to DEFAULT_VALUE
defaultValue
)

Constructor for concrete subclasses; uses the argument for the default value.

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the result of defaultAction
visitModule
(ModuleElement e, P p)

Overrides javax.lang.model.util.AbstractElementVisitor6.visitModule.

Overrides default javax.lang.model.element.ElementVisitor.visitModule.

Visits a module element.

Constructor Detail

ElementKindVisitor9back to summary
protected ElementKindVisitor9()

Constructor for concrete subclasses; uses null for the default value.

ElementKindVisitor9back to summary
protected ElementKindVisitor9(R defaultValue)

Constructor for concrete subclasses; uses the argument for the default value.

Parameters
defaultValue:R

the value to assign to DEFAULT_VALUE

Method Detail

visitModuleback to summary
public R visitModule(ModuleElement e, P p)

Overrides javax.lang.model.util.AbstractElementVisitor6.visitModule.

Overrides default javax.lang.model.element.ElementVisitor.visitModule.

Doc from javax.lang.model.element.ElementVisitor.visitModule.

Visits a module element.

Implementation Specification

This implementation calls defaultAction.

Returns:R

the result of defaultAction

Annotations
@Override