@Override public Integer quotedString( final SExpressionQuotedStringType qs) throws IOException { w.print('"'); w.print(qs.getText()); w.print('"'); return Integer.valueOf(0); }
@Override public Unit quotedString(final SExpressionQuotedStringType e) throws IOException { JSXPrettyPrinterMarkupStyle.this.layout.print( String.format("\"%s\"", e.getText())); return Unit.unit(); }
@Override public Unit quotedString(final SExpressionQuotedStringType e) throws IOException { JSXPrettyPrinterCodeStyle.this.layout.print( String.format("\"%s\"", e.getText())); return Unit.unit(); }
/** * @param e The expression * * @return A parser exception * * @see JPRAParseErrorCode#EXPECTED_SYMBOL_OR_LIST_GOT_QUOTED_STRING */ public static JPRACompilerParseException expectedSymbolOrListGotQuotedString( final SExpressionQuotedStringType e) { final StringBuilder mb = new StringBuilder(256); mb.append(" Expected: A list or a symbol"); mb.append(System.lineSeparator()); mb.append(" Got: A quoted string '"); mb.append(e.getText()); mb.append("'"); final String m = NullCheck.notNull(mb.toString()); return new JPRACompilerParseException( e.getLexicalInformation().map(ImmutableLexicalPosition::newFrom), JPRAParseErrorCode.EXPECTED_SYMBOL_OR_LIST_GOT_QUOTED_STRING, m); }
/** * @param e The expression * * @return A parser exception * * @see JPRAParseErrorCode#EXPECTED_LIST_GOT_QUOTED_STRING */ public static JPRACompilerParseException expectedListGotQuotedString( final SExpressionQuotedStringType e) { final StringBuilder mb = new StringBuilder(256); mb.append(" Expected: A list"); mb.append(System.lineSeparator()); mb.append(" Got: A quoted string '"); mb.append(e.getText()); mb.append("'"); final String m = NullCheck.notNull(mb.toString()); return new JPRACompilerParseException( e.getLexicalInformation().map(ImmutableLexicalPosition::newFrom), JPRAParseErrorCode.EXPECTED_LIST_GOT_QUOTED_STRING, m); }
/** * @param e The expression * * @return A parser exception * * @see JPRAParseErrorCode#EXPECTED_SYMBOL_GOT_QUOTED_STRING */ public static JPRACompilerParseException expectedSymbolGotQuotedString( final SExpressionQuotedStringType e) { final StringBuilder mb = new StringBuilder(256); mb.append(" Expected: A symbol"); mb.append(System.lineSeparator()); mb.append(" Got: A quoted string '"); mb.append(e.getText()); mb.append("'"); final String m = NullCheck.notNull(mb.toString()); return new JPRACompilerParseException( e.getLexicalInformation().map(ImmutableLexicalPosition::newFrom), JPRAParseErrorCode.EXPECTED_SYMBOL_GOT_QUOTED_STRING, m); }
JPRAParser.getExpressionLexical(le), size, qe.getText());