Package org.fastily.jwiki.core
Class WParser
java.lang.Object
org.fastily.jwiki.core.WParser
public class WParser extends Object
Parses wikitext into a DOM-style, manipulatable format that is easy to work with.
- Author:
- Fastily
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WParser.WikiText
Mutable representation of parsed wikitext.static class
WParser.WTemplate
Mutable representation of a parsed wikitext template. -
Method Summary
Modifier and Type Method Description static WParser.WikiText
parsePage(Wiki wiki, String page)
Parses the text of a page into a WikiText object.static WParser.WikiText
parseText(Wiki wiki, String text)
Parses the text of a page into a WikiText object.
-
Method Details
-
parsePage
Parses the text of a page into a WikiText object.- Parameters:
wiki
- The Wiki to usepage
- The title of the page to parse.- Returns:
- A WikiText representation of
page
, or null on error.
-
parseText
Parses the text of a page into a WikiText object.- Parameters:
wiki
- The Wiki to usetext
- The wikitext to parse- Returns:
- A WikiText representation of
text
, or null on error.
-