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 returningtrue
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(com.sun.source.tree.Tree tree, VisitorState state)
-
-
-
Constructor Detail
-
Contains
public Contains(Matcher<com.sun.source.tree.Tree> matcher)
-
-
Method Detail
-
matches
public boolean matches(com.sun.source.tree.Tree tree, VisitorState state)
-
-