|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement
public abstract class PatternBasedElement
An element of markup that is detected using a regular expression pattern. Serves as a means of detecting markup elements and providing a factory for processors that can process the markup element. Implementations of this class must be thread-safe (generally stateless).
Constructor Summary | |
---|---|
PatternBasedElement()
|
Method Summary | |
---|---|
PatternBasedElement |
clone()
|
protected abstract String |
getPattern(int groupOffset)
Get the regular expression pattern that matches this element. |
protected abstract int |
getPatternGroupCount()
The number of capturing groups in the pattern . |
protected abstract PatternBasedElementProcessor |
newProcessor()
create a new processor for processing the type of element detected by this class. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternBasedElement()
Method Detail |
---|
protected abstract String getPattern(int groupOffset)
groupOffset
- the offset of the groups in the pattern, 0 indicating no offset
protected abstract int getPatternGroupCount()
pattern
. Note that implementations must take care
to return the correct value otherwise the markup language will not work correctly.
protected abstract PatternBasedElementProcessor newProcessor()
public PatternBasedElement clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |