Execute the script with the engine name in the format "EngineName:Script".
For example: "javascript:3 + 4".
Using a StringSubstitutor:
StringSubstitutor.createInterpolator().replace("${script:javascript:3 + 4}"));
Public access is through StringLookupFactory.
StringLookupFactory
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ScriptStringLookup | INSTANCE
Defines the singleton for this class. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The value returned by the execution.the engine:script to execute, may be null. key)Implements org. Execute the script with the engine name in the format "EngineName:Script". |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ScriptStringLookup INSTANCE Defines the singleton for this class. | |
| ScriptStringLookup | back to summary |
|---|---|
| private ScriptStringLookup() No need to build instances for now. | |
| lookup | back to summary |
|---|---|
| public String lookup(final String key) Implements org. Execute the script with the engine name in the format "EngineName:Script". Extra colons will be ignored.
For example: | |