Class Returns

java.lang.Object
com.google.errorprone.matchers.Returns
All Implemented Interfaces:
Matcher<StatementTree>, Serializable

public class Returns
extends Object
implements Matcher<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 Details

    • Returns

      public Returns​(Matcher<? super ExpressionTree> returnedMatcher)
      New matcher for a return statement where the returned expression is matched by the passed returnedMatcher.
  • Method Details