Package edu.umd.cs.findbugs.xml
Class QuoteMetaCharacters
- java.lang.Object
-
- edu.umd.cs.findbugs.xml.QuoteMetaCharacters
-
public abstract class QuoteMetaCharacters extends java.lang.Object
Quote metacharacters in a String.- Author:
- David Hovemeyer
- See Also:
MetaCharacterMap
-
-
Constructor Summary
Constructors Constructor Description QuoteMetaCharacters(java.lang.String text, MetaCharacterMap map)
Constructor.
-
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.
-
-
-
Constructor Detail
-
QuoteMetaCharacters
public QuoteMetaCharacters(@Nonnull java.lang.String text, @Nonnull MetaCharacterMap map)
Constructor.- Parameters:
text
- the text in which we want to quote metacharactersmap
- 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
-
-