Parent Visitor for "ExplicitCallToX" Rules.
Fields inherited from class | Fields |
---|---|
class AbstractMethodCallExpressionVisitor |
currentClassNode |
Type | Name and description |
---|---|
java.lang.String |
methodName |
int |
numArgs |
Constructor and description |
---|
protected ExplicitCallToMethodAstVisitor
(java.lang.String methodName, int numArgs) @param methodName The method name to watch for. |
protected ExplicitCallToMethodAstVisitor
(java.lang.String methodName) @param methodName The method name to watch for. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
getViolationMessage(org.codehaus.groovy.ast.expr.MethodCallExpression exp) |
|
protected boolean |
shouldIgnoreViolationForMethodCall(org.codehaus.groovy.ast.expr.MethodCallExpression ignore) |
|
void |
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression call) |
methodName
- The method name to watch for.numArgs
- The expected number of method parameters
methodName
- The method name to watch for.Groovy Documentation