Class Contains

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

public class Contains extends Object implements Matcher<com.sun.source.tree.Tree>
A matcher that recursively inspects a tree, applying the given matcher to all levels of each tree and returning true if any match is found.

This matcher may be slow. Please avoid using it if there is any other way to implement your check.

See Also:
  • Constructor Details

    • Contains

      public Contains(Matcher<com.sun.source.tree.Tree> matcher)
  • 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>