HomeSort by relevance Sort by last modified time
    Searched refs:EscapeMode (Results 1 - 25 of 39) sorted by null

1 2

  /external/jsilver/src/com/google/clearsilver/jsilver/values/
Value.java 19 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;
40 // Currently a Value's EscapeMode is either ESCAPE_NONE (no escaping) or
43 // See EscapeMode.combineModes.
44 EMPTY_PART_ESCAPED = new HashMap<EscapeMode, Value>(2)
    [all...]
NumberValue.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
30 public NumberValue(int value, EscapeMode escapeMode, boolean partiallyEscaped) {
31 super(escapeMode, partiallyEscaped);
StringValue.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
30 public StringValue(String value, EscapeMode escapeMode, boolean partiallyEscaped) {
31 super(escapeMode, partiallyEscaped);
VariantValue.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
32 VariantValue(EscapeMode escapeMode, boolean partiallyEscaped) {
33 super(escapeMode, partiallyEscaped);
VariableValue.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
47 super(EscapeMode.ESCAPE_NONE, false);
83 public EscapeMode getEscapeMode() {
  /external/jsilver/src/com/google/clearsilver/jsilver/autoescape/
EscapeMode.java 21 public enum EscapeMode {
41 private EscapeMode(String escapeCmd, boolean autoEscaper) {
47 * This function maps the type of escaping requested (escapeCmd) to the appropriate EscapeMode. If
49 * (EscapeMode.ESCAPE_AUTO). This mirrors the behaviour of ClearSilver.
56 public static EscapeMode computeEscapeMode(String escapeCmd, boolean doAutoEscape) {
57 EscapeMode escapeMode;
62 for (EscapeMode e : EscapeMode.values()) {
71 escapeMode = ESCAPE_AUTO
    [all...]
AutoEscapeContext.java 19 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/interpreter/
TemplateFactory.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
37 * @param escapeMode the type of escaping to apply to the entire template.
39 TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
45 * @param escapeMode
46 * @param escapeMode the type of escaping to apply to the entire template.
48 TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode);
InterpretedTemplateLoader.java 20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
53 resourceLoader, escapeMode), templateName, globalFunctionExecutor, autoEscapeOptions,
54 escapeMode);
58 public Template createTemp(String name, String content, EscapeMode escapingMode) {
LoadingTemplateFactory.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
37 EscapeMode escapeMode) {
41 return syntaxTreeBuilder.parse(reader, templateName, escapeMode);
50 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) {
51 return syntaxTreeBuilder.parse(new StringReader(content), "", escapeMode);
OptimizingTemplateFactory.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
58 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) {
59 TemplateSyntaxTree result = wrapped.createTemp(content, escapeMode);
66 EscapeMode escapeMode) {
67 TemplateSyntaxTree result = wrapped.find(templateName, resourceLoader, escapeMode);
InterpretedTemplate.java 20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
44 private final EscapeMode escapeMode;
48 FunctionExecutor functionExecutor, AutoEscapeOptions autoEscapeOptions, EscapeMode mode) {
53 this.escapeMode = mode;
85 public EscapeMode getEscapeMode() {
86 return escapeMode;
  /external/jsilver/src/com/google/clearsilver/jsilver/template/
TemplateLoader.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
37 * @param escapeMode the type of escaping to apply to the entire template.
39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
50 * @param escapeMode the type of escaping to apply to the entire template.
52 Template createTemp(String name, String content, EscapeMode escapeMode);
Template.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
68 * Return the EscapeMode in which this template was generated.
70 * @return EscapeMode
72 EscapeMode getEscapeMode();
RenderingContext.java 20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
127 void pushAutoEscapeMode(EscapeMode mode);
137 * @return EscapeMode
139 EscapeMode getAutoEscapeMode();
DefaultRenderingContext.java 21 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;
214 public EscapeMode getAutoEscapeMode() {
216 return EscapeMode.ESCAPE_NONE;
223 public void pushAutoEscapeMode(EscapeMode mode) {
258 if (!autoEscapeMode.equals(EscapeMode.ESCAPE_NONE)) {
  /external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
PrecompiledTemplateMapKey.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
23 * well as the {@link EscapeMode} for which the template was compiled.
27 private final EscapeMode escapeMode;
30 public PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode) {
32 this.escapeMode = escapeMode;
34 if (escapeMode == EscapeMode.ESCAPE_NONE)
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/data/
DataContext.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
53 * EscapeMode that was applied to its value. This may be used by the template renderer to decide
58 * @param mode EscapeMode that describes the escaping this variable has. {@code
59 * EscapeMode.ESCAPE_NONE} if the variable was not escaped. {@code
60 * EscapeMode.ESCAPE_IS_CONSTANT} if the variable was populated with a string or numeric
63 void createLocalVariableByValue(String name, String value, EscapeMode mode);
110 * {@link EscapeMode}.
112 * @return If the variable is found, returns its {@link EscapeMode}, otherwise returns {@code
113 * EscapeMode.ESCAPE_NONE}.
115 EscapeMode findVariableEscapeMode(String name)
    [all...]
AbstractData.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
28 protected EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
136 public void setEscapeMode(EscapeMode mode) {
137 this.escapeMode = mode;
141 public EscapeMode getEscapeMode() {
142 return escapeMode;
Data.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
263 * @return EscapeMode that was applied to this node's value. {@code EscapeMode.ESCAPE_NONE} if the
264 * value is not escaped. {@code EscapeMode.ESCAPE_IS_CONSTANT} if value is a string or
268 * @see EscapeMode
270 EscapeMode getEscapeMode();
279 void setEscapeMode(EscapeMode mode);
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/operators/
AddFunction.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
32 EscapeMode mode = EscapeMode.combineModes(left.getEscapeMode(), right.getEscapeMode());
  /external/jsilver/src/com/google/clearsilver/jsilver/
JSilverOptions.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
43 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
199 * @see #setEscapeMode(com.google.clearsilver.jsilver.autoescape.EscapeMode)
201 public EscapeMode getEscapeMode() {
202 return escapeMode;
215 * @param escapeMode
217 public JSilverOptions setEscapeMode(EscapeMode escapeMode) {
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/compiler/
BaseCompiledTemplate.java 20 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
49 private EscapeMode escapeMode = EscapeMode.ESCAPE_NONE;
93 * Sets the EscapeMode in which this template was generated.
95 * @param mode EscapeMode
97 public void setEscapeMode(EscapeMode mode) {
98 this.escapeMode = mode;
102 public EscapeMode getEscapeMode() {
103 return escapeMode;
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/
FunctionRegistry.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
114 EscapeMode mode;
119 mode = EscapeMode.ESCAPE_IS_CONSTANT;
122 mode = EscapeMode.ESCAPE_NONE;
  /external/jsilver/src/com/google/clearsilver/jsilver/syntax/
SyntaxTreeBuilder.java 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode;
79 * Perform any additional processing on the tree. EscapeMode and templateName are required by
83 * @param escapeMode The escaping mode to apply to the given AST. If this is not
84 * EscapeMode.ESCAPE_NONE, AutoEscaper will be called on the AST.
88 protected void process(Start root, EscapeMode escapeMode, String templateName) {
95 if (!escapeMode.equals(EscapeMode.ESCAPE_NONE)) {
98 root.apply(new AutoEscaper(escapeMode, templateName));
104 * @param escapeMode Run {@link AutoEscaper} on the abstract syntax tree created from template
    [all...]

Completed in 369 milliseconds

1 2