Class HasIdentifier

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

public class HasIdentifier extends Object implements Matcher<com.sun.source.tree.Tree>
Matches if the given matcher matches all of the identifiers under this syntax tree.
Author:
alexloh@google.com (Alex Loh)
See Also:
  • Constructor Details

    • HasIdentifier

      public HasIdentifier(Matcher<com.sun.source.tree.IdentifierTree> nodeMatcher)
  • Method Details

    • matches

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