Package com.tonic.analysis.query.parser
Class QueryLexer
- java.lang.Object
-
- com.tonic.analysis.query.parser.QueryLexer
-
public class QueryLexer extends Object
Tokenizer for the query DSL.
-
-
Constructor Summary
Constructors Constructor Description QueryLexer(String input)Creates a lexer over a query string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Token>tokenize()Scans the input from the start, discarding any tokens from a previous call.
-
-
-
Constructor Detail
-
QueryLexer
public QueryLexer(String input)
Creates a lexer over a query string.- Parameters:
input- the query source
-
-
Method Detail
-
tokenize
public List<Token> tokenize() throws ParseException
Scans the input from the start, discarding any tokens from a previous call.- Returns:
- the tokens, ending with an EOF token
- Throws:
ParseException- if the input contains an unterminated literal or an unknown character
-
-