Home
last modified time | relevance | path

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

/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateMapKey.java26 private final Object templateName; field in PrecompiledTemplateMapKey
30 public PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode) { in PrecompiledTemplateMapKey() argument
31 this.templateName = templateName; in PrecompiledTemplateMapKey()
35 toStringName = templateName.toString(); in PrecompiledTemplateMapKey()
37 toStringName = templateName.toString() + "_" + escapeMode.getEscapeCommand(); in PrecompiledTemplateMapKey()
52 return templateName.equals(that.templateName) && (escapeMode == that.escapeMode); in equals()
58 hash = 31 * hash + templateName.hashCode(); in hashCode()
DPrecompiledTemplateMapFileReader.java103 String templateName = st.nextToken(); in processTemplateMapFileLine() local
104 if (dirPattern != null && templateName.startsWith(dirPattern)) { in processTemplateMapFileLine()
105 templateName = templateName.substring(dirPattern.length()); in processTemplateMapFileLine()
110 templateName = rootDir + templateName; in processTemplateMapFileLine()
129 PrecompiledTemplateMapKey key = new PrecompiledTemplateMapKey(templateName, escapeMode); in processTemplateMapFileLine()
DPrecompiledTemplateLoader.java104 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load() argument
105 Object key = resourceLoader.getKey(templateName); in load()
111 return nextLoader.load(templateName, resourceLoader, escapeMode); in load()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DBaseCompiledTemplate.java47 private String templateName; field in BaseCompiledTemplate
56 public void setTemplateName(String templateName) { in setTemplateName() argument
57 this.templateName = templateName; in setTemplateName()
89 return templateName; in getTemplateName()
108 return templateName; in getDisplayName()
312 protected void include(String templateName, boolean ignoreMissingFile, RenderingContext context) { in include() argument
313 if (!context.pushIncludeStackEntry(templateName)) { in include()
314 throw new JSilverInterpreterException(createIncludeLoopErrorMessage(templateName, context in include()
318 loadAndRenderIncludedTemplate(templateName, ignoreMissingFile, context); in include()
320 if (!context.popIncludeStackEntry(templateName)) { in include()
[all …]
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()
88 private Template compile(TemplateSyntaxTree ast, String templateName, EscapeMode mode) { in compile() argument
91 String errorMessage = "Could not compile template: " + templateName; in compile()
97 compiledTemplate.setTemplateName(templateName); in compile()
/external/lzma/CPP/Windows/Control/
DDialog.cpp193 bool CModelessDialog::Create(LPCTSTR templateName, HWND parentWindow) in Create() argument
195 …HWND aHWND = CreateDialogParam(g_hInstance, templateName, parentWindow, DialogProcedure, (LPARAM)t… in Create()
202 INT_PTR CModalDialog::Create(LPCTSTR templateName, HWND parentWindow) in Create() argument
204 return DialogBoxParam(g_hInstance, templateName, parentWindow, DialogProcedure, (LPARAM)this); in Create()
209 bool CModelessDialog::Create(LPCWSTR templateName, HWND parentWindow) in Create() argument
213 …aHWND = CreateDialogParamW(g_hInstance, templateName, parentWindow, DialogProcedure, (LPARAM)this); in Create()
218 if (IS_INTRESOURCE(templateName)) in Create()
219 templateNameA = (LPCSTR)templateName; in Create()
222 name = GetSystemString(templateName); in Create()
233 INT_PTR CModalDialog::Create(LPCWSTR templateName, HWND parentWindow) in Create() argument
[all …]
DDialog.h129 bool Create(LPCTSTR templateName, HWND parentWindow);
132 bool Create(LPCWSTR templateName, HWND parentWindow);
141 INT_PTR Create(LPCTSTR templateName, HWND parentWindow);
144 INT_PTR Create(LPCWSTR templateName, HWND parentWindow);
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DSyntaxTreeBuilder.java88 protected void process(Start root, EscapeMode escapeMode, String templateName) { in process() argument
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()
119 templateName, exception.getToken().getLine(), exception.getToken().getPos(), exception); in parse()
121 throw new JSilverBadSyntaxException(exception.getMessage(), null, templateName, in parse()
DAutoEscaper.java62 private final String templateName; field in AutoEscaper
72 public AutoEscaper(EscapeMode mode, String templateName) { in AutoEscaper() argument
73 this.templateName = templateName; in AutoEscaper()
76 templateName); in AutoEscaper()
80 autoEscapeContext = new AutoEscapeContext(mode, templateName); in AutoEscaper()
125 + " but ends in different context " + endState, templateName); in caseStart()
194 + ifEndState + " and " + elseEndState, templateName, line, column); in caseAIfCommand()
/external/jsilver/src/com/google/clearsilver/jsilver/exceptions/
DJSilverAutoEscapingException.java26 public JSilverAutoEscapingException(String message, String templateName, int line, int column) { in JSilverAutoEscapingException() argument
27 super(createMessage(message, templateName, line, column)); in JSilverAutoEscapingException()
30 public JSilverAutoEscapingException(String message, String templateName) { in JSilverAutoEscapingException() argument
31 this(message, templateName, UNKNOWN_POSITION, UNKNOWN_POSITION); in JSilverAutoEscapingException()
DJSilverTemplateNotFoundException.java24 public JSilverTemplateNotFoundException(String templateName) { in JSilverTemplateNotFoundException() argument
25 super(templateName); in JSilverTemplateNotFoundException()
/external/jsilver/src/com/google/clearsilver/jsilver/compatibility/
DClearsilverRenderer.java59 public void render(String templateName, Data data, Appendable output, in render() argument
76 cs.parseFile(templateName); in render()
87 public void render(String templateName, Data data, Appendable output) throws IOException, in render() argument
89 render(templateName, data, output, defaultResourceLoader); in render()
93 public String render(String templateName, Data data) throws IOException, JSilverException { in render() argument
95 render(templateName, data, output); in render()
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
DLoadingTemplateFactory.java36 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, in find() argument
39 Reader reader = resourceLoader.openOrFail(templateName); in find()
41 return syntaxTreeBuilder.parse(reader, templateName, escapeMode); in find()
DInterpretedTemplateLoader.java51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) { in load() argument
52 return new InterpretedTemplate(templateLoaderDelegate, templateFactory.find(templateName, in load()
53 resourceLoader, escapeMode), templateName, globalFunctionExecutor, autoEscapeOptions, in load()
DTemplateInterpreter.java568 String templateName = path.asString(); in include() local
569 if (!context.pushIncludeStackEntry(templateName)) { in include()
570 throw new JSilverInterpreterException(createIncludeLoopErrorMessage(templateName, context in include()
574 loadAndRenderIncludedTemplate(templateName, ignoreMissingFile); in include()
576 if (!context.popIncludeStackEntry(templateName)) { in include()
578 throw new IllegalStateException("Unable to find on include stack: " + templateName); in include()
582 private String createIncludeLoopErrorMessage(String templateName, Iterable<String> includeStack) { in createIncludeLoopErrorMessage() argument
585 message.append(templateName); in createIncludeLoopErrorMessage()
593 message.append(templateName); in createIncludeLoopErrorMessage()
617 private void loadAndRenderIncludedTemplate(String templateName, boolean ignoreMissingFile) { in loadAndRenderIncludedTemplate() argument
[all …]
DOptimizingTemplateFactory.java65 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, in find() argument
67 TemplateSyntaxTree result = wrapped.find(templateName, resourceLoader, escapeMode); in find()
DTemplateFactory.java39 …TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in find() argument
/external/jsilver/src/com/google/clearsilver/jsilver/
DTemplateRenderer.java41 void render(String templateName, Data data, Appendable output, ResourceLoader resourceLoader) in render() argument
48 void render(String templateName, Data data, Appendable output) throws IOException, in render() argument
55 String render(String templateName, Data data) throws IOException, JSilverException; in render() argument
DJSilver.java249 public void render(String templateName, Data data, Appendable output, in render() argument
252 render(templateLoader.load(templateName, resourceLoader, escapeMode), data, output, in render()
265 public void render(String templateName, Data data, Appendable output) throws IOException, in render() argument
267 render(templateName, data, output, defaultResourceLoader); in render()
275 public String render(String templateName, Data data) throws IOException, JSilverException { in render() argument
278 render(templateName, data, output); in render()
/external/jsilver/src/com/google/clearsilver/jsilver/template/
DRenderingContext.java173 boolean pushIncludeStackEntry(String templateName); in pushIncludeStackEntry() argument
181 boolean popIncludeStackEntry(String templateName); in popIncludeStackEntry() argument
DDefaultRenderingContext.java291 public boolean pushIncludeStackEntry(String templateName) { in pushIncludeStackEntry() argument
292 return includeStack.push(templateName); in pushIncludeStackEntry()
296 public boolean popIncludeStackEntry(String templateName) { in popIncludeStackEntry() argument
297 return templateName.equals(includeStack.pop()); in popIncludeStackEntry()
DTemplateLoader.java39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode); in load() argument
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DErrorManager.java832 String templateName = in initIdToMessageNameMapping() local
844 idToMessageTemplateName[msgID] = templateName; in initIdToMessageNameMapping()
859 String templateName = in verifyMessages() local
862 if ( !messages.isDefined(templateName) ) { in verifyMessages()
863 System.err.println("Message "+templateName+" in locale "+ in verifyMessages()