Class AnnotationDoesNotHaveArgument

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

public class AnnotationDoesNotHaveArgument extends Object implements Matcher<com.sun.source.tree.AnnotationTree>
Matches an annotation that does not have a particular argument, possibly because the default value is being used.
Author:
mwacker@google.com (Mike Wacker)
See Also:
  • Constructor Details

    • AnnotationDoesNotHaveArgument

      public AnnotationDoesNotHaveArgument(String name)
      Creates a new matcher.
      Parameters:
      name - the name of the argument to search for
  • 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>