public static class TemplateRenderer.Context extends Object
Constructor and Description |
---|
Context(TemplateRenderer template,
FunctionRenderContext context)
Constructs a context for a template renderer and a render context.
|
Modifier and Type | Method and Description |
---|---|
TemplateRenderer.Context |
addArgument(int index)
Uses the value of the argument at the given index as value to be bound to the current parameter.
|
TemplateRenderer.Context |
addParameter(String chunk)
Uses the given chunk as value to be bound to the current parameter.
|
void |
build()
Binds the values to the underlying
FunctionRenderContext . |
public Context(TemplateRenderer template, FunctionRenderContext context)
template
- The template renderercontext
- The function render contextpublic TemplateRenderer.Context addArgument(int index)
index
- The index of the argumentpublic TemplateRenderer.Context addParameter(String chunk)
chunk
- The chunk to use as valuepublic void build()
FunctionRenderContext
.Copyright © 2014–2018 Blazebit. All rights reserved.