|
Mylyn WikiText version 3.3.1.v20091215-0000 | |||||||||
| 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.Processor
org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor
public abstract class PatternBasedElementProcessor
A processor that is capable of processing a specific type of markup element
| Field Summary | |
|---|---|
protected Map<Integer,org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor.Group> |
groupByIndex
|
protected int |
lineEndOffset
|
protected int |
lineStartOffset
|
| Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
|---|
builder, markupLanguage, parser, state |
| Constructor Summary | |
|---|---|
PatternBasedElementProcessor()
|
|
| Method Summary | |
|---|---|
abstract void |
emit()
Emit the content of the element |
int |
end(int groupNumber)
Get the end offset of a capturing group, or -1 if the group did not match any text. |
int |
getLineEndOffset()
Get the offset within the line at which this element ended |
int |
getLineStartOffset()
Get the offset within the line at which this element was started |
String |
group(int groupNumber)
Get the capturing group text, or null if the group did not match any text. |
void |
setGroup(int group,
String capturedText,
int start,
int end)
Set the captured text for the given group. |
void |
setLineEndOffset(int lineEndOffset)
|
void |
setLineStartOffset(int lineStartOffset)
|
int |
start(int groupNumber)
Get the start offset of a capturing group, or -1 if the group did not match any text. |
| Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
|---|
clone, getBuilder, getMarkupLanguage, getParser, getState, setParser, setState |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int lineStartOffset
protected int lineEndOffset
protected Map<Integer,org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor.Group> groupByIndex
| Constructor Detail |
|---|
public PatternBasedElementProcessor()
| Method Detail |
|---|
public void setGroup(int group,
String capturedText,
int start,
int end)
group - the 1-based groupcapturedText - the text that was capturedgroup(int)public int getLineStartOffset()
Matcher.start()public void setLineStartOffset(int lineStartOffset)
public int getLineEndOffset()
Matcher.end()public void setLineEndOffset(int lineEndOffset)
public String group(int groupNumber)
group in interface MatchergroupNumber - the 1-based group
Matcher.group(int)public int start(int groupNumber)
start in interface MatchergroupNumber - the 1-based group
Matcher.start(int)public int end(int groupNumber)
end in interface MatchergroupNumber - the 1-based group
Matcher.start(int)public abstract void emit()
|
Mylyn WikiText version 3.3.1.v20091215-0000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||