Package com.sun.mirror.util
Interface TypeVisitor
- All Known Implementing Classes:
SimpleTypeVisitor
public interface TypeVisitor
A visitor for types, in the style of the standard visitor design pattern.
This is used to operate on a type when the kind
of type is unknown at compile time.
When a visitor is passed to a type's
accept
method,
the most specific visitXxx
method applicable to
that type is invoked.- Since:
- 1.5
- Version:
- 1.4 04/06/07
- Author:
- Joseph D. Darcy, Scott Seligman
-
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.
-
Method Details
-
visitTypeMirror
Visits a type mirror.- Parameters:
t
- the type to visit
-
visitPrimitiveType
Visits a primitive type.- Parameters:
t
- the type to visit
-
visitVoidType
Visits a void type.- Parameters:
t
- the type to visit
-
visitReferenceType
Visits a reference type.- Parameters:
t
- the type to visit
-
visitDeclaredType
Visits a declared type.- Parameters:
t
- the type to visit
-
visitClassType
Visits a class type.- Parameters:
t
- the type to visit
-
visitEnumType
Visits an enum type.- Parameters:
t
- the type to visit
-
visitInterfaceType
Visits an interface type.- Parameters:
t
- the type to visit
-
visitAnnotationType
Visits an annotation type.- Parameters:
t
- the type to visit
-
visitArrayType
Visits an array type.- Parameters:
t
- the type to visit
-
visitTypeVariable
Visits a type variable.- Parameters:
t
- the type to visit
-
visitWildcardType
Visits a wildcard.- Parameters:
t
- the type to visit
-