Package rocket.generator.rebind

Examples of rocket.generator.rebind.GeneratorContext.unbranch()


      writer.println();
      GeneratorHelper.writeClassComponents(initializers, writer, false, true);
      writer.println();

      context.unbranch();
    }
  }
 
  private Visibility visibility;
View Full Code Here


    this.writeNestedTypes(writer);
    writer.outdent();

    writer.println("} // " + this.getNestedName());

    context.unbranch();
  }

  protected void writeComments(final SourceWriter writer) {
    GeneratorHelper.writeComments(this.getComments(), this.getMetaData(), writer);
  }
View Full Code Here

      context.debug(buf.toString());

      this.logSuperType();
      this.logImplementedInterfaces();

      context.unbranch();
    }
  }
}
View Full Code Here

        while (interfacesIterator.hasNext()) {
          final Type interfacee = interfacesIterator.next();
          context.debug(interfacee.getName());
        }

        context.unbranch();
      }
    }
  }

  protected void writeParameterisedTypes( final SourceWriter writer ){
View Full Code Here

      writer.println();
      GeneratorHelper.writeClassComponents(sorted, writer, false, true);
      writer.println();

      context.unbranch();
    }
  }

  protected void writeFields(final SourceWriter writer) {
    Checker.notNull("parameter:writer", writer);
View Full Code Here

      writer.println();
      GeneratorHelper.writeClassComponents(sorted, writer, false, true);
      writer.println();

      context.unbranch();
    }
  }

  protected void writeMethods(final SourceWriter writer) {
    Checker.notNull("parameter:writer", writer);
View Full Code Here

      writer.println();
      GeneratorHelper.writeClassComponents(sorted, writer, false, true);
      writer.println();

      context.unbranch();
    }
  }

  protected void writeNestedTypes(final SourceWriter writer) {
    Checker.notNull("parameter:writer", writer);
View Full Code Here

      writer.println();
      GeneratorHelper.writeClassComponents(sorted, writer, false, true);
      writer.println();

      context.unbranch();
    }
  }

  protected void throwTypeAlreadyExistsException() {
    throw new TypeAlreadyExistsException("A type with the name \"" + this.getName() + "\" already exists, code generation failed.");
View Full Code Here

    newType.setAbstract(false);
    newType.setFinal(true);
    newType.setSuperType(this.getLoggerFactoryImpl());
    newType.setVisibility(Visibility.PUBLIC);

    context.unbranch();

    return newType;
  }

  protected Type getLoggerFactoryImpl() {
View Full Code Here

    // used in templates.
    final NewMethodParameter parameter = (NewMethodParameter) newMethod.getParameters().get(0);
    parameter.setName(Constants.FIND_LOGGER_NAME_PARAMETER);
    parameter.setFinal(true);

    context.unbranch();
  }

  /**
   * Overrides the createDefaultLogger method which will return the root
   * logger when a more specific match cannot be found in the accompanying
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.