/external/jsilver/src/com/google/clearsilver/jsilver/values/ |
D | 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; 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 …]
|
D | VariableValue.java | 19 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/ |
D | EscapeMode.java | 21 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()
|
D | 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/precompiler/ |
D | PrecompiledTemplateMapKey.java | 19 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()
|
D | PrecompiledTemplateMapFileReader.java | 19 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()
|
D | PrecompiledTemplateLoader.java | 20 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/ |
D | AbstractData.java | 19 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()
|
D | DataContext.java | 19 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()
|
D | DefaultDataContext.java | 19 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/ |
D | 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; 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()
|
D | TemplateLoader.java | 19 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()
|
D | RenderingContext.java | 20 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/ |
D | BaseCompiledTemplate.java | 20 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()
|
D | TemplateCompiler.java | 20 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/ |
D | JSilverOptions.java | 19 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()
|
D | JSilver.java | 20 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/ |
D | TemplateFactory.java | 19 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()
|
D | InterpretedTemplate.java | 20 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()
|
D | LoadingTemplateFactory.java | 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode; 37 EscapeMode escapeMode) { in find() 50 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp()
|
D | OptimizingTemplateFactory.java | 19 import com.google.clearsilver.jsilver.autoescape.EscapeMode; 58 public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode) { in createTemp() 66 EscapeMode escapeMode) { in find()
|
D | InterpretedTemplateLoader.java | 20 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/ |
D | AddFunction.java | 19 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/ |
D | SyntaxTreeBuilder.java | 19 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/ |
D | FunctionRegistry.java | 19 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()
|