org.eclipse.mylyn.internal.wikitext.confluence.core.phrase
Class StrangePhraseModifier

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

public class StrangePhraseModifier
extends SimpleWrappedPhraseModifier

This class is 'strange' because it deals with the strange Confluence syntax for inline formatting. For example, although the syntax for bolding text is meant to be *BoldText*, Confluence might actually convert this into {*}BoldText{*}, *BoldText{*}, or {*}BoldText*, depending on the context.


Field Summary
 
Fields inherited from class org.eclipse.mylyn.internal.wikitext.confluence.core.phrase.SimpleWrappedPhraseModifier
CONTENT_GROUP, endDelimiter, nesting, spanType, startDelimiter
 
Constructor Summary
StrangePhraseModifier(String delimiter, DocumentBuilder.SpanType spanType, boolean nesting)
           
 
Method Summary
protected  String getPattern(int groupOffset)
          Get the regular expression pattern that matches this element.
 
Methods inherited from class org.eclipse.mylyn.internal.wikitext.confluence.core.phrase.SimpleWrappedPhraseModifier
getContent, getPatternGroupCount, getStart, newProcessor, quoteLite
 
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

StrangePhraseModifier

public StrangePhraseModifier(String delimiter,
                             DocumentBuilder.SpanType spanType,
                             boolean nesting)
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.

Overrides:
getPattern in class SimpleWrappedPhraseModifier
Parameters:
groupOffset - the offset of the groups in the pattern, 0 indicating no offset
Returns:
the regular expression pattern


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