| Package | Description |
|---|---|
| com.google.template.soy.basicdirectives |
Plugin package for basic print directives.
|
| com.google.template.soy.bididirectives |
Plugin package of print directives for bidi (bidirectional text).
|
| com.google.template.soy.coredirectives |
Plugin package for core print directives.
|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.data.internal | |
| com.google.template.soy.data.restricted | |
| com.google.template.soy.jbcsrc.api | |
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.shared.internal |
Internal shared class among multiple backends.
|
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.changeNewlineToBrStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.insertWordBreaksStreaming(LoggingAdvisingAppendable appendable,
int maxCharsBetweenWordBreaks) |
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.truncateStreaming(LoggingAdvisingAppendable appendable,
int maxLength,
boolean addEllipsis) |
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.changeNewlineToBrStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.insertWordBreaksStreaming(LoggingAdvisingAppendable appendable,
int maxCharsBetweenWordBreaks) |
static LoggingAdvisingAppendable |
BasicDirectivesRuntime.truncateStreaming(LoggingAdvisingAppendable appendable,
int maxLength,
boolean addEllipsis) |
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
BidiDirectivesRuntime.bidiSpanWrapStreaming(LoggingAdvisingAppendable delegateAppendable,
BidiGlobalDir dir) |
static LoggingAdvisingAppendable |
BidiDirectivesRuntime.bidiUnicodeWrapStreaming(LoggingAdvisingAppendable delegateAppendable,
BidiGlobalDir dir) |
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
BidiDirectivesRuntime.bidiSpanWrapStreaming(LoggingAdvisingAppendable delegateAppendable,
BidiGlobalDir dir) |
static LoggingAdvisingAppendable |
BidiDirectivesRuntime.bidiUnicodeWrapStreaming(LoggingAdvisingAppendable delegateAppendable,
BidiGlobalDir dir) |
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
CoreDirectivesRuntime.streamingEscapeHtml(LoggingAdvisingAppendable delegate) |
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
CoreDirectivesRuntime.streamingEscapeHtml(LoggingAdvisingAppendable delegate) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLoggingAdvisingAppendable
A
LoggingAdvisingAppendable that implements logonly behavior in response to log
statements |
class |
ForwardingLoggingAdvisingAppendable
A simple forwarding implementation, forwards all calls to a delegate.
|
static class |
LoggingAdvisingAppendable.BufferingAppendable
A
LoggingAdvisingAppendable that renders to a string builder. |
| Modifier and Type | Field and Description |
|---|---|
protected LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.delegate |
| Modifier and Type | Method and Description |
|---|---|
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.append(char c) |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.append(char c) |
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.append(CharSequence csq) |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.append(CharSequence csq) |
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.append(CharSequence csq,
int start,
int end) |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.append(CharSequence csq,
int start,
int end) |
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall,
com.google.common.collect.ImmutableList<com.google.common.base.Function<String,String>> escapers) |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall,
com.google.common.collect.ImmutableList<com.google.common.base.Function<String,String>> escapers)
Called whenever a logging function is being rendered.
|
static LoggingAdvisingAppendable |
LoggingAdvisingAppendable.delegating(Appendable appendable)
Returns a
LoggingAdvisingAppendable that delegates to an Appendable |
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.enterLoggableElement(LogStatement statement) |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.enterLoggableElement(LogStatement statement)
Called whenever a loggable element is entered.
|
LoggingAdvisingAppendable |
ForwardingLoggingAdvisingAppendable.exitLoggableElement() |
abstract LoggingAdvisingAppendable |
LoggingAdvisingAppendable.exitLoggableElement()
Called whenever a loggable element is exited.
|
LoggingAdvisingAppendable |
LoggingAdvisingAppendable.setSanitizedContentDirectionality(Dir contentDir)
Marks the directionality of this appendable.
|
LoggingAdvisingAppendable |
LoggingAdvisingAppendable.setSanitizedContentKind(SanitizedContent.ContentKind kind)
Marks the content kind of this appendable.
|
static LoggingAdvisingAppendable |
LoggingAdvisingAppendable.stringCoercing(LoggingAdvisingAppendable delegate)
An implementation that only delegates
append(java.lang.CharSequence) calls. |
| Modifier and Type | Method and Description |
|---|---|
void |
SoyMapData.render(LoggingAdvisingAppendable appendable) |
void |
SoyListData.render(LoggingAdvisingAppendable appendable) |
void |
SoyValue.render(LoggingAdvisingAppendable appendable)
Renders this value to the given appendable.
|
void |
SoyProtoValueImpl.render(LoggingAdvisingAppendable appendable) |
RenderResult |
SoyAbstractCachingValueProvider.renderAndResolve(LoggingAdvisingAppendable appendable,
boolean isLast) |
RenderResult |
SoyAbstractValue.renderAndResolve(LoggingAdvisingAppendable appendable,
boolean isLast) |
RenderResult |
SoyValueProvider.renderAndResolve(LoggingAdvisingAppendable appendable,
boolean isLast)
Renders this value to the given
LoggingAdvisingAppendable,
possibly partially. |
void |
LoggingAdvisingAppendable.BufferingAppendable.replayOn(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
LoggingAdvisingAppendable.stringCoercing(LoggingAdvisingAppendable delegate)
An implementation that only delegates
append(java.lang.CharSequence) calls. |
| Constructor and Description |
|---|
ForwardingLoggingAdvisingAppendable(LoggingAdvisingAppendable delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
DictImpl.render(LoggingAdvisingAppendable appendable) |
void |
ParamStore.render(LoggingAdvisingAppendable appendable) |
void |
SoyMapImpl.render(LoggingAdvisingAppendable appendable) |
| Modifier and Type | Method and Description |
|---|---|
void |
PrimitiveData.render(LoggingAdvisingAppendable appendable) |
| Modifier and Type | Class and Description |
|---|---|
class |
OutputAppendable
The outermost logger used in rendering.
|
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
JbcSrcRuntime.logger() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RenderResult |
DetachableContentProvider.doRender(LoggingAdvisingAppendable appendable)
Overridden by generated subclasses to implement lazy detachable resolution.
|
static com.google.template.soy.jbcsrc.runtime.JbcSrcRuntime.ClosePropagatingAppendable |
JbcSrcRuntime.propagateClose(LoggingAdvisingAppendable delegate,
com.google.common.collect.ImmutableList<Closeable> closeables)
Returns a
LoggingAdvisingAppendable that:
Forwards all LoggingAdvisingAppendable methods to delegate
Implements Closeable and forwards all Closeable.close() calls to the given
closeables in order. |
RenderResult |
DetachableContentProvider.renderAndResolve(LoggingAdvisingAppendable appendable,
boolean isLast) |
RenderResult |
DetachableSoyValueProvider.renderAndResolve(LoggingAdvisingAppendable appendable,
boolean isLast) |
| Modifier and Type | Method and Description |
|---|---|
RenderResult |
CompiledTemplate.render(LoggingAdvisingAppendable appendable,
RenderContext context)
Renders the template.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStreamingHtmlEscaper
A delegating
LoggingAdvisingAppendable that can detect when the appendable is in an html
context or not. |
class |
StreamingEscaper
A StreamingEscaper is a decorator for a
LoggingAdvisingAppendable that applies escaping
logic to untrusted content. |
| Modifier and Type | Field and Description |
|---|---|
protected LoggingAdvisingAppendable |
AbstractStreamingHtmlEscaper.delegate |
| Modifier and Type | Method and Description |
|---|---|
LoggingAdvisingAppendable |
AbstractStreamingHtmlEscaper.append(char c) |
LoggingAdvisingAppendable |
StreamingEscaper.append(char c) |
LoggingAdvisingAppendable |
AbstractStreamingHtmlEscaper.append(CharSequence csq) |
LoggingAdvisingAppendable |
StreamingEscaper.append(CharSequence csq) |
LoggingAdvisingAppendable |
AbstractStreamingHtmlEscaper.append(CharSequence csq,
int start,
int end) |
LoggingAdvisingAppendable |
StreamingEscaper.append(CharSequence csq,
int start,
int end) |
LoggingAdvisingAppendable |
StreamingEscaper.appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall,
com.google.common.collect.ImmutableList<com.google.common.base.Function<String,String>> escapers) |
static LoggingAdvisingAppendable |
Sanitizers.blessStringAsTrustedResourceUrlForLegacyStreaming(LoggingAdvisingAppendable appendable)
For any resource string/variable which has |blessStringAsTrustedResuorceUrlForLegacy directive
apply a no-op escaping directive
|
static LoggingAdvisingAppendable |
Sanitizers.cleanHtmlStreaming(LoggingAdvisingAppendable delegate,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Streaming version of
|cleanHtml. |
LoggingAdvisingAppendable |
StreamingEscaper.enterLoggableElement(LogStatement statement) |
static LoggingAdvisingAppendable |
Sanitizers.escapeCssStringStreaming(LoggingAdvisingAppendable delegate)
Converts the input to the body of a CSS string literal.
|
static LoggingAdvisingAppendable |
Sanitizers.escapeHtmlRcdataStreaming(LoggingAdvisingAppendable delegate)
Streaming version of
|escapeHtmlRcData. |
static LoggingAdvisingAppendable |
Sanitizers.escapeJsRegexStreaming(LoggingAdvisingAppendable delegate)
Converts the input to the body of a JavaScript regular expression literal.
|
static LoggingAdvisingAppendable |
Sanitizers.escapeJsStringStreaming(LoggingAdvisingAppendable appendable) |
LoggingAdvisingAppendable |
StreamingEscaper.exitLoggableElement() |
static LoggingAdvisingAppendable |
Sanitizers.filterHtmlAttributesStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
Sanitizers.filterNoAutoescapeStreaming(LoggingAdvisingAppendable appendable)
Applies the |noAutoescape directive and filters explicitly tainted content.
|
static LoggingAdvisingAppendable |
Sanitizers.normalizeHtmlStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
Sanitizers.normalizeUriStreaming(LoggingAdvisingAppendable value)
Converts a piece of URI content to a piece of URI content that can be safely embedded in an
HTML attribute by percent encoding.
|
| Modifier and Type | Method and Description |
|---|---|
static LoggingAdvisingAppendable |
Sanitizers.blessStringAsTrustedResourceUrlForLegacyStreaming(LoggingAdvisingAppendable appendable)
For any resource string/variable which has |blessStringAsTrustedResuorceUrlForLegacy directive
apply a no-op escaping directive
|
static LoggingAdvisingAppendable |
Sanitizers.cleanHtmlStreaming(LoggingAdvisingAppendable delegate,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Streaming version of
|cleanHtml. |
static StreamingEscaper |
StreamingEscaper.create(LoggingAdvisingAppendable delegate,
EscapingConventions.CrossLanguageStringXform transform)
Creates a streaming escaper, or returns the delegate if it is already escaping with the same
settings.
|
static LoggingAdvisingAppendable |
Sanitizers.escapeCssStringStreaming(LoggingAdvisingAppendable delegate)
Converts the input to the body of a CSS string literal.
|
static LoggingAdvisingAppendable |
Sanitizers.escapeHtmlRcdataStreaming(LoggingAdvisingAppendable delegate)
Streaming version of
|escapeHtmlRcData. |
static LoggingAdvisingAppendable |
Sanitizers.escapeJsRegexStreaming(LoggingAdvisingAppendable delegate)
Converts the input to the body of a JavaScript regular expression literal.
|
static LoggingAdvisingAppendable |
Sanitizers.escapeJsStringStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
Sanitizers.filterHtmlAttributesStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
Sanitizers.filterNoAutoescapeStreaming(LoggingAdvisingAppendable appendable)
Applies the |noAutoescape directive and filters explicitly tainted content.
|
static LoggingAdvisingAppendable |
Sanitizers.normalizeHtmlStreaming(LoggingAdvisingAppendable appendable) |
static LoggingAdvisingAppendable |
Sanitizers.normalizeUriStreaming(LoggingAdvisingAppendable value)
Converts a piece of URI content to a piece of URI content that can be safely embedded in an
HTML attribute by percent encoding.
|
| Constructor and Description |
|---|
AbstractStreamingHtmlEscaper(LoggingAdvisingAppendable delegate,
Appendable escapingAppendable) |