org.eclipse.mylyn.internal.wikitext.textile.core.phrase
Class SimpleTextilePhraseModifier
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
org.eclipse.mylyn.internal.wikitext.textile.core.phrase.SimpleTextilePhraseModifier
- All Implemented Interfaces:
- java.lang.Cloneable
public class SimpleTextilePhraseModifier
- extends PatternBasedElement
A simple phrase modifier implementation that matches a pattern in text and emits a span containing
the content of the matched region.
- Author:
- David Green
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_GROUP
protected static final int CONTENT_GROUP
- See Also:
- Constant Field Values
ATTRIBUTES_OFFSET
protected static final int ATTRIBUTES_OFFSET
- See Also:
- Constant Field Values
SimpleTextilePhraseModifier
public SimpleTextilePhraseModifier(java.lang.String delimiter,
DocumentBuilder.SpanType spanType,
SimpleTextilePhraseModifier.Mode mode)
- Parameters:
delimiter - the text pattern to detectspanType - the type of span to be emitted for this phrase modifiernesting - indicate if this phrase modifier allows nested phrase modifiers
getPattern
protected java.lang.String getPattern(int groupOffset)
- Specified by:
getPattern in class PatternBasedElement
getPatternGroupCount
protected int getPatternGroupCount()
- Specified by:
getPatternGroupCount in class PatternBasedElement
getDelimiter
protected java.lang.String getDelimiter()
configureAttributes
protected static void configureAttributes(PatternBasedElementProcessor processor,
Attributes attributes)
getContent
protected static java.lang.String getContent(PatternBasedElementProcessor processor)
getStart
protected static int getStart(PatternBasedElementProcessor processor)
newProcessor
protected PatternBasedElementProcessor newProcessor()
- Specified by:
newProcessor in class PatternBasedElement
Copyright © 2011 FuseSource, Corp.. All Rights Reserved.