org.eclipse.mylyn.internal.wikitext.tracwiki.core.token
Class RevisionLogReplacementToken
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
org.eclipse.mylyn.internal.wikitext.tracwiki.core.token.RevisionLogReplacementToken
- All Implemented Interfaces:
- Cloneable
public class RevisionLogReplacementToken
- extends PatternBasedElement
recognizes links to Trac revision logs, eg: r1:3
or [1:3]
or log:@1:3
or
log:trunk@1:3
or [2:5/trunk]
- Author:
- David Green
RevisionLogReplacementToken
public RevisionLogReplacementToken()
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
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
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.