org.codenarc.rule.naming
Class ScopedConfusingMethodNameAstVisitor

java.lang.Object
  extended by org.codehaus.groovy.ast.CodeVisitorSupport
      extended by org.codehaus.groovy.ast.ClassCodeVisitorSupport
          extended by org.codenarc.rule.AbstractAstVisitor
              extended by org.codenarc.rule.naming.ScopedConfusingMethodNameAstVisitor
All Implemented Interfaces:
groovy.lang.GroovyObject, org.codehaus.groovy.ast.GroovyClassVisitor, org.codehaus.groovy.ast.GroovyCodeVisitor, AstVisitor

public class ScopedConfusingMethodNameAstVisitor
extends AbstractAstVisitor


Field Summary
 
Fields inherited from class org.codenarc.rule.AbstractAstVisitor
BOOLEAN_CLASS, CONSTANT_EXPRESSION_VALUES, MAX_SOURCE_LINE_LENGTH, SOURCE_LINE_LAST_SEGMENT_LENGTH
 
Constructor Summary
ScopedConfusingMethodNameAstVisitor()
           
 
Method Summary
 java.lang.Object getLowercaseClosureNames()
           
 java.lang.Object getLowercaseMethodNames()
           
 java.lang.Object getLowercaseMethodNamesWithParameterTypes()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getParent()
           
 java.lang.Object getProperty(java.lang.String property)
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setLowercaseClosureNames(java.lang.Object value)
           
 void setLowercaseMethodNames(java.lang.Object value)
           
 void setLowercaseMethodNamesWithParameterTypes(java.lang.Object value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setParent(java.lang.Object value)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 void visitClassEx(org.codehaus.groovy.ast.ClassNode node)
           
 void visitFieldEx(org.codehaus.groovy.ast.FieldNode node)
           
 void visitMethodEx(org.codehaus.groovy.ast.MethodNode node)
           
 
Methods inherited from class org.codenarc.rule.AbstractAstVisitor
addViolation, addViolation, addViolation, getIsSuppressed, getRule, getSourceCode, getSourceUnit, getViolations, getVisited, isFirstVisit, setIsSuppressed, setRule, setSourceCode, setViolations, setVisited, sourceLine, suppressionIsPresent, visitClass, visitClassComplete, visitConstructor, visitConstructorEx, visitConstructorOrMethod, visitConstructorOrMethodEx, visitField, visitMethod, visitMethodComplete, visitProperty, visitPropertyEx
 
Methods inherited from class org.codehaus.groovy.ast.ClassCodeVisitorSupport
addError, visitAnnotations, visitAssertStatement, visitBlockStatement, visitBreakStatement, visitCaseStatement, visitCatchStatement, visitClassCodeContainer, visitContinueStatement, visitDoWhileLoop, visitExpressionStatement, visitForLoop, visitIfElse, visitImports, visitObjectInitializerStatements, visitPackage, visitReturnStatement, visitStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitVariableExpression, visitWhileLoop
 
Methods inherited from class org.codehaus.groovy.ast.CodeVisitorSupport
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitDeclarationExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitRegexExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedConfusingMethodNameAstVisitor

public ScopedConfusingMethodNameAstVisitor()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractAstVisitor

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractAstVisitor

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractAstVisitor

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractAstVisitor

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractAstVisitor

getLowercaseMethodNames

public java.lang.Object getLowercaseMethodNames()

setLowercaseMethodNames

public void setLowercaseMethodNames(java.lang.Object value)

getLowercaseMethodNamesWithParameterTypes

public java.lang.Object getLowercaseMethodNamesWithParameterTypes()

setLowercaseMethodNamesWithParameterTypes

public void setLowercaseMethodNamesWithParameterTypes(java.lang.Object value)

getLowercaseClosureNames

public java.lang.Object getLowercaseClosureNames()

setLowercaseClosureNames

public void setLowercaseClosureNames(java.lang.Object value)

getParent

public java.lang.Object getParent()

setParent

public void setParent(java.lang.Object value)

visitMethodEx

public void visitMethodEx(org.codehaus.groovy.ast.MethodNode node)
Overrides:
visitMethodEx in class AbstractAstVisitor

visitFieldEx

public void visitFieldEx(org.codehaus.groovy.ast.FieldNode node)
Overrides:
visitFieldEx in class AbstractAstVisitor

visitClassEx

public void visitClassEx(org.codehaus.groovy.ast.ClassNode node)
Overrides:
visitClassEx in class AbstractAstVisitor


Copyright © 2011. All Rights Reserved.