org.z3950.zing.cql
Interface CQLTokenizer

All Known Implementing Classes:
CQLLexer

public interface CQLTokenizer

API bridge between the parser and lexer implementation

Author:
jakub

Field Summary
static int TT_AND
           
static int TT_EOF
           
static int TT_EQEQ
           
static int TT_GE
           
static int TT_LE
           
static int TT_NE
           
static int TT_NOT
           
static int TT_NOTHING
           
static int TT_OR
           
static int TT_PROX
           
static int TT_SORTBY
           
static int TT_STRING
           
static int TT_WORD
           
 
Method Summary
 void move()
          Consume next input token
 int pos()
           
 String render()
          Render the type and value of the last consumed token
 String render(int what, boolean quote)
          Render specified token type
 String value()
          Return the value of the last consumed token
 int what()
          Return the type of the last consumed token
 

Field Detail

TT_EOF

static final int TT_EOF
See Also:
Constant Field Values

TT_WORD

static final int TT_WORD
See Also:
Constant Field Values

TT_NOTHING

static final int TT_NOTHING
See Also:
Constant Field Values

TT_STRING

static final int TT_STRING
See Also:
Constant Field Values

TT_LE

static final int TT_LE
See Also:
Constant Field Values

TT_GE

static final int TT_GE
See Also:
Constant Field Values

TT_NE

static final int TT_NE
See Also:
Constant Field Values

TT_EQEQ

static final int TT_EQEQ
See Also:
Constant Field Values

TT_AND

static final int TT_AND
See Also:
Constant Field Values

TT_OR

static final int TT_OR
See Also:
Constant Field Values

TT_NOT

static final int TT_NOT
See Also:
Constant Field Values

TT_PROX

static final int TT_PROX
See Also:
Constant Field Values

TT_SORTBY

static final int TT_SORTBY
See Also:
Constant Field Values
Method Detail

move

void move()
Consume next input token


value

String value()
Return the value of the last consumed token

Returns:
value of the token

what

int what()
Return the type of the last consumed token

Returns:
last consumed token

render

String render()
Render the type and value of the last consumed token

Returns:
human-readable string

render

String render(int what,
              boolean quote)
Render specified token type

Parameters:
what - token type
quote - true, if single characters should be quoted for readability
Returns:
human-readable string

pos

int pos()


Copyright © 2008-2014 Index Data. All Rights Reserved.