|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.z3950.zing.cql.CQLLexer
public class CQLLexer
Implementation of the CQL lexical syntax analyzer
Field Summary |
---|
Fields inherited from interface org.z3950.zing.cql.CQLTokenizer |
---|
TT_AND, TT_EOF, TT_EQEQ, TT_GE, TT_LE, TT_NE, TT_NOT, TT_NOTHING, TT_OR, TT_PROX, TT_SORTBY, TT_STRING, TT_WORD |
Constructor Summary | |
---|---|
CQLLexer(String cql,
boolean debug)
|
Method Summary | |
---|---|
static void |
main(String[] args)
|
void |
move()
Consume next input token |
int |
pos()
|
String |
render()
Render the type and value of the last consumed token |
String |
render(int token,
boolean quoteChars)
Render specified token type |
String |
value()
Return the value of the last consumed token |
int |
what()
Return the type of the last consumed token |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CQLLexer(String cql, boolean debug)
Method Detail |
---|
public void move()
CQLTokenizer
move
in interface CQLTokenizer
public String value()
CQLTokenizer
value
in interface CQLTokenizer
public int what()
CQLTokenizer
what
in interface CQLTokenizer
public String render()
CQLTokenizer
render
in interface CQLTokenizer
public String render(int token, boolean quoteChars)
CQLTokenizer
render
in interface CQLTokenizer
token
- token typequoteChars
- true, if single characters should be quoted for readability
public int pos()
pos
in interface CQLTokenizer
public static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |