Base visitor for unnecessary constructor calls.
Type | Name and description |
---|---|
List<Class> |
parameterTypes |
String |
suffix |
Class |
targetType |
Constructor and description |
---|
UnnecessaryInstantiationAstVisitor
(Class targetType, List<Class> parameterTypes, String suffix) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
isTypeSuffixNecessary(def argument) |
|
protected boolean |
shouldSkipViolation(Object value) |
|
void |
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression call) |
Groovy Documentation