Home
last modified time | relevance | path

Searched refs:EscapeMode (Results 1 – 25 of 39) sorted by relevance

12

/external/jsilver/src/com/google/clearsilver/jsilver/values/
DValue.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
32 private static final Map<EscapeMode, Value> EMPTY_PART_ESCAPED;
33 private static final Map<EscapeMode, Value> EMPTY_UNESCAPED;
34 private static final Map<EscapeMode, Value> ZERO_PART_ESCAPED;
35 private static final Map<EscapeMode, Value> ZERO_UNESCAPED;
36 private static final Map<EscapeMode, Value> ONE_PART_ESCAPED;
37 private static final Map<EscapeMode, Value> ONE_UNESCAPED;
44 EMPTY_PART_ESCAPED = new HashMap<EscapeMode, Value>(2);
45 EMPTY_PART_ESCAPED.put(EscapeMode.ESCAPE_NONE, in EMPTY_PART_ESCAPED.put()
46 new StringValue("", EscapeMode.ESCAPE_NONE, true)); in EMPTY_PART_ESCAPED.put()
[all …]
DVariableValue.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
47 super(EscapeMode.ESCAPE_NONE, false); in VariableValue()
83 public EscapeMode getEscapeMode() { in getEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/autoescape/
DEscapeMode.java21 public enum EscapeMode { enum
41 private EscapeMode(String escapeCmd, boolean autoEscaper) { in EscapeMode() method in EscapeMode
56 public static EscapeMode computeEscapeMode(String escapeCmd, boolean doAutoEscape) { in computeEscapeMode()
57 EscapeMode escapeMode; in computeEscapeMode()
62 for (EscapeMode e : EscapeMode.values()) { in computeEscapeMode()
86 public static EscapeMode computeEscapeMode(String escapeCmd) { in computeEscapeMode()
99 public static EscapeMode combineModes(EscapeMode left, EscapeMode right) { in combineModes()
DAutoEscapeContext.java19 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR;
20 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR_CSS;
21 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR_JS;
22 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR_UNQUOTED_JS;
23 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR_URI;
24 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_ATTR_URI_START;
25 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_HTML;
26 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_JS;
27 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_JS_UNQUOTED;
28 import static com.google.clearsilver.jsilver.autoescape.EscapeMode.ESCAPE_AUTO_STYLE;
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateMapKey.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
27 private final EscapeMode escapeMode;
30 public PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode) { in PrecompiledTemplateMapKey()
34 if (escapeMode == EscapeMode.ESCAPE_NONE) { in PrecompiledTemplateMapKey()
75 public EscapeMode getEscapeMode() { in getEscapeMode()
DPrecompiledTemplateMapFileReader.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
117 EscapeMode escapeMode; in processTemplateMapFileLine()
119 escapeMode = EscapeMode.ESCAPE_NONE; in processTemplateMapFileLine()
123 escapeMode = EscapeMode.computeEscapeMode(escapeCmd); in processTemplateMapFileLine()
DPrecompiledTemplateLoader.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
71 compiledTemplate.setEscapeMode(EscapeMode.ESCAPE_NONE); in makeTemplateMap()
104 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load()
119 public Template createTemp(String name, String content, EscapeMode escapeMode) { in createTemp()
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DAbstractData.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
28 protected EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
136 public void setEscapeMode(EscapeMode mode) { in setEscapeMode()
141 public EscapeMode getEscapeMode() { in getEscapeMode()
DDataContext.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
63 void createLocalVariableByValue(String name, String value, EscapeMode mode); in createLocalVariableByValue()
115 EscapeMode findVariableEscapeMode(String name); in findVariableEscapeMode()
DDefaultDataContext.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
91 createLocalVariableByValue(name, value, EscapeMode.ESCAPE_NONE); in createLocalVariableByValue()
95 public void createLocalVariableByValue(String name, String value, EscapeMode mode) { in createLocalVariableByValue()
167 public EscapeMode findVariableEscapeMode(String name) { in findVariableEscapeMode()
170 return EscapeMode.ESCAPE_NONE; in findVariableEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/template/
DDefaultRenderingContext.java21 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
58 private List<EscapeMode> autoEscapeStack = new ArrayList<EscapeMode>();
59 private EscapeMode autoEscapeMode;
72 this.autoEscapeMode = EscapeMode.ESCAPE_NONE; in DefaultRenderingContext()
214 public EscapeMode getAutoEscapeMode() { in getAutoEscapeMode()
216 return EscapeMode.ESCAPE_NONE; in getAutoEscapeMode()
223 public void pushAutoEscapeMode(EscapeMode mode) { in pushAutoEscapeMode()
258 if (!autoEscapeMode.equals(EscapeMode.ESCAPE_NONE)) { in startRuntimeAutoEscaping()
DTemplateLoader.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in load()
52 Template createTemp(String name, String content, EscapeMode escapeMode); in createTemp()
DRenderingContext.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
127 void pushAutoEscapeMode(EscapeMode mode); in pushAutoEscapeMode()
139 EscapeMode getAutoEscapeMode(); in getAutoEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DBaseCompiledTemplate.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
49 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
97 public void setEscapeMode(EscapeMode mode) { in setEscapeMode()
102 public EscapeMode getEscapeMode() { in getEscapeMode()
176 return Value.literalValue(value, EscapeMode.ESCAPE_NONE, false); in asValue()
183 return Value.literalValue(value, EscapeMode.ESCAPE_NONE, false); in asValue()
190 return Value.literalValue(value, EscapeMode.ESCAPE_NONE, false); in asValue()
294 public EscapeMode getEscapeMode() { in getEscapeMode()
DTemplateCompiler.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
71 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load()
77 public Template createTemp(String name, String content, EscapeMode escapeMode) { in createTemp()
88 private Template compile(TemplateSyntaxTree ast, String templateName, EscapeMode mode) { in compile()
109 private CharSequence translateAstToJavaSource(TemplateSyntaxTree ast, EscapeMode mode) { in translateAstToJavaSource()
/external/jsilver/src/com/google/clearsilver/jsilver/
DJSilverOptions.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
43 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
201 public EscapeMode getEscapeMode() { in getEscapeMode()
217 public JSilverOptions setEscapeMode(EscapeMode escapeMode) { in setEscapeMode()
DJSilver.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
251 EscapeMode escapeMode = getEscapeMode(data); in render()
343 EscapeMode escapeMode = getEscapeMode(data); in renderFromContent()
369 public EscapeMode getEscapeMode(Data data) { in getEscapeMode()
370 EscapeMode escapeMode = in getEscapeMode()
371 EscapeMode.computeEscapeMode(data.getValue(VAR_ESCAPE_MODE_KEY), data in getEscapeMode()
373 if (escapeMode.equals(EscapeMode.ESCAPE_NONE)) { in getEscapeMode()
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
DTemplateFactory.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
39 …TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in find()
48 TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode); in createTemp()
DInterpretedTemplate.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
44 private final EscapeMode escapeMode;
48 FunctionExecutor functionExecutor, AutoEscapeOptions autoEscapeOptions, EscapeMode mode) { in InterpretedTemplate()
85 public EscapeMode getEscapeMode() { in getEscapeMode()
DLoadingTemplateFactory.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
37 EscapeMode escapeMode) { in find()
50 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp()
DOptimizingTemplateFactory.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
58 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp()
66 EscapeMode escapeMode) { in find()
DInterpretedTemplateLoader.java20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load()
58 public Template createTemp(String name, String content, EscapeMode escapingMode) { in createTemp()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/operators/
DAddFunction.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
32 EscapeMode mode = EscapeMode.combineModes(left.getEscapeMode(), right.getEscapeMode()); in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DSyntaxTreeBuilder.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
88 protected void process(Start root, EscapeMode escapeMode, String templateName) { in process()
95 if (!escapeMode.equals(EscapeMode.ESCAPE_NONE)) { in process()
106 public TemplateSyntaxTree parse(Reader input, String templateName, EscapeMode escapeMode) in parse()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/
DFunctionRegistry.java19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
114 EscapeMode mode; in registerFunction()
119 mode = EscapeMode.ESCAPE_IS_CONSTANT; in registerFunction()
122 mode = EscapeMode.ESCAPE_NONE; in registerFunction()

12