Package | Description |
---|---|
sirius.tagliatelle | |
sirius.tagliatelle.emitter | |
sirius.tagliatelle.expression | |
sirius.tagliatelle.macros | |
sirius.tagliatelle.rendering |
Modifier and Type | Method and Description |
---|---|
void |
Template.renderWithContext(LocalRenderContext ctx)
Renders the template with the given local context.
|
void |
Template.transferArguments(Map<String,Object> args,
LocalRenderContext renderContext)
Reads all arguments from the given map into the given render context.
|
Modifier and Type | Method and Description |
---|---|
void |
Emitter.emit(LocalRenderContext context)
Procudes the text output into the given context.
|
protected void |
PushLocalEmitter.emitToContext(LocalRenderContext context) |
protected void |
ConstantEmitter.emitToContext(LocalRenderContext context) |
protected void |
ConditionalEmitter.emitToContext(LocalRenderContext context) |
protected void |
InvokeTemplateEmitter.emitToContext(LocalRenderContext context) |
protected void |
InlineTemplateEmitter.emitToContext(LocalRenderContext context) |
protected void |
LoopEmitter.emitToContext(LocalRenderContext context) |
protected void |
ExtraBlockEmitter.emitToContext(LocalRenderContext context) |
protected abstract void |
Emitter.emitToContext(LocalRenderContext context)
Actually produces the output while relying on the caller to properly handle any exception.
|
protected void |
DynamicInvokeTemplateEmitter.emitToContext(LocalRenderContext context) |
protected void |
CompositeEmitter.emitToContext(LocalRenderContext context) |
protected void |
BlockEmitter.emitToContext(LocalRenderContext context) |
protected void |
ExpressionEmitter.emitToContext(LocalRenderContext context) |
protected void |
RawEmitter.emitToContext(LocalRenderContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
BooleanOperation.eval(Expression expr,
LocalRenderContext ctx)
Evaluates the operation into a boolean.
|
Object |
ReadGlobal.eval(LocalRenderContext ctx) |
Object |
OrOperation.eval(LocalRenderContext ctx) |
Object |
InstanceCheck.eval(LocalRenderContext ctx) |
Object |
ConstantEnum.eval(LocalRenderContext ctx) |
Object |
ConstantClass.eval(LocalRenderContext ctx) |
Object |
ConstantBoolean.eval(LocalRenderContext ctx) |
Object |
ConcatExpression.eval(LocalRenderContext ctx) |
Object |
RelationalIntOperation.eval(LocalRenderContext ctx) |
Object |
AndOperation.eval(LocalRenderContext ctx) |
Object |
ConstantNull.eval(LocalRenderContext ctx) |
Object |
EqualsOperation.eval(LocalRenderContext ctx) |
Object |
NativeCast.eval(LocalRenderContext ctx) |
Object |
Negation.eval(LocalRenderContext ctx) |
Object |
Expression.eval(LocalRenderContext ctx)
Evaluates the expression into an object using the given context.
|
Object |
MethodCall.eval(LocalRenderContext ctx) |
Object |
RenderEmitterExpression.eval(LocalRenderContext ctx) |
Object |
ReadLocal.eval(LocalRenderContext ctx) |
Object |
IntOperation.eval(LocalRenderContext ctx) |
Object |
NoodleOperation.eval(LocalRenderContext ctx) |
Object |
MacroCall.eval(LocalRenderContext ctx) |
Object |
TenaryOperation.eval(LocalRenderContext ctx) |
Object |
ConstantInt.eval(LocalRenderContext ctx) |
Object |
ConstantString.eval(LocalRenderContext ctx) |
Object |
TransformerCast.eval(LocalRenderContext ctx) |
Modifier and Type | Method and Description |
---|---|
LocalRenderContext |
LocalRenderContext.createChildContext(Template template)
Creates a child context to invoke the given template.
|
LocalRenderContext |
LocalRenderContext.createClosureContext()
Creates a closure context which can be put on the render stack as child, to provide access to the variables
of the enclosed context and to maintain a valid renderstack.
|
LocalRenderContext |
GlobalRenderContext.createContext(Template template)
Creates a local render context to invoke the given template.
|
LocalRenderContext |
LocalRenderContext.createInlineContext(Template template)
Creates an inline context which uses the same locals as this context but references another template.
|
Modifier and Type | Method and Description |
---|---|
static RenderException |
RenderException.create(LocalRenderContext context,
Exception ex)
Creates a new error for the given context and root exception.
|
protected void |
GlobalRenderContext.release(LocalRenderContext renderContext)
Releases the local render context to free up the allocated stack.
|
void |
LocalRenderContext.setBlocks(LocalRenderContext context,
Map<String,Emitter> blocks)
Specifies the blocks made available by the caller.
|
Copyright © 2018. All rights reserved.