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
ExplicitTypeInstantiationAstVisitor
protected ExplicitTypeInstantiationAstVisitor(String typeName)
-
createErrorMessage
String createErrorMessage()
-
visitConstructorCallExpression
void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)
-
Groovy Documentation