public abstract class AbstractParser extends WikipediaScanner
| Modifier and Type | Field and Description |
|---|---|
protected char |
fCurrentCharacter |
protected int |
fCurrentPosition |
protected boolean |
fWhiteStart |
protected int |
fWhiteStartPosition |
EOF, fScannerPosition, fSource, fStringSource, fWikiModel| Constructor and Description |
|---|
AbstractParser(String stringSource) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
consumeWhitespace() |
protected boolean |
findWikiLinkEnd()
Read the characters until the end position of the current wiki link is
found.
|
protected boolean |
getNextChar(char testedChar) |
protected boolean |
getNextCharAsWhitespace() |
protected boolean |
isEmptyLine(int diff) |
protected boolean |
readUntil(String untilString)
Read the characters until the given string is found and set the current
position of the parser behind the found string.
|
protected boolean |
readUntilCharOrStopAtEOL(char testedChar)
Read until character is found or stop at end-of-line
|
protected int |
readUntilIgnoreCase(String startString,
String endString)
Read the characters until the concatenated start and end
substring is found.
|
protected int |
readUntilNestedIgnoreCase(WikiTagNode node) |
protected int |
readWhitespaceUntilEndOfLine(int diff) |
protected int |
readWhitespaceUntilStartOfLine(int diff) |
findNestedEnd, findNestedEndSingle, findNestedParamEnd, findNestedTemplateEnd, getPosition, indexEndOfComment, indexEndOfNowiki, indexEndOfTable, indexOfUntilNoLetter, makeTag, nextNewline, nextNewlineCell, parseAttributes, parseTag, readSpecialWikiTags, readUntilIgnoreCase, setModel, setPosition, splitByChar, splitByChar, splitByPipe, splitByPipe, startsWith, wpList, wpTableprotected char fCurrentCharacter
protected int fCurrentPosition
protected boolean fWhiteStart
protected int fWhiteStartPosition
public AbstractParser(String stringSource)
protected final boolean readUntil(String untilString)
untilString - true if the string was found; false
otherwiseprotected final int readUntilIgnoreCase(String startString, String endString)
startString - the start string which should be searched in exact case modeendString - the end string which should be searched in ignore case modeprotected int readUntilNestedIgnoreCase(WikiTagNode node)
protected final boolean readUntilCharOrStopAtEOL(char testedChar)
testedChar - search the next position of this chartrue if the tested character can be foundprotected boolean isEmptyLine(int diff)
protected int consumeWhitespace()
protected int readWhitespaceUntilEndOfLine(int diff)
protected int readWhitespaceUntilStartOfLine(int diff)
protected final boolean getNextChar(char testedChar)
protected final boolean getNextCharAsWhitespace()
protected final boolean findWikiLinkEnd()
true if the end of the wiki link was found.Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.