Class 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: (Mike Wacker)
See Also:
Serialized Form
  • Constructor Details

    • AnnotationDoesNotHaveArgument

      public AnnotationDoesNotHaveArgument​(String name)
      Creates a new matcher.
      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>