1 7 8 package com.sun.mirror.util; 9 10 11 import com.sun.mirror.type.*; 12 13 14 27 28 public class SimpleTypeVisitor implements TypeVisitor { 29 30 33 public SimpleTypeVisitor() {} 34 35 40 public void visitTypeMirror(TypeMirror t) { 41 } 42 43 49 public void visitPrimitiveType(PrimitiveType t) { 50 visitTypeMirror(t); 51 } 52 53 59 public void visitVoidType(VoidType t) { 60 visitTypeMirror(t); 61 } 62 63 69 public void visitReferenceType(ReferenceType t) { 70 visitTypeMirror(t); 71 } 72 73 79 public void visitDeclaredType(DeclaredType t) { 80 visitReferenceType(t); 81 } 82 83 89 public void visitClassType(ClassType t) { 90 visitDeclaredType(t); 91 } 92 93 99 public void visitEnumType(EnumType t) { 100 visitClassType(t); 101 } 102 103 109 public void visitInterfaceType(InterfaceType t) { 110 visitDeclaredType(t); 111 } 112 113 119 public void visitAnnotationType(AnnotationType t) { 120 visitInterfaceType(t); 121 } 122 123 129 public void visitArrayType(ArrayType t) { 130 visitReferenceType(t); 131 } 132 133 139 public void visitTypeVariable(TypeVariable t) { 140 visitReferenceType(t); 141 } 142 143 149 public void visitWildcardType(WildcardType t) { 150 visitTypeMirror(t); 151 } 152 } 153 | Popular Tags |