| Package | Description |
|---|---|
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Field and Description |
|---|---|
HtmlContext |
Context.state
The state the text preceding the context point describes.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
Context.derive(HtmlContext state)
Returns a context that differs only in the state.
|
| Modifier and Type | Method and Description |
|---|---|
HtmlContext |
RawTextNode.getHtmlContext()
Gets the HTML source context (typically tag, attribute value, HTML PCDATA, or plain text) which
this node emits in.
|
HtmlContext |
MsgFallbackGroupNode.getHtmlContext()
Gets the HTML context (typically tag, attribute value, HTML PCDATA, or plain text) which this
node appears in.
|
HtmlContext |
PrintNode.getHtmlContext()
Gets the HTML source context (typically tag, attribute value, HTML PCDATA, or plain text) which
this node emits in.
|
static HtmlContext |
HtmlContext.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HtmlContext[] |
HtmlContext.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RawTextNode.setHtmlContext(HtmlContext value) |
void |
MsgFallbackGroupNode.setHtmlContext(HtmlContext value) |
void |
PrintNode.setHtmlContext(HtmlContext value) |
| Constructor and Description |
|---|
RawTextNode(int id,
String rawText,
SourceLocation sourceLocation,
HtmlContext htmlContext) |