/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/exceptions/ |
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);
|
JSilverTemplateNotFoundException.java | 24 public JSilverTemplateNotFoundException(String templateName) { 25 super(templateName);
|
/external/clang/lib/AST/ |
TemplateName.cpp | 1 //===--- TemplateName.cpp - C++ Template Name Representation---------------===// 10 // This file defines the TemplateName interface and subclasses. 14 #include "clang/AST/TemplateName.h" 36 TemplateName replacement) { 54 TemplateName::NameKind TemplateName::getKind() const { 71 TemplateDecl *TemplateName::getAsTemplateDecl() const { 84 bool TemplateName::isDependent() const { 102 bool TemplateName::isInstantiationDependent() const { 111 bool TemplateName::containsUnexpandedParameterPack() const [all...] |
CMakeLists.txt | 55 TemplateName.cpp
|
Android.mk | 78 TemplateName.cpp \
|
/external/clang/include/clang/AST/ |
TemplateName.h | 1 //===--- TemplateName.h - C++ Template Name Representation-------*- C++ -*-===// 10 // This file defines the TemplateName interface and subclasses. 175 class TemplateName { 183 explicit TemplateName(void *Ptr) { 209 TemplateName() : Storage() { } 210 explicit TemplateName(TemplateDecl *Template) : Storage(Template) { } 211 explicit TemplateName(OverloadedTemplateStorage *Storage) 213 explicit TemplateName(SubstTemplateTemplateParmStorage *Storage); 214 explicit TemplateName(SubstTemplateTemplateParmPackStorage *Storage) 216 explicit TemplateName(QualifiedTemplateName *Qual) : Storage(Qual) { [all...] |
TemplateBase.h | 18 #include "clang/AST/TemplateName.h" 107 TemplateArgument(TemplateName, bool) LLVM_DELETED_FUNCTION; 148 TemplateArgument(TemplateName Name) : Kind(Template) 165 TemplateArgument(TemplateName Name, Optional<unsigned> NumExpansions) 252 TemplateName getAsTemplate() const { 254 return TemplateName::getFromVoidPointer(TemplateArg.Name); 259 TemplateName getAsTemplateOrTemplatePattern() const { 263 return TemplateName::getFromVoidPointer(TemplateArg.Name); 350 // FIXME: We'd like to just use the qualifier in the TemplateName,
|
/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/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);
|
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/ |
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);
|
TemplateFactory.java | 34 * @param templateName e.g. some/path/to/template.cs 39 TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode 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/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/ |
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/template/ |
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);
|
TemplateLoader.java | 34 * @param templateName e.g. some/path/to/template.cs 39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
|
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());
|