public class Parser extends Object implements ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
Token |
token |
ParserTokenManager |
token_source |
ACRONYM, CJK_LETTER, DATE, DEFAULT, DIGIT, EOF, GRAM, LETTER, MARK, NUM, SYMBOL, tokenImage, WORD
Constructor and Description |
---|
Parser(InputStream stream) |
Parser(ParserTokenManager tm) |
Parser(Reader stream) |
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing() |
void |
enable_tracing() |
ParseException |
generateParseException() |
Token |
getNextToken() |
Token |
getToken(int index) |
static void |
main(String[] args) |
Token |
next()
Returns the next token in the stream, or null at EOS.
|
Query |
readClausula() |
Query |
readClausulaI() |
Query |
readClausulaX() |
Query |
readPhrase() |
void |
readQuery(QGroup q) |
QTerm |
readToken() |
String |
readTokSpec() |
void |
ReInit(InputStream stream) |
void |
ReInit(ParserTokenManager tm) |
void |
ReInit(Reader stream) |
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser(InputStream stream)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public static void main(String[] args)
public final Token next() throws ParseException
ParseException
public final String readTokSpec() throws ParseException
ParseException
public final QTerm readToken() throws ParseException
ParseException
public final Query readClausulaX() throws ParseException
ParseException
public final Query readPhrase() throws ParseException
ParseException
public final Query readClausulaI() throws ParseException
ParseException
public final Query readClausula() throws ParseException
ParseException
public final void readQuery(QGroup q) throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2016 Egothor. All Rights Reserved.