| Modifier and Type | Method and Description |
|---|---|
protected PebbleTemplateImpl |
AbstractNodeVisitor.getTemplate() |
| Constructor and Description |
|---|
AbstractNodeVisitor(PebbleTemplateImpl template) |
| Constructor and Description |
|---|
MacroAndBlockRegistrantNodeVisitor(PebbleTemplateImpl template) |
| Constructor and Description |
|---|
PrettyPrintNodeVisitor(PebbleTemplateImpl template) |
| Constructor and Description |
|---|
EscaperNodeVisitor(PebbleTemplateImpl template,
boolean autoEscapting) |
| Modifier and Type | Method and Description |
|---|---|
String |
FunctionOrMacroNameNode.evaluate(PebbleTemplateImpl self,
EvaluationContextImpl context) |
Object |
TestInvocationExpression.evaluate(PebbleTemplateImpl self,
EvaluationContextImpl context) |
Map<String,Object> |
ArgumentsNode.getArgumentMap(PebbleTemplateImpl self,
EvaluationContextImpl context,
NamedArguments invocableWithNamedArguments)
Using hints from the filter/function/test/macro it will convert an ArgumentMap (which holds
both positional and named arguments) into a regular Map that the filter/function/test/macro is
expecting.
|
void |
AutoEscapeNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
FromNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
ExtendsNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
CacheNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
ImportNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
TextNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
PrintNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
SetNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
ForNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
MacroNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
RootNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
IncludeNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
BodyNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
ParallelNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
IfNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
RenderableNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
abstract void |
AbstractRenderableNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
BlockNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
FlushNode.render(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
| Modifier and Type | Method and Description |
|---|---|
PebbleTemplateImpl |
Hierarchy.getChild()
Returns the child of the template currently being evaluated or null if there is no child.
|
PebbleTemplateImpl |
PebbleTemplateImpl.getNamedImportedTemplate(EvaluationContextImpl context,
String alias)
Returns a named template.
|
PebbleTemplateImpl |
EvaluationContextImpl.getNamedImportedTemplate(String alias)
Returns the named imported template.
|
PebbleTemplateImpl |
Hierarchy.getParent()
Returns the parent of the template currently being evaluated or null if there is no parent.
|
| Modifier and Type | Method and Description |
|---|---|
List<PebbleTemplateImpl> |
EvaluationContextImpl.getImportedTemplates()
Returns a list of imported templates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EvaluationContextImpl.addNamedImportedTemplates(String alias,
PebbleTemplateImpl template) |
String |
Macro.call(PebbleTemplateImpl self,
EvaluationContextImpl context,
Map<String,Object> args) |
void |
Block.evaluate(PebbleTemplateImpl self,
Writer writer,
EvaluationContextImpl context) |
void |
Hierarchy.pushAncestor(PebbleTemplateImpl ancestor)
Adds a known ancestor onto the inheritance chain, does not increment which template is the
"current" template being evaluated.
|
EvaluationContextImpl |
EvaluationContextImpl.shallowCopyWithoutInheritanceChain(PebbleTemplateImpl self)
Makes an exact copy of the evaluation context EXCEPT for the inheritance chain.
|
EvaluationContextImpl |
EvaluationContextImpl.threadSafeCopy(PebbleTemplateImpl self)
Makes a "snapshot" of the evaluation context.
|
| Constructor and Description |
|---|
EvaluationContextImpl(PebbleTemplateImpl self,
boolean strictVariables,
Locale locale,
ExtensionRegistry extensionRegistry,
PebbleCache<CacheKey,Object> tagCache,
ExecutorService executorService,
List<PebbleTemplateImpl> importedTemplates,
Map<String,PebbleTemplateImpl> namedImportedTemplates,
ScopeChain scopeChain,
Hierarchy hierarchy,
EvaluationOptions evaluationOptions)
Constructor used to provide all final variables.
|
Hierarchy(PebbleTemplateImpl currentTemplate)
Constructs an inheritance chain with one known template.
|
MacroAttributeProvider(PebbleTemplateImpl template) |
| Constructor and Description |
|---|
EvaluationContextImpl(PebbleTemplateImpl self,
boolean strictVariables,
Locale locale,
ExtensionRegistry extensionRegistry,
PebbleCache<CacheKey,Object> tagCache,
ExecutorService executorService,
List<PebbleTemplateImpl> importedTemplates,
Map<String,PebbleTemplateImpl> namedImportedTemplates,
ScopeChain scopeChain,
Hierarchy hierarchy,
EvaluationOptions evaluationOptions)
Constructor used to provide all final variables.
|
EvaluationContextImpl(PebbleTemplateImpl self,
boolean strictVariables,
Locale locale,
ExtensionRegistry extensionRegistry,
PebbleCache<CacheKey,Object> tagCache,
ExecutorService executorService,
List<PebbleTemplateImpl> importedTemplates,
Map<String,PebbleTemplateImpl> namedImportedTemplates,
ScopeChain scopeChain,
Hierarchy hierarchy,
EvaluationOptions evaluationOptions)
Constructor used to provide all final variables.
|
Copyright © 2018. All rights reserved.