org.eclipse.mylyn.internal.wikitext.confluence.core.phrase
Class StrangePhraseModifier
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
org.eclipse.mylyn.internal.wikitext.confluence.core.phrase.SimpleWrappedPhraseModifier
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.
Method Summary |
protected String |
getPattern(int groupOffset)
Get the regular expression pattern that matches this element. |
StrangePhraseModifier
public StrangePhraseModifier(String delimiter,
DocumentBuilder.SpanType spanType,
boolean nesting)
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.