abstract class ExplicitCallToMethodAstVisitor extends AbstractMethodCallExpressionVisitor
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)
|
protected ExplicitCallToMethodAstVisitor
(java.lang.String methodName)
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected abstract java.lang.String |
getViolationMessage(MethodCallExpression exp) |
|
protected boolean |
shouldIgnoreViolationForMethodCall(MethodCallExpression ignore) |
|
void |
visitMethodCallExpression(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