|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.textx.GlobalLocalVariables
org.pf.textx.GlobalLocalPlaceholderReplacement
public class GlobalLocalPlaceholderReplacement
Contains all variable settings and provides a mechanism, to replace variable names in a text by their current value.
| Constructor Summary | |
|---|---|
GlobalLocalPlaceholderReplacement()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.pf.textx.GlobalLocalVariables |
|---|
getValue, isKnownVariable, knownVariableNames, newGlobalContext, newLocalContext, removeVariable, set, setGlobal, setGlobalFrom, setGlobalObject, setLocal, setLocalFrom, setLocalObject, setValue, setValueFor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalLocalPlaceholderReplacement()
| Method Detail |
|---|
public java.lang.String replace(java.lang.String text)
throws TextReplacementException
TextReplacementExceptionpublic TextEngine getTextEngine()
public FunctionResolver getFunctionResolver()
public void setFunctionResolver(FunctionResolver functionResolver)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||