Package org.csstudio.opibuilder.util
Class MacroUtil
java.lang.Object
org.csstudio.opibuilder.util.MacroUtil
The utility functions for macros operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
replaceMacros
(String input, IMacroTableProvider macroTableProvider) Replace macros in String.
-
Constructor Details
-
MacroUtil
public MacroUtil()
-
-
Method Details
-
replaceMacros
public static String replaceMacros(String input, IMacroTableProvider macroTableProvider) throws InfiniteLoopException Replace macros in String.- Parameters:
input
- the input string to be parsedmacroTableProvider
- the macro table provider- Returns:
- Throws:
InfiniteLoopException
- when infinite loop is detected. For example, for a macro table "a=$(b), b=$(a)", this string "$(a)" will result in infinite loop.
-