Package rocket.generator.rebind.visitor

Examples of rocket.generator.rebind.visitor.MethodParameterVisitor


   *            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);
  }
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.visitor.MethodParameterVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.