Class AnnotationHasArgumentWithValue

java.lang.Object
com.google.errorprone.matchers.AnnotationHasArgumentWithValue
All Implemented Interfaces:
Matcher<com.sun.source.tree.AnnotationTree>, Serializable

public class AnnotationHasArgumentWithValue extends Object implements Matcher<com.sun.source.tree.AnnotationTree>
Author:
eaftan@google.com (Eddie Aftandilian), pepstein@google.com (Peter Epstein)
See Also:
  • Constructor Details

    • AnnotationHasArgumentWithValue

      public AnnotationHasArgumentWithValue(String element, Matcher<com.sun.source.tree.ExpressionTree> valueMatcher)
  • Method Details

    • matches

      public boolean matches(com.sun.source.tree.AnnotationTree annotationTree, VisitorState state)
      Specified by:
      matches in interface Matcher<com.sun.source.tree.AnnotationTree>