Rewrite lexer to comply with CQL spec
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLLexer.java
1 /*
2  * Copyright (c) 1995-2014, Index Datassss
3  * All rights reserved.
4  * See the file LICENSE for details.
5  */
6 package org.z3950.zing.cql;
7
8 /**
9  *
10  * @author jakub
11  */
12 public interface CQLLexer {
13   
14   public static final int TT_EOF  = -1;
15   public static final int TT_WORD = -3;
16   public static final int TT_NOTHING = -4;
17   
18   public final static int TT_LE     = 1000;     // The "<=" relation
19   public final static int TT_GE     = 1001;     // The ">=" relation
20   public final static int TT_NE     = 1002;     // The "<>" relation
21   public final static int TT_EQEQ   = 1003;     // The "==" relation
22   public final static int TT_AND    = 1004;     // The "and" boolean
23   public final static int TT_OR     = 1005;     // The "or" boolean
24   public final static int TT_NOT    = 1006;     // The "not" boolean
25   public final static int TT_PROX   = 1007;     // The "prox" boolean
26   public final static int TT_SORTBY = 1008;     // The "sortby" operator
27   
28   public void move();
29   
30   public String value();
31   
32   public int what();
33   
34   public String render();
35   
36   public String render(int what, boolean quote);
37   
38   public int pos();
39   
40 }