Class MacroUtil

java.lang.Object
org.csstudio.opibuilder.util.MacroUtil

public class MacroUtil extends Object
The utility functions for macros operations.
  • 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 parsed
      macroTableProvider - 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.