Class AnnotatedNodeCollector
java.lang.Object
com.google.j2cl.transpiler.frontend.javac.AnnotatedNodeCollector
A visitor that finds all the classes, methods and fields marked with a given annotation, e.g.
GwtIncompatible-
Method Summary
Modifier and TypeMethodDescriptionfilesWithAnnotation(List<CompilationUnitTree> compilationUnits, String annotationName) Returns all the class, method or field nodes that are marked with a the given annotation.
-
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.
-