edu.umd.cs.findbugs.xml

Class QuoteMetaCharacters

public abstract class QuoteMetaCharacters extends Object

Quote metacharacters in a String.

Author: David Hovemeyer

See Also: MetaCharacterMap

Constructor Summary
QuoteMetaCharacters(String text, MetaCharacterMap map)
Constructor.
Method Summary
abstract voidemitLiteral(String s)
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.
voidprocess()
Quote metacharacters in the text.

Constructor Detail

QuoteMetaCharacters

public QuoteMetaCharacters(String text, MetaCharacterMap map)
Constructor.

Parameters: text the text in which we want to quote metacharacters map the MetaCharacterMap

Method Detail

emitLiteral

public abstract void emitLiteral(String s)
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.

Parameters: s the literal text to emit

process

public void process()
Quote metacharacters in the text.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.