Examples of sprintf()


Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

        out.write("// Generated from: " + DebugInfo.getWhereWeAreNow() + "\n");
        out.write("public class " + eventName + " extends GwtEvent<" + handlerName + "> {\n\n");
       
        if (types.size() > 0){
          for(int i=0; i<types.size(); i++){
            out.write("    " + format.sprintf(types.get(i)) + " " + members.get(i) + ";\n");
          }
          out.write("\n");
        }
       
        out.write("    public static Type<" + handlerName + "> TYPE = new Type<" + handlerName + ">();\n\n");
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    PrintfFormat format = new PrintfFormat("%-" + padding + "s");
     
        for(String importStr: uniqueImports.keySet()){
        String comment = uniqueImports.get(importStr);
//        sb.append("import " + importStr + "; // " + comment + "\n");
      sb.append(format.sprintf("import " + importStr + ";") + "// " + comment + "\n");
      }
      sb.append("\n");
     
      return(sb.toString());
    }
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    out.write("            // Create the class definitions\n");
    out.write("            // Generated from: "
        + DebugInfo.getWhereWeAreNow() + "\n");
    for (int i = 0; i < origOrderClasses.size(); i++) {
      String defn = origOrderClasses.get(i);
      out.write("            _" + pf.sprintf(defn));
      out.write("= new ClassDefinition(\"" + defn + "\");\n");
    }
    out.write("\n");

    out.write("            // Create the enum definitions\n");
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    out.write("            // Create the enum definitions\n");
    out.write("            // Generated from: "
        + DebugInfo.getWhereWeAreNow() + "\n");
    for (int i = 0; i < origOrderEnums.size(); i++) {
      String defn = origOrderEnums.get(i);
      out.write("            _" + pf.sprintf(defn));
      out.write("= new EnumDefinition(\"" + defn + "\");\n");
    }
    out.write("\n");

    out.write("            // Create the type definitions\n");
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

      }

      DmcUncheckedObject typeObj = typeDefs.get(defn);
      String typeClassName = typeObj.getSV("typeClassName");
      String wrapperClassName = typeObj.getSV("wrapperClassName");
      out.write("            _" + pf.sprintf(defn));
      if (wrapperClassName == null)
        out.write("= new TypeDefinition(\"" + predefname + "\", "
            + typeClassName + ".class);\n");
      else
        out.write("= new TypeDefinition(\"" + predefname + "\", "
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

        mediatorName = typeName + "REF";
      } else {
        mediatorName = typeName;
      }

      out.write("            _" + pf.sprintf(attrName));
      out.write("= new AttributeDefinition(\"" + attrName + "\", _"
          + mediatorName + ");\n");
    }
    out.write("\n");
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    out.write("            // Create the rule category definitions\n");
    out.write("            // Generated from: "
        + DebugInfo.getWhereWeAreNow() + "\n");
    for (int i = 0; i < origOrderCategories.size(); i++) {
      String defn = origOrderCategories.get(i);
      out.write("            _" + pf.sprintf(defn));
      out.write("= new RuleCategory(\"" + defn + "\");\n");
    }
    out.write("\n");

    out.write("            // Create the rule definitions\n");
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    out.write("            // Create the rule definitions\n");
    out.write("            // Generated from: "
        + DebugInfo.getWhereWeAreNow() + "\n");
    for (int i = 0; i < origOrderRules.size(); i++) {
      String defn = origOrderRules.get(i);
      out.write("            _" + pf.sprintf(defn));
      out.write("= new RuleDefinition(\"" + defn + "\");\n");
    }
    out.write("\n");

    // Set the attribute values on all objects
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    sb.append("// Generated from: " + DebugInfo.getWhereWeAreNow() + "\n");
   
    Iterator<String> keys = map.keySet().iterator();
    while(keys.hasNext()){
      String key = keys.next();
      sb.append(format.sprintf("import " + key + ";") + "// " + map.get(key) + "\n");
    }
   
    sb.append("\n");
   
    return(sb.toString());
View Full Code Here

Examples of org.dmd.util.formatting.PrintfFormat.sprintf()

    sb.append("// Generated from: " + DebugInfo.getWhereWeAreNow() + "\n");
   
    Iterator<String> keys = map.keySet().iterator();
    while(keys.hasNext()){
      String key = keys.next();
      sb.append(format.sprintf("import " + key + ";") + "// " + map.get(key) + "\n");
    }
   
    sb.append("\n");
   
    return(sb.toString());
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.