public abstract class AbstractWikipediaParser extends AbstractParser
| Modifier and Type | Field and Description |
|---|---|
protected static HTMLTag |
BOLD |
protected static HTMLTag |
BOLDITALIC |
protected static HTMLTag |
ITALIC |
protected static int |
TokenBOLD |
protected static int |
TokenBOLDITALIC |
protected static int |
TokenEOF |
protected static int |
TokenIgnore |
protected static int |
TokenITALIC |
protected static int |
TokenSTART |
fCurrentCharacter, fCurrentPosition, fWhiteStart, fWhiteStartPositionEOF, fScannerPosition, fSource, fStringSource, fWikiModel| Constructor and Description |
|---|
AbstractWikipediaParser(String stringSource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createContentToken(int diff)
Copy the read ahead content in the resulting HTML text token.
|
static String |
getRedirectedRawContent(IWikiModel wikiModel,
ParsedPageName parsedPagename,
Map<String,String> templateParameters) |
protected static String |
getRedirectedTemplateContent(IWikiModel wikiModel,
String redirectedLink,
Map<String,String> templateParameters) |
protected boolean |
parseHTMLCommentTags() |
protected TagStack |
parseRecursiveInternal(IWikiModel wikiModel,
boolean createOnlyLocalStack,
boolean noTOC) |
protected void |
reduceStackUntilToken(TagToken node)
Reduce the current token stack until the given nodes name is at the top of
the stack.
|
protected void |
reduceTokenStack() |
protected void |
reduceTokenStackBoldItalic() |
abstract void |
runParser() |
protected abstract void |
setNoToC(boolean noToC) |
consumeWhitespace, findWikiLinkEnd, getNextChar, getNextCharAsWhitespace, isEmptyLine, readUntil, readUntilCharOrStopAtEOL, readUntilIgnoreCase, readUntilNestedIgnoreCase, readWhitespaceUntilEndOfLine, readWhitespaceUntilStartOfLinefindNestedEnd, findNestedEndSingle, findNestedParamEnd, findNestedTemplateEnd, getPosition, indexEndOfComment, indexEndOfNowiki, indexEndOfTable, indexOfUntilNoLetter, makeTag, nextNewline, nextNewlineCell, parseAttributes, parseTag, readSpecialWikiTags, readUntilIgnoreCase, setModel, setPosition, splitByChar, splitByChar, splitByPipe, splitByPipe, startsWith, wpList, wpTableprotected static final int TokenIgnore
protected static final int TokenSTART
protected static final int TokenEOF
protected static final int TokenBOLD
protected static final int TokenITALIC
protected static final int TokenBOLDITALIC
protected static final HTMLTag BOLD
protected static final HTMLTag ITALIC
protected static final HTMLTag BOLDITALIC
public AbstractWikipediaParser(String stringSource)
public abstract void runParser()
protected abstract void setNoToC(boolean noToC)
public static String getRedirectedRawContent(IWikiModel wikiModel, ParsedPageName parsedPagename, Map<String,String> templateParameters)
protected static String getRedirectedTemplateContent(IWikiModel wikiModel, String redirectedLink, Map<String,String> templateParameters)
protected void reduceTokenStack()
protected void createContentToken(int diff)
diff - subtract diff form the current parser position to get
the HTML text token end position.protected boolean parseHTMLCommentTags()
protected void reduceTokenStackBoldItalic()
protected void reduceStackUntilToken(TagToken node)
protected TagStack parseRecursiveInternal(IWikiModel wikiModel, boolean createOnlyLocalStack, boolean noTOC)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.