Groovy Documentation

org.codenarc.rule
Interface AstVisitor


interface AstVisitor

Interface for Groovy AST Visitors used with Rules

author:
Chris Mair
version:
$Revision: 7 $ - $Date: 2009-01-21 21:52:00 -0500 (Wed, 21 Jan 2009) $


Method Summary
List getViolations()

Retrieve the List of Violations resulting from applying this visitor

void setRule(Rule rule)

Set the Rule associated with this visitor

void setSourceCode(SourceCode sourceCode)

Set the SourceCode associated with this visitor

 

Method Detail

getViolations

public List getViolations()
Retrieve the List of Violations resulting from applying this visitor
return:
the List of Violations; may be empty


setRule

public void setRule(Rule rule)
Set the Rule associated with this visitor
param:
rule - the Rule


setSourceCode

public void setSourceCode(SourceCode sourceCode)
Set the SourceCode associated with this visitor
param:
sourceCode - the SourceCode


 

Groovy Documentation