@Override public String toString() { return SimpleFormat.format("<%s - %s>", start, end); } }
@Override public String toString() { return SimpleFormat.format("IN: %s OUT: %s", in, out); }
@Override public String toString() { return SimpleFormat.format(MESSAGE_REPRESENTATION_FORMAT, name); }
@Override public String toString() { return SimpleFormat.format("DependencyInfo(relativePath='%1$s', path='%2$s', " + "provides=%3$s, requires=%4$s, loadFlags=%5$s)", srcPathRelativeToClosure, pathOfDefiningFile, provides, requires, loadFlags); }
@Override public String toString() { return SimpleFormat.format("<%s - %s>", start, end); } }
@Override public String toString() { return SimpleFormat.format("IN: %s OUT: %s", in, out); }
private InvalidOptionsException(String message, Object... args) { super(SimpleFormat.format(message, args)); } }
private InvalidOptionsException(String message, Object... args) { super(SimpleFormat.format(message, args)); } }
@Override public String toString() { return SimpleFormat.format("IN: %s OUT: %s", in, out); }
@Override public String toString() { return SimpleFormat.format("IN: %s OUT: %s", in, out); }
@Override public String toString() { return SimpleFormat.format(MESSAGE_REPRESENTATION_FORMAT, name); }
/** * @return The PolymerElement type string for a class definition. */ public static String getPolymerElementType(final PolymerClassDefinition cls) { String nativeElementName = cls.nativeBaseElement == null ? "" : CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, cls.nativeBaseElement); return SimpleFormat.format("Polymer%sElement", nativeElementName); } }
/** * @return The PolymerElement type string for a class definition. */ public static String getPolymerElementType(final PolymerClassDefinition cls) { String nativeElementName = cls.nativeBaseElement == null ? "" : CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, cls.nativeBaseElement); return SimpleFormat.format("Polymer%sElement", nativeElementName); } }
public final void reportError(SourcePosition location, String format, Object... arguments) { hadError = true; String message = SimpleFormat.format(format, arguments); reportError(location, message); }
@Override public String toString() { return SimpleFormat.format("%s(%d, %d)", shortSourceName(), line + 1, column + 1); }
@Override public String toString() { return SimpleFormat.format("%s(%d, %d)", shortSourceName(), line + 1, column + 1); }
public static void dumpEntries(PrintStream out) { for (Entry entry : getEntries()) { out.println(SimpleFormat.format( "Time '%s'(%d): %fms", entry.name, entry.count, entry.elapsedTime / 1000.0)); } clearEntries(); } }
private String format(JSError message) { String description = message.description; String sourceName = message.sourceName; int lineNumber = message.lineNumber; Region sourceRegion = getSource().getSourceRegion(sourceName, lineNumber); String lineSource = null; if (sourceRegion != null) { lineSource = sourceRegion.getSourceExcerpt(); } return SimpleFormat.format("%s at %s line %s %s", description, (Strings.isNullOrEmpty(sourceName) ? "(unknown source)" : sourceName), ((lineNumber < 0) ? String.valueOf(lineNumber) : "(unknown line)"), ((lineSource != null) ? ":\n\n" + lineSource : ".")); } }
private Node createIncrDecrNode(int type, boolean postfix, Node operand) { if (!operand.isValidAssignmentTarget()) { errorReporter.error( SimpleFormat.format("Invalid %s %s operand.", (postfix ? "postfix" : "prefix"), (type == Token.INC ? "increment" : "decrement")), sourceName, operand.getLineno(), operand.getCharno()); } Node node = newNode(type, operand); node.putBooleanProp(Node.INCRDECR_PROP, postfix); return node; }
private Node createUpdateNode(Token type, boolean postfix, Node operand) { Node assignTarget = operand.isCast() ? operand.getFirstChild() : operand; if (!assignTarget.isValidAssignmentTarget()) { errorReporter.error( SimpleFormat.format("Invalid %s %s operand.", (postfix ? "postfix" : "prefix"), (type == Token.INC ? "increment" : "decrement")), sourceName, operand.getLineno(), operand.getCharno()); } Node node = newNode(type, operand); node.putBooleanProp(Node.INCRDECR_PROP, postfix); return node; }