Class MetaCharacterMap


  • public class MetaCharacterMap
    extends java.lang.Object
    Map of metacharacters that need to be escaped, and what to replace them with.
    Author:
    David Hovemeyer
    See Also:
    QuoteMetaCharacters
    • Constructor Summary

      Constructors 
      Constructor Description
      MetaCharacterMap()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMeta​(char meta, java.lang.String replacement)
      Add a metacharacter and its replacement.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetaCharacterMap

        public MetaCharacterMap()
        Constructor. Creates an empty object.
    • Method Detail

      • addMeta

        public void addMeta​(char meta,
                            java.lang.String replacement)
        Add a metacharacter and its replacement.
        Parameters:
        meta - the metacharacter
        replacement - the String to replace the metacharacter with