Contents
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 areturn
statement where the returned expression is matched by the passedreturnedMatcher
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(StatementTree expressionTree, VisitorState state)
-
Constructor Details
-
Method Details
-
matches
- Specified by:
matches
in interfaceMatcher<StatementTree>
-