Package rocket.generator.rebind.constructorparameter

Examples of rocket.generator.rebind.constructorparameter.NewConstructorParameter


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


  static public void makeAllParametersFinal(final NewConstructor constructor) {
    Checker.notNull("parameter:constructor", constructor);

    final Iterator<ConstructorParameter> parameters = constructor.getParameters().iterator();
    while (parameters.hasNext()) {
      final NewConstructorParameter parameter = (NewConstructorParameter) parameters.next();
      parameter.setFinal(true);
    }
  }
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.constructorparameter.NewConstructorParameter

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.