public class GlobalLocalPlaceholderReplacement extends GlobalLocalVariables
Constructor and Description |
---|
GlobalLocalPlaceholderReplacement()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
FunctionResolver |
getFunctionResolver()
Returns the function resolver
|
TextEngine |
getTextEngine()
Returns the underlying text engine which might be useful to do further
configuration settings.
|
java.lang.String |
replace(java.lang.String text)
Replaces all known variables in the given text and returns the
new string.
|
void |
setFunctionResolver(FunctionResolver functionResolver)
Sets the function resolver
|
protected void |
setTextEngine(TextEngine newValue) |
getGlobalVars, getLocalVars, getValue, globalVariables, isKnownVariable, knownVariableNames, localVariables, newGlobalContext, newLocalContext, removeVariable, set, setGlobal, setGlobalFrom, setGlobalObject, setGlobalVars, setLocal, setLocalFrom, setLocalObject, setLocalVars, setValue, setValueFor, setVariablesFrom
public GlobalLocalPlaceholderReplacement()
public java.lang.String replace(java.lang.String text) throws TextReplacementException
TextReplacementException
public TextEngine getTextEngine()
public FunctionResolver getFunctionResolver()
public void setFunctionResolver(FunctionResolver functionResolver)
protected void setTextEngine(TextEngine newValue)