public static class TemplateRenderer.Context extends Object
Constructor and Description |
---|
TemplateRenderer.Context(TemplateRenderer template,
FunctionRenderContext 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 TemplateRenderer.Context(TemplateRenderer template, FunctionRenderContext context)
public 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 © 2016 Blazebit. All Rights Reserved.