下面列出了org.eclipse.jdt.core.dom.MethodDeclaration#thrownExceptions ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public boolean visit(final MethodDeclaration node) {
final Collection<ASTNode> ex = node.thrownExceptions();
for (final ASTNode n : ex) {
addToMap(identifiers, n, n.toString());
}
return super.visit(node);
}
@Override
public boolean visit(final MethodDeclaration node) {
final Collection<ASTNode> ex = node.thrownExceptions();
for (final ASTNode n : ex) {
addToMap(identifiers, n, n.toString());
}
return super.visit(node);
}
@Override
public boolean visit(final MethodDeclaration node) {
final Collection<ASTNode> ex = node.thrownExceptions();
for (final ASTNode n : ex) {
addToMap(identifiers, n, n.toString());
}
return super.visit(node);
}
/**
* @param decl method declaration
* @return thrown exception names
* @deprecated to avoid deprecation warnings
*/
private static List<Name> getThrownExceptions(MethodDeclaration decl) {
return decl.thrownExceptions();
}
/**
* @param decl method declaration
* @return thrown exception names
* @deprecated to avoid deprecation warnings
*/
private static List<Name> getThrownExceptions(MethodDeclaration decl) {
return decl.thrownExceptions();
}