HomeSort by relevance Sort by last modified time
    Searched refs:templateName (Results 1 - 21 of 21) sorted by null

  /external/jsilver/src/com/google/clearsilver/jsilver/exceptions/
JSilverTemplateNotFoundException.java 24 public JSilverTemplateNotFoundException(String templateName) {
25 super(templateName);
JSilverAutoEscapingException.java 26 public JSilverAutoEscapingException(String message, String templateName, int line, int column) {
27 super(createMessage(message, templateName, line, column));
30 public JSilverAutoEscapingException(String message, String templateName) {
31 this(message, templateName, UNKNOWN_POSITION, UNKNOWN_POSITION);
  /external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
PrecompiledTemplateMapKey.java 26 private final Object templateName;
30 public PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode) {
31 this.templateName = templateName;
35 toStringName = templateName.toString();
37 toStringName = templateName.toString() + "_" + escapeMode.getEscapeCommand();
52 return templateName.equals(that.templateName) && (escapeMode == that.escapeMode);
58 hash = 31 * hash + templateName.hashCode();
PrecompiledTemplateMapFileReader.java 103 String templateName = st.nextToken();
104 if (dirPattern != null && templateName.startsWith(dirPattern)) {
105 templateName = templateName.substring(dirPattern.length());
110 templateName = rootDir + templateName;
129 PrecompiledTemplateMapKey key = new PrecompiledTemplateMapKey(templateName, escapeMode);
PrecompiledTemplateLoader.java 104 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
105 Object key = resourceLoader.getKey(templateName);
111 return nextLoader.load(templateName, resourceLoader, escapeMode);
  /external/jsilver/src/com/google/clearsilver/jsilver/compiler/
BaseCompiledTemplate.java 47 private String templateName;
56 public void setTemplateName(String templateName) {
57 this.templateName = templateName;
89 return templateName;
108 return templateName;
307 * @param templateName String representing name of file to include.
312 protected void include(String templateName, boolean ignoreMissingFile, RenderingContext context) {
313 if (!context.pushIncludeStackEntry(templateName)) {
314 throw new JSilverInterpreterException(createIncludeLoopErrorMessage(templateName, contex
    [all...]
TemplateCompiler.java 71 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
72 return compile(templateFactory.find(templateName, resourceLoader, escapeMode), templateName,
85 * @param templateName Name of template (e.g. "foo.cs"). Used for error reporting. May be null,
88 private Template compile(TemplateSyntaxTree ast, String templateName, EscapeMode mode) {
91 String errorMessage = "Could not compile template: " + templateName;
97 compiledTemplate.setTemplateName(templateName);
  /external/jsilver/src/com/google/clearsilver/jsilver/syntax/
SyntaxTreeBuilder.java 79 * Perform any additional processing on the tree. EscapeMode and templateName are required by
85 * @param templateName The name of template being processed. Passed to AutoEscaper, which uses it
88 protected void process(Start root, EscapeMode escapeMode, String templateName) {
98 root.apply(new AutoEscaper(escapeMode, templateName));
103 * @param templateName Used for meaningful error messages.
106 public TemplateSyntaxTree parse(Reader input, String templateName, EscapeMode escapeMode)
113 process(root, escapeMode, templateName);
119 templateName, exception.getToken().getLine(), exception.getToken().getPos(), exception);
121 throw new JSilverBadSyntaxException(exception.getMessage(), null, templateName,
AutoEscaper.java 62 private final String templateName;
66 * Create an AutoEscaper, which will apply the specified escaping mode. If templateName is
70 * @param templateName
72 public AutoEscaper(EscapeMode mode, String templateName) {
73 this.templateName = templateName;
76 templateName);
80 autoEscapeContext = new AutoEscapeContext(mode, templateName);
125 + " but ends in different context " + endState, templateName);
194 + ifEndState + " and " + elseEndState, templateName, line, column)
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
TemplateFactory.java 34 * @param templateName e.g. some/path/to/template.cs
39 TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
InterpretedTemplateLoader.java 51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
52 return new InterpretedTemplate(templateLoaderDelegate, templateFactory.find(templateName,
53 resourceLoader, escapeMode), templateName, globalFunctionExecutor, autoEscapeOptions,
LoadingTemplateFactory.java 36 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader,
39 Reader reader = resourceLoader.openOrFail(templateName);
41 return syntaxTreeBuilder.parse(reader, templateName, escapeMode);
OptimizingTemplateFactory.java 65 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader,
67 TemplateSyntaxTree result = wrapped.find(templateName, resourceLoader, escapeMode);
TemplateInterpreter.java 568 String templateName = path.asString();
569 if (!context.pushIncludeStackEntry(templateName)) {
570 throw new JSilverInterpreterException(createIncludeLoopErrorMessage(templateName, context
574 loadAndRenderIncludedTemplate(templateName, ignoreMissingFile);
576 if (!context.popIncludeStackEntry(templateName)) {
578 throw new IllegalStateException("Unable to find on include stack: " + templateName);
582 private String createIncludeLoopErrorMessage(String templateName, Iterable<String> includeStack) {
585 message.append(templateName);
593 message.append(templateName);
617 private void loadAndRenderIncludedTemplate(String templateName, boolean ignoreMissingFile)
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/template/
TemplateLoader.java 34 * @param templateName e.g. some/path/to/template.cs
39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
RenderingContext.java 169 * @param templateName name of the template to be added to the stack. If {@code null} a {@code
171 * @return true if the {@code templateName} was added.
173 boolean pushIncludeStackEntry(String templateName);
178 * @param templateName
179 * @return true if the {@code templateName} was on the stack.
181 boolean popIncludeStackEntry(String templateName);
DefaultRenderingContext.java 291 public boolean pushIncludeStackEntry(String templateName) {
292 return includeStack.push(templateName);
296 public boolean popIncludeStackEntry(String templateName) {
297 return templateName.equals(includeStack.pop());
  /external/jsilver/src/com/google/clearsilver/jsilver/
TemplateRenderer.java 34 * @param templateName Name of template to load (e.g. "things/blah.cs").
41 void render(String templateName, Data data, Appendable output, ResourceLoader resourceLoader)
48 void render(String templateName, Data data, Appendable output) throws IOException,
55 String render(String templateName, Data data) throws IOException, JSilverException;
JSilver.java 241 * @param templateName Name of template to load (e.g. "things/blah.cs").
249 public void render(String templateName, Data data, Appendable output,
252 render(templateLoader.load(templateName, resourceLoader, escapeMode), data, output,
259 * @param templateName Name of template to load (e.g. "things/blah.cs").
265 public void render(String templateName, Data data, Appendable output) throws IOException,
267 render(templateName, data, output, defaultResourceLoader);
275 public String render(String templateName, Data data) throws IOException, JSilverException {
278 render(templateName, data, output);
  /external/jsilver/src/com/google/clearsilver/jsilver/compatibility/
ClearsilverRenderer.java 59 public void render(String templateName, Data data, Appendable output,
76 cs.parseFile(templateName);
87 public void render(String templateName, Data data, Appendable output) throws IOException,
89 render(templateName, data, output, defaultResourceLoader);
93 public String render(String templateName, Data data) throws IOException, JSilverException {
95 render(templateName, data, output);
  /sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/project/
ProjectCreator.java     [all...]

Completed in 263 milliseconds