Class AnnotationMatcherUtils

java.lang.Object
com.google.errorprone.matchers.AnnotationMatcherUtils

public class AnnotationMatcherUtils extends Object
Utilities for matching annotations.
Author:
mwacker@google.com (Mike Wacker)
  • Method Details

    • getArgument

      @Nullable public static com.sun.source.tree.ExpressionTree getArgument(com.sun.source.tree.AnnotationTree annotationTree, String name)
      Gets the value for an argument, or null if the argument does not exist.
      Parameters:
      annotationTree - the AST node for the annotation
      name - the name of the argument whose value to get
      Returns:
      the value of the argument, or null if the argument does not exist