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 athrow
statement where the thrown item is matched by the passedthrownMatcher
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(StatementTree expressionTree, VisitorState state)
-
Constructor Details
-
Throws
New matcher for athrow
statement where the thrown item is matched by the passedthrownMatcher
.
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceMatcher<StatementTree>
-