groovy.org.codenarc.rule.exceptions
[Groovy] Class CommonCatchAstVisitor
java.lang.Object
org.codenarc.rule.AbstractAstVisitor
groovy.org.codenarc.rule.exceptions.CommonCatchAstVisitor
class CommonCatchAstVisitor
extends AbstractAstVisitor
AstVisitor implementation that checks for catching an exception type specified in the constructor
This is an internal class and its API is subject to change.
- Authors:
- Chris Mair
Constructor Summary |
CommonCatchAstVisitor(String exceptionClassNameWithoutPackage)
Construct a new instance, specifying the exception class name
|
Method Summary |
void
|
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement catchStatement)
|
CommonCatchAstVisitor
CommonCatchAstVisitor(String exceptionClassNameWithoutPackage)
- Construct a new instance, specifying the exception class name
- Parameters:
exceptionClassNameWithoutPackage
- - the name of the exception class to check for, without the package
visitCatchStatement
void visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement catchStatement)
-
Groovy Documentation