Modifier and Type | Method and Description |
---|---|
EscapeMode |
JSilverOptions.getEscapeMode() |
EscapeMode |
JSilver.getEscapeMode(Data data)
Determine the escaping to apply based on Config variables in HDF.
|
Modifier and Type | Method and Description |
---|---|
JSilverOptions |
JSilverOptions.setEscapeMode(EscapeMode escapeMode)
Escape any template being rendered with the given escaping mode.
|
Modifier and Type | Method and Description |
---|---|
static EscapeMode |
EscapeMode.combineModes(EscapeMode left,
EscapeMode right)
Computes the EscapeMode of the result of concatenating two values.
|
static EscapeMode |
EscapeMode.computeEscapeMode(String escapeCmd)
Calls
computeEscapeMode(String, boolean) with doAutoEscape = false . |
static EscapeMode |
EscapeMode.computeEscapeMode(String escapeCmd,
boolean doAutoEscape)
This function maps the type of escaping requested (escapeCmd) to the appropriate EscapeMode.
|
EscapeMode |
AutoEscapeContext.AutoEscapeState.getEscapeMode() |
EscapeMode |
AutoEscapeContext.getEscapeModeForCurrentState()
Returns the EscapeMode which will bring AutoEscapeContext into this state.
|
static EscapeMode |
EscapeMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EscapeMode[] |
EscapeMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static EscapeMode |
EscapeMode.combineModes(EscapeMode left,
EscapeMode right)
Computes the EscapeMode of the result of concatenating two values.
|
Constructor and Description |
---|
AutoEscapeContext(EscapeMode mode)
Create a new context in the state represented by mode.
|
AutoEscapeContext(EscapeMode mode,
String resourceName)
Create a new context in the state represented by mode.
|
Modifier and Type | Method and Description |
---|---|
EscapeMode |
BaseCompiledTemplate.getEscapeMode() |
EscapeMode |
BaseCompiledTemplate.CompiledMacro.getEscapeMode() |
Modifier and Type | Method and Description |
---|---|
Template |
TemplateCompiler.createTemp(String name,
String content,
EscapeMode escapeMode) |
Template |
TemplateCompiler.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
void |
BaseCompiledTemplate.setEscapeMode(EscapeMode mode)
Sets the EscapeMode in which this template was generated.
|
Modifier and Type | Field and Description |
---|---|
protected EscapeMode |
AbstractData.escapeMode |
Modifier and Type | Method and Description |
---|---|
EscapeMode |
DefaultDataContext.findVariableEscapeMode(String name) |
EscapeMode |
DataContext.findVariableEscapeMode(String name)
Searches the variable map stack for the specified variable name, and returns its
EscapeMode . |
EscapeMode |
AbstractData.getEscapeMode() |
EscapeMode |
DelegatedData.getEscapeMode() |
EscapeMode |
Data.getEscapeMode()
Indicates the escaping, if any that was applied to this HDF node.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultDataContext.createLocalVariableByValue(String name,
String value,
EscapeMode mode) |
void |
DataContext.createLocalVariableByValue(String name,
String value,
EscapeMode mode)
Creates and sets a local variable in the current scope equal to the given value.
|
void |
AbstractData.setEscapeMode(EscapeMode mode) |
void |
UnmodifiableData.setEscapeMode(EscapeMode mode) |
void |
DelegatedData.setEscapeMode(EscapeMode mode) |
void |
Data.setEscapeMode(EscapeMode mode)
Set the escaping that was applied to this HDF node.
|
Modifier and Type | Method and Description |
---|---|
EscapeMode |
InterpretedTemplate.getEscapeMode() |
EscapeMode |
InterpretedMacro.getEscapeMode() |
Modifier and Type | Method and Description |
---|---|
TemplateSyntaxTree |
LoadingTemplateFactory.createTemp(String content,
EscapeMode escapeMode) |
TemplateSyntaxTree |
OptimizingTemplateFactory.createTemp(String content,
EscapeMode escapeMode) |
TemplateSyntaxTree |
TemplateFactory.createTemp(String content,
EscapeMode escapeMode)
Create a temporary template from content.
|
Template |
InterpretedTemplateLoader.createTemp(String name,
String content,
EscapeMode escapingMode) |
TemplateSyntaxTree |
LoadingTemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
TemplateSyntaxTree |
OptimizingTemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
TemplateSyntaxTree |
TemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from the source.
|
Template |
InterpretedTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Constructor and Description |
---|
InterpretedTemplate(TemplateLoader loader,
TemplateSyntaxTree syntaxTree,
String name,
FunctionExecutor functionExecutor,
AutoEscapeOptions autoEscapeOptions,
EscapeMode mode) |
Modifier and Type | Method and Description |
---|---|
EscapeMode |
PrecompiledTemplateMapKey.getEscapeMode()
Return the escape mode used for this template.
|
Modifier and Type | Method and Description |
---|---|
Template |
PrecompiledTemplateLoader.createTemp(String name,
String content,
EscapeMode escapeMode)
We don't cache temporary templates here so we just call delegate TemplateLoader.
|
Template |
PrecompiledTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Constructor and Description |
---|
PrecompiledTemplateMapKey(Object templateName,
EscapeMode escapeMode) |
Modifier and Type | Method and Description |
---|---|
TemplateSyntaxTree |
SyntaxTreeBuilder.parse(Reader input,
String templateName,
EscapeMode escapeMode) |
protected void |
SyntaxTreeBuilder.process(Start root,
EscapeMode escapeMode,
String templateName)
Perform any additional processing on the tree.
|
Constructor and Description |
---|
AutoEscaper(EscapeMode mode)
Create an AutoEscaper, which will apply the specified escaping mode.
|
AutoEscaper(EscapeMode mode,
String templateName)
Create an AutoEscaper, which will apply the specified escaping mode.
|
Modifier and Type | Method and Description |
---|---|
EscapeMode |
DefaultRenderingContext.getAutoEscapeMode() |
EscapeMode |
RenderingContext.getAutoEscapeMode()
Read the currently set auto escape mode.
|
EscapeMode |
Template.getEscapeMode()
Return the EscapeMode in which this template was generated.
|
Modifier and Type | Method and Description |
---|---|
Template |
TemplateLoader.createTemp(String name,
String content,
EscapeMode escapeMode)
Create a temporary template from content, with the provided escape mode.
|
Template |
TemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from a named resource, with the provided escape mode.
|
void |
DefaultRenderingContext.pushAutoEscapeMode(EscapeMode mode) |
void |
RenderingContext.pushAutoEscapeMode(EscapeMode mode)
Push a new auto escaping mode onto the context.
|
Modifier and Type | Method and Description |
---|---|
EscapeMode |
Value.getEscapeMode()
Indicates the escaping that was applied to the expression represented by this value.
|
EscapeMode |
VariableValue.getEscapeMode() |
Modifier and Type | Method and Description |
---|---|
static Value |
Value.literalValue(boolean value,
EscapeMode mode,
boolean partiallyEscaped)
Create a literal value using a boolean.
|
static Value |
Value.literalValue(int value,
EscapeMode mode,
boolean partiallyEscaped)
Create a literal value using an int.
|
static Value |
Value.literalValue(String value,
EscapeMode mode,
boolean partiallyEscaped)
Create a literal value using a String.
|
Constructor and Description |
---|
Value(EscapeMode escapeMode,
boolean partiallyEscaped) |
Copyright © 2010–2018 Google. All rights reserved.