Class AnnotationUtils

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

public final class AnnotationUtils extends Object
Utility functions to process annotations.
  • Method Details

    • findAnnotationBindingByName

      @Nullable public static AnnotationMirror findAnnotationBindingByName(List<? extends AnnotationMirror> annotations, String name)
    • getAnnotationName

      public static String getAnnotationName(AnnotationMirror annotationMirror)
    • getAnnotationParameterString

      @Nullable public static String getAnnotationParameterString(AnnotationMirror annotationMirror, String paramName)
    • getAnnotationParameterArray

      @Nullable public static List<?> getAnnotationParameterArray(AnnotationMirror annotationMirror, String paramName)
    • getAnnotationParameterBoolean

      public static boolean getAnnotationParameterBoolean(AnnotationMirror annotationMirror, String paramName, boolean defaultValue)
    • hasAnnotation

      public static boolean hasAnnotation(AnnotatedConstruct construct, String annotationSourceName)
      Returns true if the construct is annotated with annotationSourceName.