org.eclipse.mylyn.internal.wikitext.confluence.core.phrase
Class SimpleWrappedPhraseModifier
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
org.eclipse.mylyn.internal.wikitext.confluence.core.phrase.SimpleWrappedPhraseModifier
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- HyperlinkPhraseModifier, SimplePhraseModifier, StrangePhraseModifier
public class SimpleWrappedPhraseModifier
- extends PatternBasedElement
- Author:
- David Green
CONTENT_GROUP
protected static final int CONTENT_GROUP
- See Also:
- Constant Field Values
startDelimiter
protected final String startDelimiter
endDelimiter
protected final String endDelimiter
spanType
protected final DocumentBuilder.SpanType spanType
nesting
protected final boolean nesting
SimpleWrappedPhraseModifier
public SimpleWrappedPhraseModifier(String startDelimiter,
String endDelimiter,
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.
- 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
quoteLite
protected String quoteLite(String literal)
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
getContent
protected static String getContent(PatternBasedElementProcessor processor)
getStart
protected static int getStart(PatternBasedElementProcessor processor)
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
Copyright © 2011 FuseSource, Corp.. All Rights Reserved.