Examples of sprintf()


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

            Token t = (Token)get(i);
            sb.append(formatid.sprintf(i));
            sb.append(formatid.sprintf(t.getType()));
            sb.append(formatid.sprintf(t.getPos()));
            if (t.getUserData() == null)
                sb.append(formatud.sprintf("null"));
            else{
                String cn = t.getUserData().getClass().getName();

                sb.append(formatud.sprintf(cn.substring(cn.lastIndexOf(".")+1)));
            }
View Full Code Here

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

            if (t.getUserData() == null)
                sb.append(formatud.sprintf("null"));
            else{
                String cn = t.getUserData().getClass().getName();

                sb.append(formatud.sprintf(cn.substring(cn.lastIndexOf(".")+1)));
            }
            sb.append(" " + t.getValue() + "\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

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

       
        for(AttributeDefinition ad : attrDefs.values())
          sattrs.put(ad.getName(), ad);
       
        for(AttributeDefinition ad : sattrs.values())
            sb.append(format.sprintf(ad.getObjectName()) + ad.getDefinedIn().getName() + "\n");
       

        sb.append("*** Classes\n");
        TreeMap<StringName,ClassDefinition> scdefs = new TreeMap<StringName, ClassDefinition>();
       
View Full Code Here

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

       
        for(ClassDefinition cd : classDefs.values())
          scdefs.put(cd.getName(), cd);
       
        for(ClassDefinition cd : scdefs.values()){
            sb.append(format.sprintf(cd.getObjectName()));
            if (cd.getAbbrev() != null)
                sb.append(" AB " + cd.getAbbrev());
            sb.append(cd.getDefinedIn().getName() + "\n");
        }
      
View Full Code Here

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

   
    sb.append("// Generated from: " + DebugInfo.getWhereWeAreNow() + "\n");
    sb.append("// " + DebugInfo.getWhereWeWereCalledFrom() + "\n");
   
    for(ImportStatement i: staticImports.values()){
      sb.append(format.sprintf("import " + i.className + ";") + "// " + i.reason + "\n");     
    }
   
    return(sb.toString());
  }
 
View Full Code Here

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

   
    sb.append("// Generated from: " + DebugInfo.getWhereWeAreNow() + "\n");
    sb.append("// " + DebugInfo.getWhereWeWereCalledFrom() + "\n");
   
    for(ImportStatement i: imports.values()){
      sb.append(format.sprintf("import " + i.className + ";") + "// " + i.reason + "\n");     
    }
   
    return(sb.toString());
  }
 
View Full Code Here

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

     
      PrintfFormat format = new PrintfFormat("%-" + longest + "s");
     
      for(SchemaDefinition sd: allSchemasByID.values()){
        int end = sd.getSchemaBaseID() + sd.getSchemaIDRange();
        System.out.println(format.sprintf(sd.getName()) + " " + sd.getSchemaBaseID() " - " + end);
       
        SchemaPage.dumpSchemaPage(outdir, manager, sd, summarizer);
      }
           
    } catch (ResultException e) {
View Full Code Here

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

     
      PrintfFormat format = new PrintfFormat("%-" + longest + "s");
     
      for(SchemaDefinition sd: allSchemasByID.values()){
        int end = sd.getSchemaBaseID() + sd.getSchemaIDRange();
        System.out.println(format.sprintf(sd.getName()) + " " + sd.getSchemaBaseID() " - " + end);
       
        SchemaPage.dumpSchemaPage(outdir, manager, sd, summarizer);
      }
           
    } catch (ResultException e) {
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.