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

public Class ElementKindVisitor14<R, P>

extends ElementKindVisitor9<R, P>
Class Inheritance
Known Direct Subclasses
javax.lang.model.util.ElementKindVisitorPreview
Annotations
@SupportedSourceVersion:RELEASE_27
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 the RELEASE_14 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
16
See Also
<strong>Compatibility note for subclasses</strong>, ElementKindVisitor6, ElementKindVisitor7, ElementKindVisitor8, ElementKindVisitor9

Constructor Summary

AccessConstructor and Description
protected
ElementKindVisitor14()

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

protected
ElementKindVisitor14(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
visitRecordComponent
(RecordComponentElement e, P p)

Overrides javax.lang.model.util.AbstractElementVisitor6.visitRecordComponent.

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

Visits a record component element.

public R

Returns:

the result of defaultAction
visitTypeAsRecord
(TypeElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitTypeAsRecord.

Visits a RECORD type element.

public R

Returns:

the result of defaultAction
visitVariableAsBindingVariable
(VariableElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitVariableAsBindingVariable.

Visits a BINDING_VARIABLE variable element.

Inherited from javax.lang.model.util.ElementKindVisitor9:
visitModule

Constructor Detail

ElementKindVisitor14back to summary
protected ElementKindVisitor14()

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

ElementKindVisitor14back to summary
protected ElementKindVisitor14(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

visitRecordComponentback to summary
public R visitRecordComponent(RecordComponentElement e, P p)

Overrides javax.lang.model.util.AbstractElementVisitor6.visitRecordComponent.

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

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

Visits a record component element.

Implementation Specification

This implementation calls defaultAction.

Returns:R

the result of defaultAction

Annotations
@Override
visitTypeAsRecordback to summary
public R visitTypeAsRecord(TypeElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitTypeAsRecord.

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

Visits a RECORD type element.

Implementation Specification

This implementation calls defaultAction. .

Returns:R

the result of defaultAction

Annotations
@Override
visitVariableAsBindingVariableback to summary
public R visitVariableAsBindingVariable(VariableElement e, P p)

Overrides javax.lang.model.util.ElementKindVisitor6.visitVariableAsBindingVariable.

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

Visits a BINDING_VARIABLE variable element.

Implementation Specification

This implementation calls defaultAction.

Returns:R

the result of defaultAction

Annotations
@Override
Since
16