@Test public void visitEnum() { visitor.visit( javaEnumSource ); checkVisitor( Arrays.asList( "ref:java => int" ) ); }
public void visit(JavaSource javaSource) { List<Import> imports = javaSource.getImports(); for (Import javaImport : imports) { visit(javaImport); } if (javaSource instanceof Body) { visit((Body) javaSource); } else if (javaSource instanceof JavaAnnotationSource) { visit((JavaAnnotationSource) javaSource); } else if (javaSource instanceof JavaClassSource) { visit((JavaClassSource) javaSource); } else if (javaSource instanceof JavaEnumSource) { visit((JavaEnumSource) javaSource); } else if (javaSource instanceof JavaInterfaceSource) { visit((JavaInterfaceSource) javaSource); } }
JavaSourceVisitor extends ResourceReferenceCollector { public void visit(JavaSource javaSource) { List<Import> imports = javaSource.getImports(); for (Import javaImport : imports) { visit(javaImport); } if (javaSource instanceof Body) { visit((Body) javaSource); } else if (javaSource instanceof JavaAnnotationSource) { visit((JavaAnnotationSource) javaSource); } else if (javaSource instanceof JavaClassSource) { visit((JavaClassSource) javaSource); } else if (javaSource instanceof JavaEnumSource) { visit((JavaEnumSource) javaSource); } else if (javaSource instanceof JavaInterfaceSource) { visit((JavaInterfaceSource) javaSource); } } }
JavaSourceVisitor extends ResourceReferenceCollector { public void visit(JavaSource javaSource) { List<Import> imports = javaSource.getImports(); for (Import javaImport : imports) { visit(javaImport); } if (javaSource instanceof Body) { visit((Body) javaSource); } else if (javaSource instanceof JavaAnnotationSource) { visit((JavaAnnotationSource) javaSource); } else if (javaSource instanceof JavaClassSource) { visit((JavaClassSource) javaSource); } else if (javaSource instanceof JavaEnumSource) { visit((JavaEnumSource) javaSource); } else if (javaSource instanceof JavaInterfaceSource) { visit((JavaInterfaceSource) javaSource); } } JavaSourceVisitor(JavaSource javaSource, ClassLoader classLoader, Resource resParts); }
JavaSourceVisitor extends ResourceReferenceCollector { public void visit(JavaSource javaSource) { List<Import> imports = javaSource.getImports(); for (Import javaImport : imports) { visit(javaImport); } if (javaSource instanceof Body) { visit((Body) javaSource); } else if (javaSource instanceof JavaAnnotationSource) { visit((JavaAnnotationSource) javaSource); } else if (javaSource instanceof JavaClassSource) { visit((JavaClassSource) javaSource); } else if (javaSource instanceof JavaEnumSource) { visit((JavaEnumSource) javaSource); } else if (javaSource instanceof JavaInterfaceSource) { visit((JavaInterfaceSource) javaSource); } } JavaSourceVisitor(JavaSource javaSource, ClassLoader classLoader, Resource resParts); void visit(JavaSource javaSource); void visit(AnnotationSource<? extends JavaClassSource> annoSource); void visit(Body body); void visit(FieldSource<? extends JavaSource> fieldSource); void visit(JavaAnnotationSource javaAnnoSource); void visit(JavaClassSource javaClassSource); void visit(JavaEnumSource javaEnumSource); void visit(Import javaImport); void visit(JavaInterfaceSource interfaceSource); void visit(MethodSource<? extends JavaClassSource> methodSource); void addJavaResourceReference(String fullyQualifiedName); }
JavaSourceVisitor extends ResourceReferenceCollector { public void visit(JavaSource javaSource) { List<Import> imports = javaSource.getImports(); for (Import javaImport : imports) { visit(javaImport); } if (javaSource instanceof Body) { visit((Body) javaSource); } else if (javaSource instanceof JavaAnnotationSource) { visit((JavaAnnotationSource) javaSource); } else if (javaSource instanceof JavaClassSource) { visit((JavaClassSource) javaSource); } else if (javaSource instanceof JavaEnumSource) { visit((JavaEnumSource) javaSource); } else if (javaSource instanceof JavaInterfaceSource) { visit((JavaInterfaceSource) javaSource); } } JavaSourceVisitor(JavaSource javaSource, ClassLoader classLoader, Resource resParts); void visit(JavaSource javaSource); void visit(AnnotationSource<? extends JavaClassSource> annoSource); void visit(Body body); void visit(FieldSource<? extends JavaSource> fieldSource); void visit(JavaAnnotationSource javaAnnoSource); void visit(JavaClassSource javaClassSource); void visit(JavaEnumSource javaEnumSource); void visit(Import javaImport); void visit(JavaInterfaceSource interfaceSource); void visit(MethodSource<? extends JavaClassSource> methodSource); void addJavaResourceReference(String fullyQualifiedName);  }