Top Description Constructors Methods
javax.lang.model.util

public Class TypeKindVisitor7<R, P>

extends TypeKindVisitor6<R, P>
Class Inheritance
Known Direct Subclasses
javax.lang.model.util.TypeKindVisitor8
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.lang.model.type.*, javax.annotation.processing.SupportedSourceVersion, javax.lang.model.SourceVersion

A visitor of types based on their kind with default behavior appropriate for the RELEASE_7 source version. For types 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>, TypeKindVisitor6, TypeKindVisitor8, TypeKindVisitor9, TypeKindVisitor14

Constructor Summary

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

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

protected
TypeKindVisitor7(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 to call; uses the argument for the default value.

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the result of defaultAction
visitUnion
(UnionType
the type to visit
t
,
P
a visitor-specified parameter
p
)

Overrides javax.lang.model.util.AbstractTypeVisitor6.visitUnion.

Implements javax.lang.model.type.TypeVisitor.visitUnion.

Visits a union type.

Inherited from javax.lang.model.util.TypeKindVisitor6:
visitNoTypevisitNoTypeAsModulevisitNoTypeAsNonevisitNoTypeAsPackagevisitNoTypeAsVoidvisitPrimitivevisitPrimitiveAsBooleanvisitPrimitiveAsBytevisitPrimitiveAsCharvisitPrimitiveAsDoublevisitPrimitiveAsFloatvisitPrimitiveAsIntvisitPrimitiveAsLongvisitPrimitiveAsShort

Constructor Detail

TypeKindVisitor7back to summary
protected TypeKindVisitor7()

Deprecated

since 12.

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

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

Annotations
@Deprecated
since:12
TypeKindVisitor7back to summary
protected TypeKindVisitor7(R defaultValue)

Deprecated

since 12.

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

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

Parameters
defaultValue:R

the value to assign to DEFAULT_VALUE

Annotations
@Deprecated
since:12

Method Detail

visitUnionback to summary
public R visitUnion(UnionType t, P p)

Overrides javax.lang.model.util.AbstractTypeVisitor6.visitUnion.

Implements javax.lang.model.type.TypeVisitor.visitUnion.

Doc from javax.lang.model.type.TypeVisitor.visitUnion.

Visits a union type.

Implementation Specification

This implementation calls defaultAction.

Parameters
t:UnionType

the type to visit

p:P

a visitor-specified parameter

Returns:R

the result of defaultAction

Annotations
@Override