* The method containing the parameters.
*/
public static void renameParametersToParameterN(final NewMethod method) {
Checker.notNull("parameter:method", method);
final MethodParameterVisitor visitor = new MethodParameterVisitor() {
protected boolean visit(final MethodParameter parameter) {
final NewMethodParameter parameter0 = (NewMethodParameter) parameter;
parameter0.setName("parameter" + counter);
counter++;
return false;
}
int counter = 0;
};
visitor.start(method);
}