|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractAstVisitor
groovy.org.codenarc.rule.unnecessary.UnnecessaryInstantiationAstVisitor
class UnnecessaryInstantiationAstVisitor extends AbstractAstVisitor
Base visitor for unnecessary constructor calls.
| Property Summary | |
|---|---|
List |
parameterTypes
|
String |
suffix
|
Class |
targetType
|
| Constructor Summary | |
UnnecessaryInstantiationAstVisitor(Class targetType, List parameterTypes, String suffix)
|
|
| Method Summary | |
|---|---|
protected boolean
|
isTypeSuffixNecessary(def argument)
|
protected boolean
|
shouldSkipViolation(Object value)
|
void
|
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)
|
| Property Detail |
|---|
List parameterTypes
String suffix
Class targetType
| Constructor Detail |
|---|
UnnecessaryInstantiationAstVisitor(Class targetType, List parameterTypes, String suffix)
| Method Detail |
|---|
@SuppressWarnings('UnusedMethodParameter')
protected boolean isTypeSuffixNecessary(def argument)
@SuppressWarnings('UnusedMethodParameter')
protected boolean shouldSkipViolation(Object value)
@Override final void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)
Groovy Documentation