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

public Class ElementKindVisitor7<R, P>

extends ElementKindVisitor6<R, P>
Class Inheritance
Known Direct Subclasses
javax.lang.model.util.ElementKindVisitor8
Annotations
@SupportedSourceVersion:RELEASE_7
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.annotation.processing.SupportedSourceVersion, javax.lang.model.SourceVersion, javax.lang.model.element.*

A visitor of program elements based on their kind with default behavior appropriate for the RELEASE_7 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.

Since
1.7
See Also
<strong>Compatibility note for subclasses</strong>, ElementKindVisitor6, ElementKindVisitor8, ElementKindVisitor9, ElementKindVisitor14

Constructor Summary

AccessConstructor and Description
protected
ElementKindVisitor7()
Deprecated since 12. Release 7 is obsolete; update to a visitor for a newer release level.

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

protected
ElementKindVisitor7(R
the value to assign to DEFAULT_VALUE
defaultValue
)
Deprecated since 12. Release 7 is obsolete; update to a visitor for a newer release level.

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
visitVariableAsResourceVariable
(VariableElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitVariableAsResourceVariable.

Visits a RESOURCE_VARIABLE variable element.

Inherited from javax.lang.model.util.ElementKindVisitor6:
visitExecutablevisitExecutableAsConstructorvisitExecutableAsInstanceInitvisitExecutableAsMethodvisitExecutableAsStaticInitvisitPackagevisitTypevisitTypeAsAnnotationTypevisitTypeAsClassvisitTypeAsEnumvisitTypeAsInterfacevisitTypeAsRecordvisitTypeParametervisitVariablevisitVariableAsBindingVariablevisitVariableAsEnumConstantvisitVariableAsExceptionParametervisitVariableAsFieldvisitVariableAsLocalVariablevisitVariableAsParameter

Constructor Detail

ElementKindVisitor7back to summary
protected ElementKindVisitor7()

Deprecated

since 12.

Release 7 is obsolete; update to a visitor for a newer release level.

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

Annotations
@Deprecated
since:12
ElementKindVisitor7back to summary
protected ElementKindVisitor7(R defaultValue)

Deprecated

since 12.

Release 7 is obsolete; update to a visitor for a newer release level.

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

Parameters
defaultValue:R

the value to assign to DEFAULT_VALUE

Annotations
@Deprecated
since:12

Method Detail

visitVariableAsResourceVariableback to summary
public R visitVariableAsResourceVariable(VariableElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitVariableAsResourceVariable.

Doc from javax.lang.model.util.ElementKindVisitor6.visitVariableAsResourceVariable.

Visits a RESOURCE_VARIABLE variable element.

Implementation Specification

This implementation calls defaultAction.

Returns:R

the result of defaultAction

Annotations
@Override