Examples of format()


Examples of com.facebook.presto.jdbc.internal.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor.format()

    public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
            throws JsonMappingException
    {
        JsonStringFormatVisitor v2 = (visitor == null) ? null : visitor.expectStringFormat(typeHint);
        if (v2 != null) {
            v2.format(JsonValueFormat.DATE_TIME);
        }
    }
}
View Full Code Here

Examples of com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor.format()

    public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
        throws JsonMappingException
    {
        JsonStringFormatVisitor v2 = (visitor == null) ? null : visitor.expectStringFormat(typeHint);
        if (v2 != null) {
            v2.format(JsonValueFormat.DATE_TIME);
        }
    }
}
View Full Code Here

Examples of com.foundationdb.server.explain.format.DefaultFormatter.format()

    protected String withIndentedExplain(StringBuilder str, ExplainContext context, String defaultSchemaName, DefaultFormatter.LevelOfDetail levelOfDetail) {
        if (context == null)
            context = new ExplainContext(); // Empty
        DefaultFormatter f = new DefaultFormatter(defaultSchemaName, levelOfDetail);
        for (String operator : f.format(plannable.getExplainer(context))) {
            str.append("\n  ");
            str.append(operator);
        }
        return str.toString();
    }
View Full Code Here

Examples of com.foundationdb.server.explain.format.JsonFormatter.format()

            explainable = result.getPlannable();
        }
        List<String> explain;
        if (compiler instanceof PostgresJsonCompiler) {
            JsonFormatter f = new JsonFormatter();
            explain = Collections.singletonList(f.format(explainable.getExplainer(context.getExplainContext())));
        }
        else {
            DefaultFormatter.LevelOfDetail detail;
            switch (explainStmt.getDetail()) {
            case BRIEF:
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.format()

                first = false;
            } else {
                buffer.append(", ");
            }
            if (type != null) {
                type.format(evaluation, appender);
            } else {
                buffer.append("NULL");
            }
        }
        buffer.append(')');
View Full Code Here

Examples of com.gitblit.utils.ByteFormat.format()

            // strip trailing slash
            basePath = basePath.substring(0, basePath.length() - 1);
          }
          for (PathModel entry : pathEntries) {
            response.getWriter().append(MessageFormat.format(pattern, basePath, entry.name,
                JGitUtils.getPermissionsFromMode(entry.mode), byteFormat.format(entry.size)));
          }
          response.getWriter().append("</tbody>");
          response.getWriter().append("</table>");
        }
        return;
View Full Code Here

Examples of com.github.abrarsyed.jastyle.ASFormatter.format()

            text = fixer.fixOGL(text);

            getLogger().debug("formatting source");
            reader = new StringReader(text);
            writer = new StringWriter();
            formatter.format(reader, writer);
            reader.close();
            writer.flush();
            writer.close();
            text = writer.toString();
           
View Full Code Here

Examples of com.google.caja.parser.css.CssTree.format()

    mc.relevantKeys = new LinkedHashSet<SyntheticAttributeKey<?>>(
        Arrays.<SyntheticAttributeKey<?>>asList(
            CssValidator.CSS_PROPERTY_PART_TYPE,
            CssValidator.CSS_PROPERTY_PART));
    StringBuilder sb = new StringBuilder();
    cssTree.format(mc, sb);
    if (golden != null) {
      assertEquals(css, golden.trim(), sb.toString().trim());
    }

    List<String> actualWarnings = Lists.newArrayList();
View Full Code Here

Examples of com.google.caja.reporting.Message.format()

      }
    }
    if (closest == null) {
      fail("No message found like " + description);
    } else {
      fail("Failed to find message.  Closest match was " + closest.format(mc)
           + " with parts " + closest.getMessageParts());
    }
  }

  protected void assertNoMessage(MessageTypeInt type) {
View Full Code Here

Examples of com.google.caja.reporting.MessagePart.format()

        StringBuilder aBuf = new StringBuilder(), bBuf = new StringBuilder();
        MessageContext mc = new MessageContext();
        try {
          a0.format(mc, aBuf);
          b0.format(mc, bBuf);
        } catch (IOException ex) {
          throw new RuntimeException(ex);
        }
        return aBuf.toString().compareTo(bBuf.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.