public final class MacroManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cacheMacrosPreview(DataContext dataContext) |
static boolean |
containsMacros(java.lang.String str) |
java.lang.String |
expandMacrosInString(java.lang.String str,
boolean firstQueueExpand,
DataContext dataContext)
Expands all macros that are found in the
str . |
java.lang.String |
expandMacrosInString(java.lang.String str,
boolean firstQueueExpand,
DataContext dataContext,
java.lang.String defaultExpandValue,
boolean onlySilent)
Expand macros in a string.
|
java.lang.String |
expandSilentMacros(java.lang.String str,
boolean firstQueueExpand,
DataContext dataContext) |
static MacroManager |
getInstance() |
java.util.Collection<Macro> |
getMacros() |
public static MacroManager getInstance()
public java.util.Collection<Macro> getMacros()
public void cacheMacrosPreview(DataContext dataContext)
public static boolean containsMacros(java.lang.String str)
public java.lang.String expandMacrosInString(java.lang.String str, boolean firstQueueExpand, DataContext dataContext) throws Macro.ExecutionCancelledException
str
.public java.lang.String expandSilentMacros(java.lang.String str, boolean firstQueueExpand, DataContext dataContext) throws Macro.ExecutionCancelledException
public java.lang.String expandMacrosInString(java.lang.String str, boolean firstQueueExpand, DataContext dataContext, java.lang.String defaultExpandValue, boolean onlySilent) throws Macro.ExecutionCancelledException
str
- string possibly containing macrosfirstQueueExpand
- expand only macros that does not implement SecondQueueExpandMacro
dataContext
- data context used for macro expansiondefaultExpandValue
- if macro is expended to null, defaultExpandValue
will be used insteadonlySilent
- does not expand macros that may require interaction with user; defaultExpandValue
will be used for such macrosdefaultExpandValue
is nullMacro.ExecutionCancelledException