| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
visitNoType(NoType t, Object p) 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 |
visitNoTypeAsNone(NoType t, Object p) Visits a javax.lang.model.type.TypeKind.NONE pseudo-type by calling . |
Object |
visitNoTypeAsPackage(NoType t, Object p) Visits a javax.lang.model.type.TypeKind.PACKAGE pseudo-type by calling . |
Object |
visitNoTypeAsVoid(NoType t, Object p) 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 |
---|
protected TypeKindVisitor6()
protected TypeKindVisitor6(Object defaultValue)
defaultValue
- the value to assign to {@link #DEFAULT_VALUE}Method Detail |
---|
public Object visitNoType(NoType t, Object p)
visitNoType
in class SimpleTypeVisitor6
t
- {@inheritDoc}p
- {@inheritDoc}public Object visitNoTypeAsNone(NoType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitNoTypeAsPackage(NoType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitNoTypeAsVoid(NoType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitive(PrimitiveType t, Object p)
visitPrimitive
in class SimpleTypeVisitor6
t
- {@inheritDoc}p
- {@inheritDoc}public Object visitPrimitiveAsBoolean(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsByte(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsChar(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsDouble(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsFloat(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsInt(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsLong(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitPrimitiveAsShort(PrimitiveType t, Object p)
t
- the type to visitp
- a visitor-specified parameter
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |