@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { delegate.appendLoggingFunctionInvocation(funCall, escapers); return this; } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { delegate.appendLoggingFunctionInvocation(funCall, escapers); return this; } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (isInHtml()) { delegate.appendLoggingFunctionInvocation(funCall, escapers); } else { throw new AssertionError( "Logging statements should've already been removed as they're only allowed in HTML"); } return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (isInHtml()) { delegate.appendLoggingFunctionInvocation(funCall, escapers); } else { throw new AssertionError( "Logging statements should've already been removed as they're only allowed in HTML"); } return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { delegate.appendLoggingFunctionInvocation(funCall, escapers); buffer.appendLoggingFunctionInvocation(funCall, escapers); return this; } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { delegate.appendLoggingFunctionInvocation(funCall, escapers); buffer.appendLoggingFunctionInvocation(funCall, escapers); return this; } }
LoggingAdvisingAppendable replayOn(LoggingAdvisingAppendable appendable) throws IOException { return appendable.appendLoggingFunctionInvocation(fn(), escapers()); } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (getSantizedContentKind() == ContentKind.ATTRIBUTES) { delegate.appendLoggingFunctionInvocation(funCall, escapers); // Reset lastChar to a dummy character so that we add a space after. lastChar = 'a'; } else { String placeholder = escapePlaceholder(funCall.placeholderValue(), escapers); activeAppendable.append(placeholder); if (placeholder.length() > 0) { lastChar = placeholder.charAt(placeholder.length() - 1); } } return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (isInHtml()) { delegate.appendLoggingFunctionInvocation(funCall, escapers); } else { activeAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); } return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (getSantizedContentKind() == ContentKind.ATTRIBUTES) { delegate.appendLoggingFunctionInvocation(funCall, escapers); // Reset lastChar to a dummy character so that we add a space after. lastChar = 'a'; } else { String placeholder = escapePlaceholder(funCall.placeholderValue(), escapers); activeAppendable.append(placeholder); if (placeholder.length() > 0) { lastChar = placeholder.charAt(placeholder.length() - 1); } } return this; }
LoggingAdvisingAppendable replayOn(LoggingAdvisingAppendable appendable) throws IOException { return appendable.appendLoggingFunctionInvocation(fn(), escapers()); } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (isInHtml()) { delegate.appendLoggingFunctionInvocation(funCall, escapers); } else { activeAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); } return this; }