public static class JREScriptRunner.VariableWrapperWrapper extends Object
Wraps around VariableWrapper and converts
VariableWrapperParams objects to JSON objects
Note: this class must be public so Nashorn can inspect it and
find the wrap() method.
| Constructor and Description |
|---|
VariableWrapperWrapper(VariableWrapper wrapper)
Creates a new wrapper
|
| Modifier and Type | Method and Description |
|---|---|
String |
wrap(Map<String,Object> params,
String prePunct,
String str,
String postPunct)
Call the
VariableWrapper with the given parameters |
public VariableWrapperWrapper(VariableWrapper wrapper)
wrapper - the variable wrapper to wrap aroundpublic String wrap(Map<String,Object> params, String prePunct, String str, String postPunct)
VariableWrapper with the given parametersparams - the context in which an item should be renderedprePunct - the text that precedes the item to renderstr - the item to renderpostPunct - the text that follows the item to render