public class TerrierQLParser extends Object implements TerrierQLParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
TerrierQLParserTokenManager |
token_source
Generated Token Manager.
|
ALPHANUMERIC, CLOSE_DISJUNCTIVE, CLOSE_PAREN, COLON, DEFAULT, EOF, FLOAT, HAT, NOT_REQUIRED, OLD_MAC_EOL, OPEN_DISJUNCTIVE, OPEN_PAREN, PROXIMITY, QUOTE, REQUIRED, SPACE, tokenImage, UNIX_EOL, WINDOWS_EOL, WithinWeight
Constructor and Description |
---|
TerrierQLParser(InputStream stream)
Constructor with InputStream.
|
TerrierQLParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
TerrierQLParser(Reader stream)
Constructor.
|
TerrierQLParser(String r) |
TerrierQLParser(TerrierQLParserTokenManager tm)
Constructor with generated Token Manager.
|
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing()
Disable tracing.
|
Query |
disjunctiveQuery() |
void |
enable_tracing()
Enable tracing.
|
Query |
explicitMultiTermQuery() |
Query |
fieldQuery() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
static void |
main(String[] args) |
Query |
parse() |
Query |
parseOne() |
Query |
phraseQuery() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
ReInit(TerrierQLParserTokenManager tm)
Reinitialise.
|
Query |
requirementQuery() |
Query |
singleTermQuery() |
public TerrierQLParserTokenManager token_source
public Token token
public Token jj_nt
public TerrierQLParser(String r)
public TerrierQLParser(InputStream stream)
public TerrierQLParser(InputStream stream, String encoding)
public TerrierQLParser(Reader stream)
public TerrierQLParser(TerrierQLParserTokenManager tm)
public static void main(String[] args)
public final Query parseOne() throws ParseException
ParseException
public final Query parse() throws ParseException
ParseException
public final Query singleTermQuery() throws ParseException
ParseException
public final Query fieldQuery() throws ParseException
ParseException
public final Query phraseQuery() throws ParseException
ParseException
public final Query disjunctiveQuery() throws ParseException
ParseException
public final Query explicitMultiTermQuery() throws ParseException
ParseException
public final Query requirementQuery() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(TerrierQLParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow