Package: java.org.codenarc.rule

## [Java] Class AbstractMethodVisitor

- java.org.codenarc.rule.AbstractMethodVisitor

- All Implemented Interfaces and Traits:
    AstVisitor

      public class AbstractMethodVisitor
      extends org.codehaus.groovy.ast.ClassCodeVisitorSupport

  This is the base class for AST Visitors that only need to visit the methods of a class. It will not visit anything except the MethodNode. It is much faster than the alternative of visiting the whole class.
  When you override visitMethod(MethodNode), there is no need to invoke the super method.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected void` | `addError(String msg, org.codehaus.groovy.ast.ASTNode expr)`
    `` | `protected void` | `addViolation(org.codehaus.groovy.ast.ASTNode node, String message)` Add a new Violation to the list of violations found by this visitor.
    `` | `protected void` | `addViolation(org.codehaus.groovy.ast.MethodNode node, String message)` Add a new Violation to the list of violations found by this visitor.
    `` | `protected void` | `addViolation(org.codehaus.groovy.ast.ClassNode node, String message)` Add a new Violation to the list of violations found by this visitor.
    `` | `protected String` | `getCurrentClassName()`
    `` | `protected org.codehaus.groovy.ast.ClassNode` | `getCurrentClassNode()`
    `` | `Rule` | `getRule()` Gets the rule for this visitor.
    `` | `protected SourceCode` | `getSourceCode()`
    `` | `protected org.codehaus.groovy.control.SourceUnit` | `getSourceUnit()`
    `` | `List<Violation>` | `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
    `` | `void` | `visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode node)`
    `` | `void` | `visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression ale)`
    `` | `void` | `visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression expression)`
    `` | `void` | `visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement statement)`
    `` | `void` | `visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression expression)`
    `` | `void` | `visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression expression)`
    `` | `void` | `visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression expression)`
    `` | `void` | `visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement block)`
    `` | `void` | `visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression expression)`
    `` | `void` | `visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement statement)`
    `` | `void` | `visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression cle)`
    `` | `void` | `visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement statement)`
    `` | `void` | `visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression expression)`
    `` | `void` | `visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement statement)`
    `` | `void` | `visitClass(org.codehaus.groovy.ast.ClassNode node)`
    `` | `protected void` | `visitClassCodeContainer(org.codehaus.groovy.ast.stmt.Statement code)`
    `` | `void` | `visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression expression)`
    `` | `void` | `visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression expression)`
    `` | `void` | `visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression cle)`
    `` | `void` | `visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression expression)`
    `` | `void` | `visitConstructor(org.codehaus.groovy.ast.ConstructorNode node)`
    `` | `void` | `visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)`
    `` | `protected void` | `visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode node, boolean isConstructor)`
    `` | `void` | `visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement statement)`
    `` | `void` | `visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression expression)`
    `` | `void` | `visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement loop)`
    `` | `protected void` | `visitEmptyStatement(org.codehaus.groovy.ast.stmt.EmptyStatement statement)`
    `` | `void` | `visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement statement)`
    `` | `void` | `visitField(org.codehaus.groovy.ast.FieldNode node)`
    `` | `void` | `visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression expression)`
    `` | `void` | `visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement forLoop)`
    `` | `void` | `visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)`
    `` | `void` | `visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement ifElse)`
    `` | `void` | `visitImports(org.codehaus.groovy.ast.ModuleNode node)`
    `` | `void` | `visitListExpression(org.codehaus.groovy.ast.expr.ListExpression expression)`
    `` | `protected void` | `visitListOfExpressions(List<? extends org.codehaus.groovy.ast.expr.Expression> list)`
    `` | `void` | `visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression expression)`
    `` | `void` | `visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression expression)`
    `` | `void` | `visitMethod(org.codehaus.groovy.ast.MethodNode node)`
    `` | `void` | `visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression call)`
    `` | `void` | `visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression expression)`
    `` | `void` | `visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression expression)`
    `` | `protected void` | `visitObjectInitializerStatements(org.codehaus.groovy.ast.ClassNode node)`
    `` | `void` | `visitPackage(org.codehaus.groovy.ast.PackageNode node)`
    `` | `void` | `visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression expression)`
    `` | `void` | `visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression expression)`
    `` | `void` | `visitProperty(org.codehaus.groovy.ast.PropertyNode node)`
    `` | `void` | `visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression expression)`
    `` | `void` | `visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression expression)`
    `` | `void` | `visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement statement)`
    `` | `void` | `visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression expression)`
    `` | `void` | `visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression expression)`
    `` | `void` | `visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression expression)`
    `` | `protected void` | `visitStatement(org.codehaus.groovy.ast.stmt.Statement statement)`
    `` | `void` | `visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression call)`
    `` | `void` | `visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement statement)`
    `` | `void` | `visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement statement)`
    `` | `void` | `visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression expression)`
    `` | `void` | `visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement statement)`
    `` | `void` | `visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement statement)`
    `` | `void` | `visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression expression)`
    `` | `void` | `visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression expression)`
    `` | `void` | `visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression expression)`
    `` | `void` | `visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression expression)`
    `` | `void` | `visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement loop)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---

    `class org.codehaus.groovy.ast.ClassCodeVisitorSupport`

    `org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitField(org.codehaus.groovy.ast.FieldNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitMethod(org.codehaus.groovy.ast.MethodNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitProperty(org.codehaus.groovy.ast.PropertyNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitConstructor(org.codehaus.groovy.ast.ConstructorNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitClass(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitPackage(org.codehaus.groovy.ast.PackageNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitImports(org.codehaus.groovy.ast.ModuleNode), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitListExpression(org.codehaus.groovy.ast.expr.ListExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression), org.codehaus.groovy.ast.ClassCodeVisitorSupport#equals(java.lang.Object), org.codehaus.groovy.ast.ClassCodeVisitorSupport#toString(), org.codehaus.groovy.ast.ClassCodeVisitorSupport#hashCode(), org.codehaus.groovy.ast.ClassCodeVisitorSupport#getClass(), org.codehaus.groovy.ast.ClassCodeVisitorSupport#notify(), org.codehaus.groovy.ast.ClassCodeVisitorSupport#notifyAll(), org.codehaus.groovy.ast.ClassCodeVisitorSupport#wait(long), org.codehaus.groovy.ast.ClassCodeVisitorSupport#wait(long, int), org.codehaus.groovy.ast.ClassCodeVisitorSupport#wait()`

    `class org.codehaus.groovy.ast.CodeVisitorSupport`

    `org.codehaus.groovy.ast.CodeVisitorSupport#visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitListExpression(org.codehaus.groovy.ast.expr.ListExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement), org.codehaus.groovy.ast.CodeVisitorSupport#visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression), org.codehaus.groovy.ast.CodeVisitorSupport#visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression), org.codehaus.groovy.ast.CodeVisitorSupport#equals(java.lang.Object), org.codehaus.groovy.ast.CodeVisitorSupport#toString(), org.codehaus.groovy.ast.CodeVisitorSupport#hashCode(), org.codehaus.groovy.ast.CodeVisitorSupport#getClass(), org.codehaus.groovy.ast.CodeVisitorSupport#notify(), org.codehaus.groovy.ast.CodeVisitorSupport#notifyAll(), org.codehaus.groovy.ast.CodeVisitorSupport#wait(long), org.codehaus.groovy.ast.CodeVisitorSupport#wait(long, int), org.codehaus.groovy.ast.CodeVisitorSupport#wait()`

- - ### Method Detail

    - #### @Override protected final void addError(String msg, org.codehaus.groovy.ast.ASTNode expr)

    - #### protected void addViolation(org.codehaus.groovy.ast.ASTNode node, String message)

      Add a new Violation to the list of violations found by this visitor. Only add the violation if the node lineNumber >= 0.

      Parameters:
        `node` - - the Groovy AST Node
        `message` - - the message for the violation; defaults to null

    - #### protected void addViolation(org.codehaus.groovy.ast.MethodNode node, String message)

      Add a new Violation to the list of violations found by this visitor. Only add the violation if the node lineNumber >= 0.

      Parameters:
        `node` - - the Groovy AST Node
        `message` - - the message for the violation; defaults to null

    - #### protected void addViolation(org.codehaus.groovy.ast.ClassNode node, String message)

      Add a new Violation to the list of violations found by this visitor. Only add the violation if the node lineNumber >= 0.

      Parameters:
        `node` - - the Groovy AST Node
        `message` - - the message for the violation; defaults to null

    - #### protected final String getCurrentClassName()

    - #### protected final org.codehaus.groovy.ast.ClassNode getCurrentClassNode()

    - #### public Rule getRule()

      Gets the rule for this visitor.

      Returns:
        the rule

    - #### protected SourceCode getSourceCode()

    - #### @Override protected final org.codehaus.groovy.control.SourceUnit getSourceUnit()

    - #### public List<Violation> getViolations()

      Retrieve the List of Violations resulting from applying this visitor

      Returns:
        the List of Violations; may be empty

    - #### public void setRule(Rule rule)

      Set the Rule associated with this visitor

      Parameters:
        `rule` - - the Rule

    - #### public void setSourceCode(SourceCode sourceCode)

      Set the SourceCode associated with this visitor

      Parameters:
        `sourceCode` - - the SourceCode

    - #### @Override public final void visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode node)

    - #### @Override public final void visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression ale)

    - #### @Override public final void visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression expression)

    - #### @Override public final void visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement statement)

    - #### @Override public final void visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression expression)

    - #### @Override public final void visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression expression)

    - #### @Override public final void visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression expression)

    - #### @Override public final void visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement block)

    - #### @Override public final void visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression expression)

    - #### @Override public final void visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement statement)

    - #### @Override public final void visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression cle)

    - #### @Override public final void visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement statement)

    - #### @Override public final void visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression expression)

    - #### @Override public final void visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement statement)

    - #### @Override public void visitClass(org.codehaus.groovy.ast.ClassNode node)

    - #### @Override protected final void visitClassCodeContainer(org.codehaus.groovy.ast.stmt.Statement code)

    - #### @Override public final void visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression expression)

    - #### @Override public final void visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression expression)

    - #### @Override public final void visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression cle)

    - #### @Override public final void visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression expression)

    - #### @Override public final void visitConstructor(org.codehaus.groovy.ast.ConstructorNode node)

    - #### @Override public final void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)

    - #### @Override protected final void visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode node, boolean isConstructor)

    - #### @Override public final void visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement statement)

    - #### @Override public final void visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression expression)

    - #### @Override public final void visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement loop)

    - #### @Override protected final void visitEmptyStatement(org.codehaus.groovy.ast.stmt.EmptyStatement statement)

    - #### @Override public final void visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement statement)

    - #### @Override public final void visitField(org.codehaus.groovy.ast.FieldNode node)

    - #### @Override public final void visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression expression)

    - #### @Override public final void visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement forLoop)

    - #### @Override public final void visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)

    - #### @Override public final void visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement ifElse)

    - #### @Override public final void visitImports(org.codehaus.groovy.ast.ModuleNode node)

    - #### @Override public final void visitListExpression(org.codehaus.groovy.ast.expr.ListExpression expression)

    - #### @Override protected final void visitListOfExpressions(List<? extends org.codehaus.groovy.ast.expr.Expression> list)

    - #### @Override public final void visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression expression)

    - #### @Override public final void visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression expression)

    - #### @Override public void visitMethod(org.codehaus.groovy.ast.MethodNode node)

    - #### @Override public final void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression call)

    - #### @Override public final void visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression expression)

    - #### @Override public final void visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression expression)

    - #### @Override protected final void visitObjectInitializerStatements(org.codehaus.groovy.ast.ClassNode node)

    - #### @Override public final void visitPackage(org.codehaus.groovy.ast.PackageNode node)

    - #### @Override public final void visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression expression)

    - #### @Override public final void visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression expression)

    - #### @Override public final void visitProperty(org.codehaus.groovy.ast.PropertyNode node)

    - #### @Override public final void visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression expression)

    - #### @Override public final void visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression expression)

    - #### @Override public final void visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement statement)

    - #### @Override public final void visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression expression)

    - #### @Override public final void visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression expression)

    - #### @Override public final void visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression expression)

    - #### @Override protected final void visitStatement(org.codehaus.groovy.ast.stmt.Statement statement)

    - #### @Override public final void visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression call)

    - #### @Override public final void visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement statement)

    - #### @Override public final void visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement statement)

    - #### @Override public final void visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression expression)

    - #### @Override public final void visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement statement)

    - #### @Override public final void visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement statement)

    - #### @Override public final void visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression expression)

    - #### @Override public final void visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression expression)

    - #### @Override public final void visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression expression)

    - #### @Override public final void visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression expression)

    - #### @Override public final void visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement loop)