public class Throws extends Object implements Matcher<com.sun.source.tree.StatementTree>
throw
statement whose thrown expression is matched by the given matcher.Constructor and Description |
---|
Throws(Matcher<? super com.sun.source.tree.ExpressionTree> thrownMatcher)
New matcher for a
throw statement where the thrown item is matched by the passed thrownMatcher . |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(com.sun.source.tree.StatementTree expressionTree,
VisitorState state) |
public Throws(Matcher<? super com.sun.source.tree.ExpressionTree> thrownMatcher)
throw
statement where the thrown item is matched by the passed thrownMatcher
.public boolean matches(com.sun.source.tree.StatementTree expressionTree, VisitorState state)
Copyright © 2017. All rights reserved.