@Override public String evalLoggingFunction(LoggingFunctionInvocation value) { return value.placeholderValue(); } };
@Override public String evalLoggingFunction(LoggingFunctionInvocation value) { return value.placeholderValue(); } };
@Override protected void doAppendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { String val = funCall.placeholderValue(); for (Function<String, String> directive : escapers) { val = directive.apply(val); } System.out.append(val); } };
@Override protected void doAppendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { String val = funCall.placeholderValue(); for (Function<String, String> directive : escapers) { val = directive.apply(val); } System.out.append(val); } };
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { escapedAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) { buffer.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override protected void doAppendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { escapePlaceholder(funCall.placeholderValue(), escapers); }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { activeAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) { buffer.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { escapedAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { activeAppendable.append(escapePlaceholder(funCall.placeholderValue(), escapers)); return this; }
@Override protected void doAppendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { escapePlaceholder(funCall.placeholderValue(), escapers); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof LoggingFunctionInvocation) { LoggingFunctionInvocation that = (LoggingFunctionInvocation) o; return (this.functionName.equals(that.functionName())) && (this.placeholderValue.equals(that.placeholderValue())) && (this.args.equals(that.args())); } return false; }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { return append(escapePlaceholder(funCall.placeholderValue(), 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; }
private static void appendCommandsToBuilder(List<Object> commands, StringBuilder builder) { for (Object o : commands) { if (o instanceof String) { builder.append((String) o); } else if (o instanceof LoggingFunctionCommand) { LoggingFunctionCommand command = (LoggingFunctionCommand) o; builder.append(escapePlaceholder(command.fn().placeholderValue(), command.escapers())); } } }
@Override public LoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { return append(escapePlaceholder(funCall.placeholderValue(), escapers)); } };
private static void appendCommandsToBuilder(List<Object> commands, StringBuilder builder) { for (Object o : commands) { if (o instanceof String) { builder.append((String) o); } else if (o instanceof LoggingFunctionCommand) { LoggingFunctionCommand command = (LoggingFunctionCommand) o; builder.append(escapePlaceholder(command.fn().placeholderValue(), command.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; }
@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; }