1 package spoon.reflect.visitor; 2 3 import java.lang.annotation.Annotation ; 4 5 import spoon.reflect.code.CtArrayAccess; 6 import spoon.reflect.code.CtAssert; 7 import spoon.reflect.code.CtAssignment; 8 import spoon.reflect.code.CtBinaryOperator; 9 import spoon.reflect.code.CtBlock; 10 import spoon.reflect.code.CtBreak; 11 import spoon.reflect.code.CtCase; 12 import spoon.reflect.code.CtCatch; 13 import spoon.reflect.code.CtConditional; 14 import spoon.reflect.code.CtContinue; 15 import spoon.reflect.code.CtDo; 16 import spoon.reflect.code.CtExpression; 17 import spoon.reflect.code.CtFieldAccess; 18 import spoon.reflect.code.CtFor; 19 import spoon.reflect.code.CtForEach; 20 import spoon.reflect.code.CtIf; 21 import spoon.reflect.code.CtInvocation; 22 import spoon.reflect.code.CtLiteral; 23 import spoon.reflect.code.CtLocalVariable; 24 import spoon.reflect.code.CtNewArray; 25 import spoon.reflect.code.CtNewClass; 26 import spoon.reflect.code.CtOperatorAssignment; 27 import spoon.reflect.code.CtReturn; 28 import spoon.reflect.code.CtStatementList; 29 import spoon.reflect.code.CtSwitch; 30 import spoon.reflect.code.CtSynchronized; 31 import spoon.reflect.code.CtThrow; 32 import spoon.reflect.code.CtTry; 33 import spoon.reflect.code.CtUnaryOperator; 34 import spoon.reflect.code.CtVariableAccess; 35 import spoon.reflect.code.CtWhile; 36 import spoon.reflect.declaration.CtAnnotation; 37 import spoon.reflect.declaration.CtAnnotationType; 38 import spoon.reflect.declaration.CtAnonymousExecutable; 39 import spoon.reflect.declaration.CtClass; 40 import spoon.reflect.declaration.CtConstructor; 41 import spoon.reflect.declaration.CtEnum; 42 import spoon.reflect.declaration.CtField; 43 import spoon.reflect.declaration.CtInterface; 44 import spoon.reflect.declaration.CtMethod; 45 import spoon.reflect.declaration.CtPackage; 46 import spoon.reflect.declaration.CtParameter; 47 import spoon.reflect.declaration.CtTypeParameter; 48 import spoon.reflect.reference.CtArrayTypeReference; 49 import spoon.reflect.reference.CtExecutableReference; 50 import spoon.reflect.reference.CtFieldReference; 51 import spoon.reflect.reference.CtLocalVariableReference; 52 import spoon.reflect.reference.CtPackageReference; 53 import spoon.reflect.reference.CtParameterReference; 54 import spoon.reflect.reference.CtTypeParameterReference; 55 import spoon.reflect.reference.CtTypeReference; 56 57 62 public interface CtVisitor { 63 66 <A extends Annotation > void visitCtAnnotation(CtAnnotation<A> annotation); 67 68 71 <A extends Annotation > void visitCtAnnotationType( 72 CtAnnotationType<A> annotationType); 73 74 77 void visitCtAnonymousExecutable(CtAnonymousExecutable anonymousExec); 78 79 82 <T, E extends CtExpression<?>> void visitCtArrayAccess( 83 CtArrayAccess<T, E> arrayAccess); 84 85 88 <T> void visitCtArrayTypeReference(CtArrayTypeReference<T> reference); 89 90 93 <T> void visitCtAssert(CtAssert<T> asserted); 94 95 98 <T, A extends T> void visitCtAssignment(CtAssignment<T, A> assignement); 99 100 103 <T> void visitCtBinaryOperator(CtBinaryOperator<T> operator); 104 105 108 <R> void visitCtBlock(CtBlock<R> block); 109 110 113 void visitCtBreak(CtBreak breakStatement); 114 115 118 <S> void visitCtCase(CtCase<S> caseStatement); 119 120 123 void visitCtCatch(CtCatch catchBlock); 124 125 128 <T> void visitCtClass(CtClass<T> ctClass); 129 130 133 <T> void visitCtConditional(CtConditional<T> conditional); 134 135 138 <T> void visitCtConstructor(CtConstructor<T> c); 139 140 143 void visitCtContinue(CtContinue continueStatement); 144 145 148 void visitCtDo(CtDo doLoop); 149 150 153 <T extends Enum > void visitCtEnum(CtEnum<T> ctEnum); 154 155 158 <T> void visitCtExecutableReference(CtExecutableReference<T> reference); 159 160 163 <T> void visitCtField(CtField<T> f); 164 165 168 <T> void visitCtFieldAccess(CtFieldAccess<T> fieldAccess); 169 170 173 <T> void visitCtFieldReference(CtFieldReference<T> reference); 174 175 178 void visitCtFor(CtFor forLoop); 179 180 183 void visitCtForEach(CtForEach foreach); 184 185 188 void visitCtIf(CtIf ifElement); 189 190 193 <T> void visitCtInterface(CtInterface<T> intrface); 194 195 198 <T> void visitCtInvocation(CtInvocation<T> invocation); 199 200 203 <T> void visitCtLiteral(CtLiteral<T> literal); 204 205 208 <T> void visitCtLocalVariable(CtLocalVariable<T> localVariable); 209 210 213 <T> void visitCtLocalVariableReference(CtLocalVariableReference<T> reference); 214 215 218 <T> void visitCtMethod(CtMethod<T> m); 219 220 223 <T> void visitCtNewArray(CtNewArray<T> newArray); 224 225 228 <T> void visitCtNewClass(CtNewClass<T> newClass); 229 230 233 <T, A extends T> void visitCtOperatorAssignement( 234 CtOperatorAssignment<T, A> assignment); 235 236 239 void visitCtPackage(CtPackage ctPackage); 240 241 244 void visitCtPackageReference(CtPackageReference reference); 245 246 249 <T> void visitCtParameter(CtParameter<T> parameter); 250 251 254 <T> void visitCtParameterReference(CtParameterReference<T> reference); 255 256 259 <R> void visitCtReturn(CtReturn<R> returnStatement); 260 261 264 <R> void visitCtStatementList(CtStatementList<R> statements); 265 266 269 <S> void visitCtSwitch(CtSwitch<S> switchStatement); 270 271 274 void visitCtSynchronized(CtSynchronized synchro); 275 276 279 void visitCtThrow(CtThrow throwStatement); 280 281 284 void visitCtTry(CtTry tryBlock); 285 286 289 void visitCtTypeParameter(CtTypeParameter typeParameter); 290 291 294 void visitCtTypeParameterReference(CtTypeParameterReference ref); 295 296 299 <T> void visitCtTypeReference(CtTypeReference<T> reference); 300 301 304 <T> void visitCtUnaryOperator(CtUnaryOperator<T> operator); 305 306 309 <T> void visitCtVariableAccess(CtVariableAccess<T> variableAccess); 310 311 314 void visitCtWhile(CtWhile whileLoop); 315 316 } | Popular Tags |