Package com.sun.mirror.util
Class SimpleTypeVisitor
- java.lang.Object
-
- com.sun.mirror.util.SimpleTypeVisitor
-
- All Implemented Interfaces:
TypeVisitor
public class SimpleTypeVisitor extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description SimpleTypeVisitor()Creates a newSimpleTypeVisitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitAnnotationType(AnnotationType t)Visits an annotation type.voidvisitArrayType(ArrayType t)Visits an array type.voidvisitClassType(ClassType t)Visits a class type.voidvisitDeclaredType(DeclaredType t)Visits a declared type.voidvisitEnumType(EnumType t)Visits an enum type.voidvisitInterfaceType(InterfaceType t)Visits an interface type.voidvisitPrimitiveType(PrimitiveType t)Visits a primitive type.voidvisitReferenceType(ReferenceType t)Visits a reference type.voidvisitTypeMirror(TypeMirror t)Visits a type mirror.voidvisitTypeVariable(TypeVariable t)Visits a type variable.voidvisitVoidType(VoidType t)Visits a void type.voidvisitWildcardType(WildcardType t)Visits a wildcard.
-
-
-
Method Detail
-
visitTypeMirror
public void visitTypeMirror(TypeMirror t)
Visits a type mirror. The implementation does nothing.- Specified by:
visitTypeMirrorin interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitPrimitiveType
public void visitPrimitiveType(PrimitiveType t)
Visits a primitive type. The implementation simply invokesvisitTypeMirror.- Specified by:
visitPrimitiveTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitVoidType
public void visitVoidType(VoidType t)
Visits a void type. The implementation simply invokesvisitTypeMirror.- Specified by:
visitVoidTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitReferenceType
public void visitReferenceType(ReferenceType t)
Visits a reference type. The implementation simply invokesvisitTypeMirror.- Specified by:
visitReferenceTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitDeclaredType
public void visitDeclaredType(DeclaredType t)
Visits a declared type. The implementation simply invokesvisitReferenceType.- Specified by:
visitDeclaredTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitClassType
public void visitClassType(ClassType t)
Visits a class type. The implementation simply invokesvisitDeclaredType.- Specified by:
visitClassTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitEnumType
public void visitEnumType(EnumType t)
Visits an enum type. The implementation simply invokesvisitClassType.- Specified by:
visitEnumTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitInterfaceType
public void visitInterfaceType(InterfaceType t)
Visits an interface type. The implementation simply invokesvisitDeclaredType.- Specified by:
visitInterfaceTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitAnnotationType
public void visitAnnotationType(AnnotationType t)
Visits an annotation type. The implementation simply invokesvisitInterfaceType.- Specified by:
visitAnnotationTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitArrayType
public void visitArrayType(ArrayType t)
Visits an array type. The implementation simply invokesvisitReferenceType.- Specified by:
visitArrayTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitTypeVariable
public void visitTypeVariable(TypeVariable t)
Visits a type variable. The implementation simply invokesvisitReferenceType.- Specified by:
visitTypeVariablein interfaceTypeVisitor- Parameters:
t- the type to visit
-
visitWildcardType
public void visitWildcardType(WildcardType t)
Visits a wildcard. The implementation simply invokesvisitTypeMirror.- Specified by:
visitWildcardTypein interfaceTypeVisitor- Parameters:
t- the type to visit
-
-