Package com.google.errorprone.matchers
Class Returns
java.lang.Object
com.google.errorprone.matchers.Returns
- All Implemented Interfaces:
Matcher<com.sun.source.tree.StatementTree>
,Serializable
public class Returns extends Object implements Matcher<com.sun.source.tree.StatementTree>
Matches a
return
statement whose returned expression is matched by the given matcher.- Author:
- schmitt@google.com (Peter Schmitt)
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)