org.eclipse.mylyn.wikitext.core.parser.markup.phrase
Class LiteralPhraseModifierProcessor

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.markup.Processor
      extended by org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor
          extended by org.eclipse.mylyn.wikitext.core.parser.markup.phrase.LiteralPhraseModifierProcessor
All Implemented Interfaces:
Cloneable, Matcher

public class LiteralPhraseModifierProcessor
extends PatternBasedElementProcessor

A processor that emits the first group as characters, optionally unescaped.

Since:
1.0
Author:
David Green
See Also:
DocumentBuilder.characters(String), DocumentBuilder.charactersUnescaped(String)

Field Summary
 
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor
groupByIndex, lineEndOffset, lineStartOffset
 
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor
builder, markupLanguage, parser, state
 
Constructor Summary
LiteralPhraseModifierProcessor(boolean escaping)
          Construct this with a group of 1.
LiteralPhraseModifierProcessor(boolean escaping, int group)
           
 
Method Summary
 void emit()
          Emit the content of the element
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor
end, getLineEndOffset, getLineStartOffset, group, setGroup, setLineEndOffset, setLineStartOffset, start
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor
clone, getBuilder, getMarkupLanguage, getParser, getState, setParser, setState
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralPhraseModifierProcessor

public LiteralPhraseModifierProcessor(boolean escaping)
Construct this with a group of 1.

Parameters:
escaping - indicate if the processor should escape characters

LiteralPhraseModifierProcessor

public LiteralPhraseModifierProcessor(boolean escaping,
                                      int group)
Parameters:
escaping - indicate if the processor should escape characters
group - the group of characters to emit
Method Detail

emit

public void emit()
Description copied from class: PatternBasedElementProcessor
Emit the content of the element

Specified by:
emit in class PatternBasedElementProcessor


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.