Package edu.umd.cs.findbugs.xml
Class MetaCharacterMap
java.lang.Object
edu.umd.cs.findbugs.xml.MetaCharacterMap
Map of metacharacters that need to be escaped, and what to replace them with.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
metaCharacterSet
-
replacementMap
-
-
Constructor Details
-
MetaCharacterMap
public MetaCharacterMap()Constructor. Creates an empty object.
-
-
Method Details
-
addMeta
Add a metacharacter and its replacement.- Parameters:
meta
- the metacharacterreplacement
- the String to replace the metacharacter with
-
isMeta
boolean isMeta(char c) Return whether or not given character is a metacharacter. -
getReplacement
Get the replacement for a metacharacter.- Parameters:
c
- a String containing the metacharacter
-