Class Returns
java.lang.Object
com.google.errorprone.matchers.Returns
- All Implemented Interfaces:
Matcher<StatementTree>, Serializable
Matches a
return statement whose returned expression is matched by the given matcher.- Author:
- schmitt@google.com (Peter Schmitt)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReturns(Matcher<? super ExpressionTree> returnedMatcher) New matcher for areturnstatement where the returned expression is matched by the passedreturnedMatcher. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(StatementTree expressionTree, VisitorState state)
-
Constructor Details
-
Returns
New matcher for areturnstatement where the returned expression is matched by the passedreturnedMatcher.
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceMatcher<StatementTree>
-