Class AnnotatedNodeCollector

java.lang.Object
com.google.j2cl.transpiler.frontend.javac.AnnotatedNodeCollector

public final class AnnotatedNodeCollector extends Object
A visitor that finds all the classes, methods and fields marked with a given annotation, e.g. GwtIncompatible
  • Method Details

    • filesWithAnnotation

      public static Set<String> filesWithAnnotation(List<CompilationUnitTree> compilationUnits, String annotationName)
      Returns all the class, method or field nodes that are marked with a the given annotation. The nodes are returned in order based on the position on the file and won't overlap.