Package com.sun.mirror.util
Class SimpleTypeVisitor
java.lang.Object
com.sun.mirror.util.SimpleTypeVisitor
- All Implemented Interfaces:
TypeVisitor
A simple visitor for types.
The implementations of the methods of this class do nothing but delegate up the type hierarchy. A subclass should override the methods that correspond to the kinds of types on which it will operate.
- Since:
- 1.5
- Version:
- 1.4 04/06/07
- Author:
- Joseph D. Darcy, Scott Seligman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Visits an annotation type.void
Visits an array type.void
Visits a class type.void
Visits a declared type.void
Visits an enum type.void
Visits an interface type.void
Visits a primitive type.void
Visits a reference type.void
Visits a type mirror.void
Visits a type variable.void
Visits a void type.void
Visits a wildcard.
-
Constructor Details
-
SimpleTypeVisitor
public SimpleTypeVisitor()Creates a newSimpleTypeVisitor
.
-
-
Method Details
-
visitTypeMirror
Visits a type mirror. The implementation does nothing.- Specified by:
visitTypeMirror
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitPrimitiveType
Visits a primitive type. The implementation simply invokesvisitTypeMirror
.- Specified by:
visitPrimitiveType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitVoidType
Visits a void type. The implementation simply invokesvisitTypeMirror
.- Specified by:
visitVoidType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitReferenceType
Visits a reference type. The implementation simply invokesvisitTypeMirror
.- Specified by:
visitReferenceType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitDeclaredType
Visits a declared type. The implementation simply invokesvisitReferenceType
.- Specified by:
visitDeclaredType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitClassType
Visits a class type. The implementation simply invokesvisitDeclaredType
.- Specified by:
visitClassType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitEnumType
Visits an enum type. The implementation simply invokesvisitClassType
.- Specified by:
visitEnumType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitInterfaceType
Visits an interface type. The implementation simply invokesvisitDeclaredType
.- Specified by:
visitInterfaceType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitAnnotationType
Visits an annotation type. The implementation simply invokesvisitInterfaceType
.- Specified by:
visitAnnotationType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitArrayType
Visits an array type. The implementation simply invokesvisitReferenceType
.- Specified by:
visitArrayType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitTypeVariable
Visits a type variable. The implementation simply invokesvisitReferenceType
.- Specified by:
visitTypeVariable
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-
visitWildcardType
Visits a wildcard. The implementation simply invokesvisitTypeMirror
.- Specified by:
visitWildcardType
in interfaceTypeVisitor
- Parameters:
t
- the type to visit
-