Class QuoteMetaCharacters


  • public abstract class QuoteMetaCharacters
    extends java.lang.Object
    Quote metacharacters in a String.
    Author:
    David Hovemeyer
    See Also:
    MetaCharacterMap
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void emitLiteral​(java.lang.String s)
      Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.
      void process()
      Quote metacharacters in the text.
      • Methods inherited from class java.lang.Object

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

      • QuoteMetaCharacters

        public QuoteMetaCharacters​(@Nonnull
                                   java.lang.String text,
                                   @Nonnull
                                   MetaCharacterMap map)
        Constructor.
        Parameters:
        text - the text in which we want to quote metacharacters
        map - the MetaCharacterMap
    • Method Detail

      • process

        public void process()
                     throws java.io.IOException
        Quote metacharacters in the text.
        Throws:
        java.io.IOException
      • emitLiteral

        public abstract void emitLiteral​(java.lang.String s)
                                  throws java.io.IOException
        Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.
        Parameters:
        s - the literal text to emit
        Throws:
        java.io.IOException