Groovy Documentation

groovy.org.codenarc.rule.groovyism
[Groovy] Class ExplicitCallToMethodAstVisitor

java.lang.Object
  org.codenarc.rule.AbstractMethodCallExpressionVisitor
      groovy.org.codenarc.rule.groovyism.ExplicitCallToMethodAstVisitor

abstract class ExplicitCallToMethodAstVisitor
extends AbstractMethodCallExpressionVisitor

Parent Visitor for "ExplicitCallToX" Rules.

Authors:
Hamlet D'Arcy
Ren? Scheibe


Property Summary
String methodName

 
Constructor Summary
protected ExplicitCallToMethodAstVisitor(String methodName)

@param methodName The method name to watch for.

 
Method Summary
String getViolationMessage(org.codehaus.groovy.ast.expr.MethodCallExpression exp)

void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression call)

 

Property Detail

methodName

final String methodName


 
Constructor Detail

ExplicitCallToMethodAstVisitor

protected ExplicitCallToMethodAstVisitor(String methodName)
Parameters:
methodName - The method name to watch for.


 
Method Detail

getViolationMessage

String getViolationMessage(org.codehaus.groovy.ast.expr.MethodCallExpression exp)


visitMethodCallExpression

void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression call)


 

Groovy Documentation