Package org.jboss.errai.codegen

Examples of org.jboss.errai.codegen.Comment


  @Override
  public String toJavaString() {
    StringBuilder builder = new StringBuilder(25);
    if (fieldComment != null) {
      builder.append(new Comment(fieldComment).generate(null)).append('\n');
    }

    if (!annotations.isEmpty()) {
      for (Annotation a : getAnnotations()) {
        builder.append(new AnnotationLiteral(a).getCanonicalString(Context.create())).append(" ");
View Full Code Here


      }
      buf.append("\n");
    }

    if (methodComment != null) {
      buf.append(new Comment(methodComment).generate(null)).append("\n");
    }

    buf.append(scope.getCanonicalName()).append(" ")
            .append(modifiers.toJavaString()).append(" ");
View Full Code Here

    }

    final StringBuilder build = new StringBuilder(512);

    if (constructorComment != null)  {
      build.append(new Comment(constructorComment).generate(null)).append('\n');
    }

    return generatedCache =
            build.append(scope.getCanonicalName())
            .append(" ")
View Full Code Here

    if (generatedCache != null) return generatedCache;

    final StringBuilder buf = new StringBuilder(512);

    if (classComment != null) {
      buf.append(new Comment(classComment).generate(null)).append("\n");
    }

    context.addVariable(Variable.create("this", this));

    MetaClass sCls = getSuperClass();
View Full Code Here

    if (generatedCache != null) return generatedCache;

    final StringBuilder buf = new StringBuilder(512);

    if (classComment != null) {
      buf.append(new Comment(classComment).generate(null)).append("\n");
    }

    context.addVariable(Variable.create("this", this));

    MetaClass sCls = getSuperClass();
View Full Code Here

    if (generatedCache != null) return generatedCache;

    StringBuilder buf = new StringBuilder(512);

    if (classComment != null) {
      buf.append(new Comment(classComment).generate(null)).append("\n");
    }

    context.addVariable(Variable.create("this", this));

    for (BuildMetaField buildMetaField : fields) {
View Full Code Here

      context.addVariable(Variable.create(p.getName(), p.getType()));
    }
    StringBuilder buf = new StringBuilder(256);

    if (methodComment != null) {
      buf.append(new Comment(methodComment).generate(null)).append("\n");
    }

    buf.append(scope.getCanonicalName()).append(" ")
            .append(modifiers.toJavaString()).append(" ");
View Full Code Here

    }

    StringBuilder build = new StringBuilder(512);

    if (constructorComment != null)  {
      build.append(new Comment(constructorComment).generate(null)).append('\n');
    }

    return generatedCache = new StringBuilder(512).append(scope.getCanonicalName())
            .append(" ")
            .append(declaringClass.getName())
View Full Code Here

    return nestedCall(Cast.to(type, statement));
  }

  @Override
  public Statement codeComment(String comment) {
    return new Comment(comment);
  }
View Full Code Here

    if (generatedCache != null) return generatedCache;

    StringBuilder buf = new StringBuilder(512);

    if (classComment != null) {
      buf.append(new Comment(classComment).generate(null)).append("\n");
    }

    context.addVariable(Variable.create("this", this));

    for (Annotation a : annotations) {
View Full Code Here

TOP

Related Classes of org.jboss.errai.codegen.Comment

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.