Home
last modified time | relevance | path

Searched refs:escapeMode (Results 1 – 23 of 23) sorted by relevance

/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateMapKey.java27 private final EscapeMode escapeMode; field in PrecompiledTemplateMapKey
30 public PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode) { in PrecompiledTemplateMapKey() argument
32 this.escapeMode = escapeMode; in PrecompiledTemplateMapKey()
34 if (escapeMode == EscapeMode.ESCAPE_NONE) { in PrecompiledTemplateMapKey()
37 toStringName = templateName.toString() + "_" + escapeMode.getEscapeCommand(); in PrecompiledTemplateMapKey()
52 return templateName.equals(that.templateName) && (escapeMode == that.escapeMode); in equals()
59 hash = 31 * hash + escapeMode.hashCode(); in hashCode()
76 return escapeMode; in getEscapeMode()
DPrecompiledTemplateLoader.java104 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load() argument
106 PrecompiledTemplateMapKey mapKey = new PrecompiledTemplateMapKey(key, escapeMode); in load()
111 return nextLoader.load(templateName, resourceLoader, escapeMode); in load()
119 public Template createTemp(String name, String content, EscapeMode escapeMode) { in createTemp() argument
120 return nextLoader.createTemp(name, content, escapeMode); in createTemp()
DPrecompiledTemplateMapFileReader.java117 EscapeMode escapeMode; in processTemplateMapFileLine() local
119 escapeMode = EscapeMode.ESCAPE_NONE; in processTemplateMapFileLine()
123 escapeMode = EscapeMode.computeEscapeMode(escapeCmd); in processTemplateMapFileLine()
129 PrecompiledTemplateMapKey key = new PrecompiledTemplateMapKey(templateName, escapeMode); in processTemplateMapFileLine()
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
DLoadingTemplateFactory.java37 EscapeMode escapeMode) { in find() argument
41 return syntaxTreeBuilder.parse(reader, templateName, escapeMode); in find()
50 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp() argument
51 return syntaxTreeBuilder.parse(new StringReader(content), "", escapeMode); in createTemp()
DOptimizingTemplateFactory.java58 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp() argument
59 TemplateSyntaxTree result = wrapped.createTemp(content, escapeMode); in createTemp()
66 EscapeMode escapeMode) { in find() argument
67 TemplateSyntaxTree result = wrapped.find(templateName, resourceLoader, escapeMode); in find()
DInterpretedTemplateLoader.java51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load() argument
53 resourceLoader, escapeMode), templateName, globalFunctionExecutor, autoEscapeOptions, in load()
54 escapeMode); in load()
DInterpretedTemplate.java44 private final EscapeMode escapeMode; field in InterpretedTemplate
53 this.escapeMode = mode; in InterpretedTemplate()
86 return escapeMode; in getEscapeMode()
DTemplateFactory.java39 …TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in find() argument
48 TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode); in createTemp() argument
/external/jsilver/src/com/google/clearsilver/jsilver/autoescape/
DEscapeMode.java57 EscapeMode escapeMode; in computeEscapeMode() local
71 escapeMode = ESCAPE_AUTO; in computeEscapeMode()
73 escapeMode = ESCAPE_NONE; in computeEscapeMode()
75 return escapeMode; in computeEscapeMode()
DAutoEscapeContext.java490 private final EscapeMode escapeMode; field in AutoEscapeContext.AutoEscapeState
494 this.escapeMode = mode; in AutoEscapeState()
502 return escapeMode; in getEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DSyntaxTreeBuilder.java88 protected void process(Start root, EscapeMode escapeMode, String templateName) { in process() argument
95 if (!escapeMode.equals(EscapeMode.ESCAPE_NONE)) { in process()
98 root.apply(new AutoEscaper(escapeMode, templateName)); in process()
106 public TemplateSyntaxTree parse(Reader input, String templateName, EscapeMode escapeMode) in parse() argument
113 process(root, escapeMode, templateName); in parse()
DAutoEscaper.java61 private final EscapeMode escapeMode; field in AutoEscaper
78 escapeMode = mode; in AutoEscaper()
100 if (!escapeMode.isAutoEscapingMode()) { in caseStart()
132 new AStringExpression(new TString("\"" + escapeMode.getEscapeCommand() + "\"")); in handleExplicitEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/
DJSilverOptions.java43 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE; field in JSilverOptions
202 return escapeMode; in getEscapeMode()
217 public JSilverOptions setEscapeMode(EscapeMode escapeMode) { in setEscapeMode() argument
218 this.escapeMode = escapeMode; in setEscapeMode()
DJSilver.java251 EscapeMode escapeMode = getEscapeMode(data); in render() local
252 render(templateLoader.load(templateName, resourceLoader, escapeMode), data, output, in render()
343 EscapeMode escapeMode = getEscapeMode(data); in renderFromContent() local
344 render(templateLoader.createTemp("[renderFromContent]", content, escapeMode), data, output); in renderFromContent()
370 EscapeMode escapeMode = in getEscapeMode() local
373 if (escapeMode.equals(EscapeMode.ESCAPE_NONE)) { in getEscapeMode()
374 escapeMode = options.getEscapeMode(); in getEscapeMode()
377 return escapeMode; in getEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DTemplateCompiler.java71 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load() argument
72 return compile(templateFactory.find(templateName, resourceLoader, escapeMode), templateName, in load()
73 escapeMode); in load()
77 public Template createTemp(String name, String content, EscapeMode escapeMode) { in createTemp() argument
78 return compile(templateFactory.createTemp(content, escapeMode), name, escapeMode); in createTemp()
DBaseCompiledTemplate.java49 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE; field in BaseCompiledTemplate
98 this.escapeMode = mode; in setEscapeMode()
103 return escapeMode; in getEscapeMode()
DEscapingEvaluator.java97 JavaExpression escapeMode = computeEscaping(expression, true); in computeForPropagateStatus() local
101 JavaExpression.infix(JavaExpression.Type.BOOLEAN, "!=", escapeMode, JavaExpression in computeForPropagateStatus()
/external/jsilver/src/com/google/clearsilver/jsilver/values/
DValue.java81 private final EscapeMode escapeMode; field in Value
83 public Value(EscapeMode escapeMode, boolean partiallyEscaped) { in Value() argument
84 this.escapeMode = escapeMode; in Value()
268 return escapeMode; in getEscapeMode()
DStringValue.java30 public StringValue(String value, EscapeMode escapeMode, boolean partiallyEscaped) { in StringValue() argument
31 super(escapeMode, partiallyEscaped); in StringValue()
DNumberValue.java30 public NumberValue(int value, EscapeMode escapeMode, boolean partiallyEscaped) { in NumberValue() argument
31 super(escapeMode, partiallyEscaped); in NumberValue()
DVariantValue.java32 VariantValue(EscapeMode escapeMode, boolean partiallyEscaped) { in VariantValue() argument
33 super(escapeMode, partiallyEscaped); in VariantValue()
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DAbstractData.java28 protected EscapeMode escapeMode = EscapeMode.ESCAPE_NONE; field in AbstractData
137 this.escapeMode = mode; in setEscapeMode()
142 return escapeMode; in getEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/template/
DTemplateLoader.java39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in load() argument
52 Template createTemp(String name, String content, EscapeMode escapeMode); in createTemp() argument