Interface CQLTokenizer
- All Known Implementing Classes:
CQLLexer
public interface CQLTokenizer
API bridge between the parser and lexer implementation
- Author:
- jakub
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidmove()Consume next input tokenintpos()render()Render the type and value of the last consumed tokenrender(int what, boolean quote) Render specified token typevalue()Return the value of the last consumed tokenintwhat()Return the type of the last consumed token
-
Field Details
-
TT_EOF
static final int TT_EOF- See Also:
-
TT_WORD
static final int TT_WORD- See Also:
-
TT_NOTHING
static final int TT_NOTHING- See Also:
-
TT_STRING
static final int TT_STRING- See Also:
-
TT_LE
static final int TT_LE- See Also:
-
TT_GE
static final int TT_GE- See Also:
-
TT_NE
static final int TT_NE- See Also:
-
TT_EQEQ
static final int TT_EQEQ- See Also:
-
TT_AND
static final int TT_AND- See Also:
-
TT_OR
static final int TT_OR- See Also:
-
TT_NOT
static final int TT_NOT- See Also:
-
TT_PROX
static final int TT_PROX- See Also:
-
TT_SORTBY
static final int TT_SORTBY- See Also:
-
-
Method Details
-
move
void move()Consume next input token -
value
-
what
int what()Return the type of the last consumed token- Returns:
- last consumed token
-
render
-
render
Render specified token type- Parameters:
what- token typequote- true, if single characters should be quoted for readability- Returns:
- human-readable string
-
pos
int pos()
-