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 areturn
statement whose returned expression is matched by the given matcher.- Author:
- [email protected] (Peter Schmitt)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)
-
-
-
Constructor Detail
-
Returns
public Returns(Matcher<? super com.sun.source.tree.ExpressionTree> returnedMatcher)
New matcher for areturn
statement where the returned expression is matched by the passedreturnedMatcher
.
-
-
Method Detail
-
matches
public boolean matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)
-
-