Groovy Documentation

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

java.lang.Object
  org.codenarc.rule.AbstractAstVisitor
      groovy.org.codenarc.rule.groovyism.ExplicitTypeInstantiationAstVisitor

abstract class ExplicitTypeInstantiationAstVisitor
extends AbstractAstVisitor

AstVisitor that checks for no-arg constructor calls for the type specified in the constructor. Used by the ExplicitXxxInstantiation rules.

Authors:
Chris Mair


Constructor Summary
protected ExplicitTypeInstantiationAstVisitor(String typeName)

 
Method Summary
String createErrorMessage()

void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)

 

Constructor Detail

ExplicitTypeInstantiationAstVisitor

protected ExplicitTypeInstantiationAstVisitor(String typeName)


 
Method Detail

createErrorMessage

String createErrorMessage()


visitConstructorCallExpression

void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)


 

Groovy Documentation