Class DefinitionMaker


  • public class DefinitionMaker
    extends java.lang.Object
    DOCUMENT ME!
    Version:
    1.0
    Author:
    Andreas
    • Field Detail

      • ESCAPE

        public static final java.lang.String ESCAPE
        The string escape marker
        See Also:
        Constant Field Values
      • unknown

        protected java.lang.String unknown
    • Constructor Detail

      • DefinitionMaker

        public DefinitionMaker()
        Creates new DefinitionMaker
    • Method Detail

      • setUnknown

        public void setUnknown​(java.lang.String unknown)
        DOCUMENT-ME
      • getUnknown

        public java.lang.String getUnknown()
        DOCUMENT-ME
      • scanEscapes

        protected static java.lang.String scanEscapes​(java.lang.String s,
                                                      ReplacerFactory factory)
      • createDefinition

        public ReplacerSystem createDefinition​(java.lang.String defStr,
                                               java.lang.String cmdChars,
                                               ReplacerFactory factory)
        Parses defStr and sets up a replacers system accordingly.
      • createDefinition

        public static ReplacerSystem createDefinition​(java.lang.String defStr,
                                                      java.lang.String cmdChars,
                                                      ReplacerFactory factory,
                                                      java.lang.String unknown)
        Parses defStr and sets up a replacers system accordingly.
        Parameters:
        defStr - The definition
        cmdChars - separator chars
        factory - Replacer provider
        unknown - The string to be returned by replacers for "unknown" results
      • createReplacer

        protected static Replacer createReplacer​(java.lang.String token,
                                                 java.util.StringTokenizer st,
                                                 ReplacerFactory factory,
                                                 java.lang.String unknown,
                                                 ReplacerSystem env)