Package org.terrier.matching.matchops
Class MatchOpQLParser
- java.lang.Object
-
- org.terrier.matching.matchops.MatchOpQLParser
-
- All Implemented Interfaces:
MatchOpQLParserConstants
public class MatchOpQLParser extends java.lang.Object implements MatchOpQLParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.MatchOpQLParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.terrier.matching.matchops.MatchOpQLParserConstants
BAND, BASE64, BASE64WORD, CLOSE_PAREN, COLON, COLON_KV, COMBINE, DEFAULT, EOF, EQUALS, FUZZY, HASH, INT, OPEN_PAREN, OPEN_PAREN_KV, OW, PERIOD, PREFIX, SYN, TAG, tokenImage, UW, WithinCombineKV, WithinIndri, WORD, WORD_OR_INT_OR_FLOAT
-
-
Constructor Summary
Constructors Constructor Description MatchOpQLParser(java.io.InputStream stream)
Constructor with InputStream.MatchOpQLParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingMatchOpQLParser(java.io.Reader stream)
Constructor.MatchOpQLParser(java.lang.String r)
MatchOpQLParser(MatchOpQLParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
-
-
Field Detail
-
token_source
public MatchOpQLParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
MatchOpQLParser
public MatchOpQLParser(java.lang.String r)
-
MatchOpQLParser
public MatchOpQLParser(java.io.InputStream stream)
Constructor with InputStream.
-
MatchOpQLParser
public MatchOpQLParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
MatchOpQLParser
public MatchOpQLParser(java.io.Reader stream)
Constructor.
-
MatchOpQLParser
public MatchOpQLParser(MatchOpQLParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
parseOne
public final java.util.List<MatchingQueryTerms.MatchingTerm> parseOne() throws ParseException
- Throws:
ParseException
-
parseAll
public final java.util.List<MatchingQueryTerms.MatchingTerm> parseAll() throws ParseException
- Throws:
ParseException
-
parse
public final MatchingQueryTerms.MatchingTerm parse() throws ParseException
- Throws:
ParseException
-
combine
public final java.util.List<MatchingQueryTerms.MatchingTerm> combine() throws ParseException
- Throws:
ParseException
-
tag
public final java.util.List<MatchingQueryTerms.MatchingTerm> tag() throws ParseException
- Throws:
ParseException
-
prefix
public final MatchingQueryTerms.MatchingTerm prefix() throws ParseException
- Throws:
ParseException
-
syn
public final MatchingQueryTerms.MatchingTerm syn() throws ParseException
- Throws:
ParseException
-
band
public final MatchingQueryTerms.MatchingTerm band() throws ParseException
- Throws:
ParseException
-
uw
public final MatchingQueryTerms.MatchingTerm uw() throws ParseException
- Throws:
ParseException
-
ow
public final MatchingQueryTerms.MatchingTerm ow() throws ParseException
- Throws:
ParseException
-
ow_implicit
public final MatchingQueryTerms.MatchingTerm ow_implicit() throws ParseException
- Throws:
ParseException
-
fuzzy
public final MatchingQueryTerms.MatchingTerm fuzzy() throws ParseException
- Throws:
ParseException
-
base64
public final MatchingQueryTerms.MatchingTerm base64() throws ParseException
- Throws:
ParseException
-
word
public final MatchingQueryTerms.MatchingTerm word() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(MatchOpQLParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-