Groovy Documentation

groovy.org.codenarc.rule.exceptions
[Groovy] Class CommonThrowAstVisitor

java.lang.Object
  org.codenarc.rule.AbstractAstVisitor
      groovy.org.codenarc.rule.exceptions.CommonThrowAstVisitor

class CommonThrowAstVisitor
extends AbstractAstVisitor

AstVisitor implementation that checks for throwing one of the exception type names specified in the constructor

This is an internal class and its API is subject to change.

Authors:
Chris Mair


Constructor Summary
CommonThrowAstVisitor(List exceptionTypeNames)

Construct a new instance, specifying the exception type names

 
Method Summary
void visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement throwStatement)

 

Constructor Detail

CommonThrowAstVisitor

CommonThrowAstVisitor(List exceptionTypeNames)
Construct a new instance, specifying the exception type names
Parameters:
exceptionTypeNames - - the names of the exception class; typically including class name with and without package


 
Method Detail

visitThrowStatement

void visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement throwStatement)


 

Groovy Documentation