Class ReplacerHelp

    • Method Detail

      • init

        public void init​(GameData data)
        Creates all replacers.
      • reworkRegionSwitches

        protected static void reworkRegionSwitches​(GameData data)
      • getReplacement

        public static java.lang.Object getReplacement​(Replacer replacer,
                                                      java.lang.Object arg)
        Applies the given replacer to the argument.
        Returns:
        the replacer result or null on error.
      • getDefaultReplacerFactory

        public static ReplacerFactory getDefaultReplacerFactory()
        Returns the default factory.
      • createReplacer

        public static ReplacerSystem createReplacer​(java.lang.String def,
                                                    java.lang.String cmd,
                                                    java.lang.String unknown)
        Parses defStr and sets up a replacers system accordingly.
      • createReplacer

        public static ReplacerSystem createReplacer​(java.lang.String def)
        Returns a replacer for the given definition string, using the default separator and unknown result "-?".
      • createReplacer

        public static ReplacerSystem createReplacer​(java.lang.String def,
                                                    java.lang.String unknown)
        Returns a replacer for the given definition string, using the default separator and given unknown result.