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

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
      extended by org.eclipse.mylyn.wikitext.core.parser.markup.phrase.HtmlEndTagPhraseModifier
All Implemented Interfaces:
Cloneable

public class HtmlEndTagPhraseModifier
extends PatternBasedElement

A phrase modifier that detects HTML and XML end-tags in the source, passing them through to the builder as either escaped or unescaped text.

Since:
1.0
Author:
David Green
See Also:
HtmlStartTagPhraseModifier

Constructor Summary
HtmlEndTagPhraseModifier()
          construct this phrase modifier with no escaping.
HtmlEndTagPhraseModifier(boolean escaping)
           
 
Method Summary
protected  String getPattern(int groupOffset)
          Get the regular expression pattern that matches this element.
protected  int getPatternGroupCount()
          The number of capturing groups in the pattern.
protected  PatternBasedElementProcessor newProcessor()
          create a new processor for processing the type of element detected by this class.
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlEndTagPhraseModifier

public HtmlEndTagPhraseModifier()
construct this phrase modifier with no escaping.


HtmlEndTagPhraseModifier

public HtmlEndTagPhraseModifier(boolean escaping)
Parameters:
escaping - indicate if the markup should be escaped
Method Detail

getPattern

protected String getPattern(int groupOffset)
Description copied from class: PatternBasedElement
Get the regular expression pattern that matches this element. Generally the pattern may be assembled into a single larger regular expression.

Specified by:
getPattern in class PatternBasedElement
Parameters:
groupOffset - the offset of the groups in the pattern, 0 indicating no offset
Returns:
the regular expression pattern

newProcessor

protected PatternBasedElementProcessor newProcessor()
Description copied from class: PatternBasedElement
create a new processor for processing the type of element detected by this class.

Specified by:
newProcessor in class PatternBasedElement

getPatternGroupCount

protected int getPatternGroupCount()
Description copied from class: PatternBasedElement
The number of capturing groups in the pattern. Note that implementations must take care to return the correct value otherwise the markup language will not work correctly.

Specified by:
getPatternGroupCount in class PatternBasedElement


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