1 7 8 package com.sun.mirror.util; 9 10 11 import com.sun.mirror.declaration.*; 12 13 14 27 28 public class SimpleDeclarationVisitor implements DeclarationVisitor { 29 30 33 public SimpleDeclarationVisitor(){} 34 35 40 public void visitDeclaration(Declaration d) { 41 } 42 43 49 public void visitPackageDeclaration(PackageDeclaration d) { 50 visitDeclaration(d); 51 } 52 53 59 public void visitMemberDeclaration(MemberDeclaration d) { 60 visitDeclaration(d); 61 } 62 63 69 public void visitTypeDeclaration(TypeDeclaration d) { 70 visitMemberDeclaration(d); 71 } 72 73 79 public void visitClassDeclaration(ClassDeclaration d) { 80 visitTypeDeclaration(d); 81 } 82 83 89 public void visitEnumDeclaration(EnumDeclaration d) { 90 visitClassDeclaration(d); 91 } 92 93 99 public void visitInterfaceDeclaration(InterfaceDeclaration d) { 100 visitTypeDeclaration(d); 101 } 102 103 109 public void visitAnnotationTypeDeclaration(AnnotationTypeDeclaration d) { 110 visitInterfaceDeclaration(d); 111 } 112 113 119 public void visitFieldDeclaration(FieldDeclaration d) { 120 visitMemberDeclaration(d); 121 } 122 123 129 public void visitEnumConstantDeclaration(EnumConstantDeclaration d) { 130 visitFieldDeclaration(d); 131 } 132 133 139 public void visitExecutableDeclaration(ExecutableDeclaration d) { 140 visitMemberDeclaration(d); 141 } 142 143 149 public void visitConstructorDeclaration(ConstructorDeclaration d) { 150 visitExecutableDeclaration(d); 151 } 152 153 159 public void visitMethodDeclaration(MethodDeclaration d) { 160 visitExecutableDeclaration(d); 161 } 162 163 169 public void visitAnnotationTypeElementDeclaration( 170 AnnotationTypeElementDeclaration d) { 171 visitMethodDeclaration(d); 172 } 173 174 180 public void visitParameterDeclaration(ParameterDeclaration d) { 181 visitDeclaration(d); 182 } 183 184 190 public void visitTypeParameterDeclaration(TypeParameterDeclaration d) { 191 visitDeclaration(d); 192 } 193 } 194 | Popular Tags |