Examples of printf()


Examples of com.github.fge.msgsimple.bundle.MessageBundle.printf()

            fail("No exception thrown!");
        } catch (ProcessingException e) {
            final URI uri = URI.create("#/oneOf/1");
            final ProcessingMessage message = e.getProcessingMessage();
            final String expectedMessage
                = bundle.printf("err.common.validationLoop", uri, "");
            assertMessage(message)
                .hasMessage(expectedMessage)
                .hasField("alreadyVisited", uri)
                .hasField("instancePointer", JsonPointer.empty().toString())
                .hasField("validationPath",
View Full Code Here

Examples of com.oracle.truffle.r.runtime.RContext.ConsoleHandler.printf()

        @SlowPath
        private static void doBrowser(MaterializedFrame frame) {
            ConsoleHandler ch = RContext.getInstance().getConsoleHandler();
            REnvironment callerEnv = REnvironment.frameToEnvironment(frame.materialize());
            ch.printf("Called from: %s%n", callerEnv == REnvironment.globalEnv() ? "top level" : RArguments.getFunction(frame).getTarget());
            String savedPrompt = ch.getPrompt();
            ch.setPrompt(browserPrompt());
            try {
                LW: while (true) {
                    String input = ch.readLine();
View Full Code Here

Examples of com.overzealous.remark.util.BlockWriter.printf()

    out.print(' ');
    out.print(converter.getInlineContent(this, node).replace("\n", " "));
    out.print(' ');
    StringUtils.multiply(out, '#', depth);
    if(converter.options.headerIds && node.hasAttr("id")) {
      out.printf("    {#%s}", node.attr("id"));
    }
    out.endBlock();
  }
}
View Full Code Here

Examples of haikuvm.pc.tools.haikuc.HaikuJava2C.printf()

            arrayh.printf("extern const class_t %s__class;\n", array);
            arrayh.close();
           
            PrintOnChange arrayc = new HaikuJava2C(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".c"));
            if (!singleFile) {
                arrayc.printf("#include \"haikuConfig.h\"\n");
                arrayc.printf("#include \"haikuJava.h\"\n");
            }

            arrayc.printf("\n");
            arrayc.printf("const class_t %s__class PROGMEM = {\n", array);
View Full Code Here

Examples of haikuvm.pc.tools.haikuc.HaikuJava2H.printf()

                    f.close();
                }
            }
        } else if (!CollectedIncludes.contains(inc)) {
            PrintOnChange arrayh = new HaikuJava2H(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".h"));
            arrayh.printf("extern const class_t %s__class;\n", array);
            arrayh.close();
           
            PrintOnChange arrayc = new HaikuJava2C(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".c"));
            if (!singleFile) {
                arrayc.printf("#include \"haikuConfig.h\"\n");
View Full Code Here

Examples of haikuvm.pc.tools.haikuc.PrintOnChange.printf()

                    f.close();
                }
            }
        } else if (!CollectedIncludes.contains(inc)) {
            PrintOnChange arrayh = new HaikuJava2H(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".h"));
            arrayh.printf("extern const class_t %s__class;\n", array);
            arrayh.close();
           
            PrintOnChange arrayc = new HaikuJava2C(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".c"));
            if (!singleFile) {
                arrayc.printf("#include \"haikuConfig.h\"\n");
View Full Code Here

Examples of java.io.Console.printf()

    }

    public static void main(String[] args) {
        Console con = System.console();
        FootballManager manager = new FootballManager(System.console());
        con.printf(initialPrompt);

        while (true) {
            String action = con.readLine(">");
            if ("at".equals(action)) {
                manager.addTeam();
View Full Code Here

Examples of java.io.PrintStream.printf()

            ((LogService) logService).log(level, message, t);
        }
        else
        {
            PrintStream out = (level <= LogService.LOG_ERROR) ? System.err : System.out;
            out.printf("%s: %s (%d): %s%n", toLevelString(level), context.getBundle().getSymbolicName(), context
                .getBundle().getBundleId(), message);
            if (t != null)
            {
                t.printStackTrace(out);
            }
View Full Code Here

Examples of java.io.PrintWriter.printf()

            final PrintWriter pw = res.getWriter();
            final Feature[] features = getFeatures();
            if (features == null || features.length == 0) {
                pw.println("<p class='statline ui-state-highlight'>No Features currently defined</p>");
            } else {
                pw.printf("<p class='statline ui-state-highlight'>%d Feature(s) currently defined</p>%n",
                    features.length);
                pw.println("<table class='nicetable'>");
                pw.println("<tr><th>Name</th><th>Description</th><th>Enabled</th></tr>");
                final ExecutionContextImpl ctx = getCurrentExecutionContext();
                for (final Feature feature : features) {
View Full Code Here

Examples of java.io.PrintWriter.printf()

                    features.length);
                pw.println("<table class='nicetable'>");
                pw.println("<tr><th>Name</th><th>Description</th><th>Enabled</th></tr>");
                final ExecutionContextImpl ctx = getCurrentExecutionContext();
                for (final Feature feature : features) {
                    pw.printf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>%n", feature.getName(),
                        feature.getDescription(), ctx.isEnabled(feature));
                }
                pw.println("</table>");
            }
        } else {
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.