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