|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bliki.wiki.filter.WikipediaScanner
info.bliki.wiki.filter.AbstractParser
info.bliki.wiki.filter.WikipediaParser
public class WikipediaParser
A Wikipedia syntax parser for the second pass in the parsing of a Wikipedia source text.
for the first pass| Field Summary |
|---|
| Fields inherited from class info.bliki.wiki.filter.WikipediaScanner |
|---|
EOF, TAG_NAME |
| Constructor Summary | |
|---|---|
WikipediaParser(java.lang.String stringSource,
boolean renderTemplate)
|
|
WikipediaParser(java.lang.String stringSource,
boolean renderTemplate,
IEventListener wikiListener)
|
|
| Method Summary | |
|---|---|
boolean |
isNoToC()
count the number of wiki headers in this document |
boolean |
isTemplate()
The text is rendered as a template |
static void |
parse(java.lang.String rawWikiText,
IWikiModel wikiModel,
boolean parseTemplates)
Call the parser on the first recursion level, where the text can contain a table of contents (TOC). |
static void |
parseRecursive(java.lang.String rawWikitext,
IWikiModel wikiModel)
Call the parser on the subsequent recursion levels, where the subtexts (of templates, table cells, list items or image captions) don't contain a table of contents (TOC) Note: the wiki model doesn't call the setUp() or
tearDown() methods for the subsequent recursive parser
steps. |
static TagStack |
parseRecursive(java.lang.String rawWikitext,
IWikiModel wikiModel,
boolean createOnlyLocalStack,
boolean noTOC)
Call the parser on the subsequent recursion levels, where the subtexts (of templates, table cells, list items or image captions) don't contain a table of contents (TOC) Note: the wiki model doesn't call the setUp() or
tearDown() methods for the subsequent recursive parser
steps. |
void |
setNoToC(boolean noToC)
Set the no table of contents render mode |
| Methods inherited from class info.bliki.wiki.filter.WikipediaScanner |
|---|
findNestedEnd, findNestedParamEnd, getPosition, indexEndOfComment, indexEndOfNowiki, indexEndOfTable, indexOf, indexOf, indexOfAttributes, main, nextNewline, replaceTemplateParameters, scanWhiteSpace, setModel, setPosition, splitByPipe, wpList, wpTable |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.bliki.wiki.filter.IParser |
|---|
setModel |
| Constructor Detail |
|---|
public WikipediaParser(java.lang.String stringSource,
boolean renderTemplate)
public WikipediaParser(java.lang.String stringSource,
boolean renderTemplate,
IEventListener wikiListener)
| Method Detail |
|---|
public boolean isNoToC()
isNoToC in interface IParsertoc -
public void setNoToC(boolean noToC)
IParser
setNoToC in interface IParser
public static void parse(java.lang.String rawWikiText,
IWikiModel wikiModel,
boolean parseTemplates)
setUp() method before parsing and the
tearDown() method after the parser has finished.
wikiModel - parseTemplates - rawWikitext -
public static void parseRecursive(java.lang.String rawWikitext,
IWikiModel wikiModel)
setUp() or
tearDown() methods for the subsequent recursive parser
steps.
rawWikitext - wikiModel -
public static TagStack parseRecursive(java.lang.String rawWikitext,
IWikiModel wikiModel,
boolean createOnlyLocalStack,
boolean noTOC)
setUp() or
tearDown() methods for the subsequent recursive parser
steps.
rawWikitext - wikiModel - noTOC - appendStack -
public boolean isTemplate()
IParser
isTemplate in interface IParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||