Package edu.umd.cs.findbugs.xml
Class QuoteMetaCharacters
java.lang.Object
edu.umd.cs.findbugs.xml.QuoteMetaCharacters
Quote metacharacters in a String.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.private int
findNextMeta
(String s, int start) void
process()
Quote metacharacters in the text.
-
Field Details
-
text
-
map
-
-
Constructor Details
-
QuoteMetaCharacters
Constructor.- Parameters:
text
- the text in which we want to quote metacharactersmap
- the MetaCharacterMap
-
-
Method Details
-
process
Quote metacharacters in the text.- Throws:
IOException
-
emitLiteral
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.- Parameters:
s
- the literal text to emit- Throws:
IOException
-
findNextMeta
-