Package rocket.generator.rebind.visitor

Examples of rocket.generator.rebind.visitor.ConstructorParameterVisitor


   *            The constructor containing the parameters.
   */
  public static void renameParametersToParameterN(final NewConstructor constructor) {
    Checker.notNull("parameter:constructor", constructor);

    final ConstructorParameterVisitor visitor = new ConstructorParameterVisitor() {
      protected boolean visit(final ConstructorParameter parameter) {
        final NewConstructorParameter parameterN = (NewConstructorParameter) parameter;
        parameterN.setName("parameter" + counter);
        counter++;
        return false;
      }

      int counter = 0;
    };
    visitor.start(constructor);
  }
View Full Code Here

TOP

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

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.