Constructor and Description |
---|
Builder(Handlebars handlebars,
java.lang.String helperName,
TagType tagType,
Context context,
Template fn)
Creates a new
Options.Builder . |
Modifier and Type | Method and Description |
---|---|
Options |
build()
Build a new
Options object. |
Options.Builder |
setBlockParams(java.util.List<java.lang.String> blockParams)
Set the options block params.
|
Options.Builder |
setHash(java.util.Map<java.lang.String,java.lang.Object> hash)
Set the options hash.
|
Options.Builder |
setInverse(Template inverse)
Set the inverse template.
|
Options.Builder |
setParams(java.lang.Object[] params)
Set the options parameters.
|
Options.Builder |
setWriter(java.io.Writer writer)
Set a writer, useful to improve performance.
|
public Builder(Handlebars handlebars, java.lang.String helperName, TagType tagType, Context context, Template fn)
Options.Builder
.handlebars
- A handlebars object. Required.helperName
- The name of the helper. Required.tagType
- The TagType
from where the helper was called.context
- A context object. Required.fn
- A template object. Required.public Options.Builder setHash(java.util.Map<java.lang.String,java.lang.Object> hash)
hash
- A hash table. Required.public Options.Builder setBlockParams(java.util.List<java.lang.String> blockParams)
blockParams
- A block params. Required.public Options.Builder setInverse(Template inverse)
inverse
- Inverse template. Required.public Options.Builder setParams(java.lang.Object[] params)
params
- A parameters list. Required.public Options.Builder setWriter(java.io.Writer writer)
writer
- A writer. Required.Copyright © 2010 - 2020 Adobe. All Rights Reserved