interface AstVisitor extends org.codehaus.groovy.ast.GroovyClassVisitor
Interface for Groovy AST Visitors used with Rules
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.util.List<Violation> |
getViolations() Retrieve the List of Violations resulting from applying this visitor |
|
abstract void |
setRule(Rule rule) Set the Rule associated with this visitor |
|
abstract void |
setSourceCode(SourceCode sourceCode) Set the SourceCode associated with this visitor |
Methods inherited from class | Name |
---|---|
interface org.codehaus.groovy.ast.GroovyClassVisitor |
org.codehaus.groovy.ast.GroovyClassVisitor#visitProperty(org.codehaus.groovy.ast.PropertyNode), org.codehaus.groovy.ast.GroovyClassVisitor#visitConstructor(org.codehaus.groovy.ast.ConstructorNode), org.codehaus.groovy.ast.GroovyClassVisitor#visitClass(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.GroovyClassVisitor#visitField(org.codehaus.groovy.ast.FieldNode), org.codehaus.groovy.ast.GroovyClassVisitor#visitMethod(org.codehaus.groovy.ast.MethodNode) |
Retrieve the List of Violations resulting from applying this visitor
Set the Rule associated with this visitor
rule
- - the RuleSet the SourceCode associated with this visitor
sourceCode
- - the SourceCode