Package com.google.errorprone.matchers
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:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
matches(com.sun.source.tree.Tree tree, VisitorState state)