@Override public Void visitType(TypeElement e, Void aVoid) { if(!e.getModifiers().contains(Modifier.ABSTRACT)) { Element sc = asElement(e.getSuperclass()); if (sc!=null && ((TypeElement)sc).getQualifiedName().contentEquals("hudson.Plugin")) { try { write(e); } catch (IOException x) { processingEnv.getMessager().printMessage(Kind.ERROR, Functions.printThrowable(x), e); } } } return super.visitType(e, aVoid); }
@Override public List<TypeElement> visitType(TypeElement typeElement, Void arg) { if (typeElement.getKind() == ElementKind.CLASS && isAccessibleClass(typeElement)) { DEFAULT_VALUE.add(typeElement); } return super.visitType(typeElement, arg); } }
@Override public Void visitType(TypeElement e, Void p) { knownTypeNames.add(e.getQualifiedName().toString()); return super.visitType(e, p); } };
@Override public Void visitType(TypeElement e, Void aVoid) { if(!e.getModifiers().contains(Modifier.ABSTRACT)) { Element sc = processingEnv.getTypeUtils().asElement(e.getSuperclass()); if (sc!=null && ((TypeElement)sc).getQualifiedName().contentEquals(HUDSON_PLUGIN_QUAFIFIER)) { try { write(e); } catch (IOException x) { StringWriter sw = new StringWriter(); x.printStackTrace(new PrintWriter(sw)); processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR,sw.toString(),e); } } } return super.visitType(e, aVoid); } };
@Override public Void visitType(TypeElement e, Void aVoid) { if(!e.getModifiers().contains(Modifier.ABSTRACT)) { Element sc = asElement(e.getSuperclass()); if (sc!=null && ((TypeElement)sc).getQualifiedName().contentEquals("hudson.Plugin")) { try { write(e); } catch (IOException x) { processingEnv.getMessager().printMessage(Kind.ERROR, Functions.printThrowable(x), e); } } } return super.visitType(e, aVoid); }
@Override public Void visitType(TypeElement e, Void aVoid) { if(!e.getModifiers().contains(Modifier.ABSTRACT)) { Element sc = processingEnv.getTypeUtils().asElement(e.getSuperclass()); if (sc!=null && ((TypeElement)sc).getQualifiedName().contentEquals(HUDSON_PLUGIN_QUAFIFIER)) { try { write(e); } catch (IOException x) { StringWriter sw = new StringWriter(); x.printStackTrace(new PrintWriter(sw)); processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR,sw.toString(),e); } } } return super.visitType(e, aVoid); } };
@Override public Void visitType(TypeElement typeElement, Void o) { try { for (AnnotationMirror mirror : typeElement.getAnnotationMirrors()) { storeRepeatableAnnotation(mirror, typeElement); final TypeElement annotationElement = (TypeElement) mirror.getAnnotationType().asElement(); storeAnnotation(annotationElement, typeElement); } indexSupertypes(typeElement, typeElement); if (packageElement != null) { storeClassFromPackage(packageElement, typeElement); } } catch (IOException e) { messager.printMessage(Diagnostic.Kind.ERROR, "[ClassIndexProcessor] " + e.getMessage()); } return super.visitType(typeElement, o); } }, null);
@Override public Void visitType(TypeElement typeElement, Void o) { try { for (AnnotationMirror mirror : typeElement.getAnnotationMirrors()) { storeRepeatableAnnotation(mirror, typeElement); final TypeElement annotationElement = (TypeElement) mirror.getAnnotationType().asElement(); storeAnnotation(annotationElement, typeElement); } indexSupertypes(typeElement, typeElement); if (packageElement != null) { storeClassFromPackage(packageElement, typeElement); } } catch (IOException e) { messager.printMessage(Diagnostic.Kind.ERROR, "[ClassIndexProcessor] " + e.getMessage()); } return super.visitType(typeElement, o); } }, null);
@Override public Void visitType(TypeElement typeElement, Void o) { try { for (AnnotationMirror mirror : typeElement.getAnnotationMirrors()) { final TypeElement annotationElement = (TypeElement) mirror.getAnnotationType().asElement(); storeAnnotation(annotationElement, typeElement); } indexSupertypes(typeElement, typeElement); if (packageElement != null) { storeClassFromPackage(packageElement, typeElement); } } catch (IOException e) { messager.printMessage(Diagnostic.Kind.ERROR, "[ClassIndexProcessor] " + e.getMessage()); } return super.visitType(typeElement, o); } }, null);
@Override public Void visitType(TypeElement e, Void p) { if (e.getModifiers().contains(Modifier.PUBLIC) || e.getModifiers().contains(Modifier.PROTECTED)) { sb.append(depth(indent) + "TYPE " + e.getQualifiedName() + "\n"); indent += 2; Void v = super.visitType(e, p); indent -= 2; return v; } return null; }
@Override public Void visitType(TypeElement typeElement, AutoMountContext context) { if (isValidPageType(typeElement, context.getPackagesToScan())) { //Only add package level mountpoint for type if it doesnt have a set mount point if (!customMount.contains("*")) { context.setMountPoint(typeElement, customMount + "/*"); } else { context.setMountPoint(typeElement, customMount); } } return super.visitType(typeElement, context); }
@Override public Void visitType(final TypeElement e, final Void p) { enter(e); super.visitType(e, p); leave(e); return null; }