This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.util
class TypeKindVisitor6

java.lang.Object extended by javax.lang.model.util.AbstractTypeVisitor6 extended by javax.lang.model.util.SimpleTypeVisitor6 extended by javax.lang.model.util.TypeKindVisitor6
All Implemented Interfaces:
TypeVisitor

public class TypeKindVisitor6
extends SimpleTypeVisitor6

A visitor of types based on their {@linkplain TypeKind kind} with default behavior appropriate for the {@link SourceVersion#RELEASE_6 RELEASE_6} source version. For {@linkplain TypeMirror types} XYZ that may have more than one kind, the visitXYZ methods in this class delegate to the visitXYZKind method corresponding to the first argument's kind. The visitXYZKind methods call {@link #defaultAction defaultAction}, passing their arguments to {@code defaultAction}'s corresponding parameters.

Methods in this class may be overridden subject to their general contract. Note that annotating methods in concrete subclasses with {@link java.lang.Override @Override} will help ensure that methods are overridden as intended.

WARNING: The {@code TypeVisitor} interface implemented by this class may have methods 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 {@code "visit"} may be added to this class in the future; to avoid incompatibilities, classes which extend this class should not declare any instance methods with names beginning with {@code "visit"}.

When such a new visit method is added, the default implementation in this class will be to call the {@link #visitUnknown 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 the new visitor is introduced, all or portions of this visitor may be deprecated.


Field Summary
 
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
 
Constructor Summary
protected

          Constructor for concrete subclasses to call; uses for the default value.
protected
TypeKindVisitor6(Object defaultValue)

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

          Visits a javax.lang.model.type.NoType instance, dispatching to the visit method for the specific javax.lang.model.type.TypeKind of pseudo-type: , , or .
 Object

          Visits a javax.lang.model.type.TypeKind.NONE pseudo-type by calling .
 Object

          Visits a javax.lang.model.type.TypeKind.PACKAGE pseudo-type by calling .
 Object

          Visits a javax.lang.model.type.TypeKind.VOID pseudo-type by calling .
 Object

          Visits a primitive type, dispatching to the visit method for the specific javax.lang.model.type.TypeKind of primitive type: , , etc.
 Object

          Visits a primitive type by calling .
 Object

          Visits a primitive type by calling .
 Object

          Visits a primitive type by calling .
 Object

          Visits a primitive type by calling .
 Object

          Visits a primitive type by calling .
 Object

          Visits an primitive type by calling .
 Object

          Visits a primitive type by calling .
 Object

          Visits a primitive type by calling .
 
Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
defaultAction, visitArray, visitDeclared, visitError, visitExecutable, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitWildcard
 
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit, visitUnknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeKindVisitor6

protected TypeKindVisitor6()
Constructor for concrete subclasses to call; uses {@code null} for the default value.


TypeKindVisitor6

protected TypeKindVisitor6(Object defaultValue)
Constructor for concrete subclasses to call; uses the argument for the default value.

Parameters:
defaultValue - the value to assign to {@link #DEFAULT_VALUE}
Method Detail

visitNoType

public Object visitNoType(NoType t,
                          Object p)
Visits a {@link NoType} instance, dispatching to the visit method for the specific {@linkplain TypeKind kind} of pseudo-type: {@code VOID}, {@code PACKAGE}, or {@code NONE}.

Overrides:
visitNoType in class SimpleTypeVisitor6
Parameters:
t - {@inheritDoc}
p - {@inheritDoc}
Returns:
the result of the kind-specific visit method

visitNoTypeAsNone

public Object visitNoTypeAsNone(NoType t,
                                Object p)
Visits a {@link TypeKind#NONE NONE} pseudo-type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitNoTypeAsPackage

public Object visitNoTypeAsPackage(NoType t,
                                   Object p)
Visits a {@link TypeKind#PACKAGE PACKAGE} pseudo-type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitNoTypeAsVoid

public Object visitNoTypeAsVoid(NoType t,
                                Object p)
Visits a {@link TypeKind#VOID VOID} pseudo-type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitive

public Object visitPrimitive(PrimitiveType t,
                             Object p)
Visits a primitive type, dispatching to the visit method for the specific {@linkplain TypeKind kind} of primitive type: {@code BOOLEAN}, {@code BYTE}, etc.

Overrides:
visitPrimitive in class SimpleTypeVisitor6
Parameters:
t - {@inheritDoc}
p - {@inheritDoc}
Returns:
the result of the kind-specific visit method

visitPrimitiveAsBoolean

public Object visitPrimitiveAsBoolean(PrimitiveType t,
                                      Object p)
Visits a {@code BOOLEAN} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsByte

public Object visitPrimitiveAsByte(PrimitiveType t,
                                   Object p)
Visits a {@code BYTE} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsChar

public Object visitPrimitiveAsChar(PrimitiveType t,
                                   Object p)
Visits a {@code CHAR} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsDouble

public Object visitPrimitiveAsDouble(PrimitiveType t,
                                     Object p)
Visits a {@code DOUBLE} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsFloat

public Object visitPrimitiveAsFloat(PrimitiveType t,
                                    Object p)
Visits a {@code FLOAT} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsInt

public Object visitPrimitiveAsInt(PrimitiveType t,
                                  Object p)
Visits an {@code INT} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsLong

public Object visitPrimitiveAsLong(PrimitiveType t,
                                   Object p)
Visits a {@code LONG} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}

visitPrimitiveAsShort

public Object visitPrimitiveAsShort(PrimitiveType t,
                                    Object p)
Visits a {@code SHORT} primitive type by calling {@code defaultAction}.

Parameters:
t - the type to visit
p - a visitor-specified parameter
Returns:
the result of {@code defaultAction}


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.