Groovy Documentation

groovy.org.codenarc.rule.basic
[Groovy] Class AbstractFinallyAstVisitor

java.lang.Object
  org.codenarc.rule.AbstractAstVisitor
      groovy.org.codenarc.rule.basic.AbstractFinallyAstVisitor

abstract class AbstractFinallyAstVisitor
extends AbstractAstVisitor

Abstract superclass for AST Visitor classes that check for conditions within a finally block

Authors:
Chris Mair


Method Summary
protected boolean isStatementWithinFinally(org.codehaus.groovy.ast.stmt.Statement statement)

@return true if the specified statement is within a finally block

void visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement tryCatchStatement)

 

Method Detail

isStatementWithinFinally

protected boolean isStatementWithinFinally(org.codehaus.groovy.ast.stmt.Statement statement)
Returns:
true if the specified statement is within a finally block


visitTryCatchFinally

void visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement tryCatchStatement)


 

Groovy Documentation