Package com.google.errorprone.matchers
Class Throws
- java.lang.Object
-
- com.google.errorprone.matchers.Throws
-
- All Implemented Interfaces:
Matcher<com.sun.source.tree.StatementTree>
,Serializable
public class Throws extends Object implements Matcher<com.sun.source.tree.StatementTree>
Matches athrow
statement whose thrown expression is matched by the given matcher.- Author:
- [email protected] (Peter Schmitt)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)
-
-
-
Constructor Detail
-
Throws
public Throws(Matcher<? super com.sun.source.tree.ExpressionTree> thrownMatcher)
New matcher for athrow
statement where the thrown item is matched by the passedthrownMatcher
.
-
-
Method Detail
-
matches
public boolean matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)
-
-