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.TypeVisitor<R,P> TypeKindVisitor7@SupportedSourceVersion(RELEASE_6) public class TypeKindVisitor6<R,P> extends SimpleTypeVisitor6<R,P>
RELEASE_6 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.WARNING: The 
 TypeVisitor interface implemented by this class may have methods added to it or the TypeKind enum used in this class may have constants 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 type kind 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.
DEFAULT_VALUE
| Modifier | Constructor | Description | 
|---|---|---|
| protected  | 
Deprecated.  Release 6 is obsolete; update to a visitor for a newer release level. | |
| protected  | 
Deprecated.  Release 6 is obsolete; update to a visitor for a newer release level. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| R | visitNoType | Visits a  NoTypeinstance. | 
| R | visitNoTypeAsModule | Visits a  MODULEpseudo-type. | 
| R | visitNoTypeAsNone | Visits a  NONEpseudo-type. | 
| R | visitNoTypeAsPackage | Visits a  PACKAGEpseudo-type. | 
| R | visitNoTypeAsVoid | Visits a  VOIDpseudo-type. | 
| R | visitPrimitive | Visits a primitive type. | 
| R | visitPrimitiveAsBoolean | Visits a  BOOLEANprimitive type. | 
| R | visitPrimitiveAsByte | Visits a  BYTEprimitive type. | 
| R | visitPrimitiveAsChar | Visits a  CHARprimitive type. | 
| R | visitPrimitiveAsDouble | Visits a  DOUBLEprimitive type. | 
| R | visitPrimitiveAsFloat | Visits a  FLOATprimitive type. | 
| R | visitPrimitiveAsInt | Visits an  INTprimitive type. | 
| R | visitPrimitiveAsLong | Visits a  LONGprimitive type. | 
| R | visitPrimitiveAsShort | Visits a  SHORTprimitive type. | 
defaultAction, visitArray, visitDeclared, visitError, visitExecutable, visitNull, visitTypeVariable, visitWildcard
visit, visit, visitIntersection, visitUnion, visitUnknown
@Deprecated(since="9") protected TypeKindVisitor6()
null for the default value.@Deprecated(since="9") protected TypeKindVisitor6(R defaultValue)
defaultValue - the value to assign to SimpleTypeVisitor6.DEFAULT_VALUE
public R visitPrimitive(PrimitiveType t, P p)
visitPrimitive in interface TypeVisitor<R,P> 
visitPrimitive in class SimpleTypeVisitor6<R,P> 
BOOLEAN, BYTE, etc.t - the type to visitp - a visitor-specified parameterpublic R visitPrimitiveAsBoolean(PrimitiveType t, P p)
BOOLEAN primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsByte(PrimitiveType t, P p)
BYTE primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsShort(PrimitiveType t, P p)
SHORT primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsInt(PrimitiveType t, P p)
INT primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsLong(PrimitiveType t, P p)
LONG primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsChar(PrimitiveType t, P p)
CHAR primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsFloat(PrimitiveType t, P p)
FLOAT primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitPrimitiveAsDouble(PrimitiveType t, P p)
DOUBLE primitive type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitNoType(NoType t, P p)
NoType instance.visitNoType in interface TypeVisitor<R,P> 
visitNoType in class SimpleTypeVisitor6<R,P> 
VOID, PACKAGE, MODULE, or NONE.t - the type to visitp - a visitor-specified parameterpublic R visitNoTypeAsVoid(NoType t, P p)
VOID pseudo-type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitNoTypeAsPackage(NoType t, P p)
PACKAGE pseudo-type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
public R visitNoTypeAsModule(NoType t, P p)
MODULE pseudo-type.visitUnknown.t - the type to visitp - a visitor-specified parametervisitUnknown
public R visitNoTypeAsNone(NoType t, P p)
NONE pseudo-type.defaultAction.t - the type to visitp - a visitor-specified parameterdefaultAction
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.compiler/javax/lang/model/util/TypeKindVisitor6.html