KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > script > el > parser > NetUIELParserConstants


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.script.el.parser;
19
20 public interface NetUIELParserConstants {
21
22     int EOF = 0;
23     int NON_EXPRESSION_TEXT = 1;
24     int START_EXPRESSION = 2;
25     int ESCAPED_START_EXPRESSION = 3;
26     int END_EXPRESSION = 4;
27     int STRING_LITERAL = 5;
28     int ECMA_ESCAPE_SEQUENCE = 6;
29     int HIT = 7;
30     int IDENTIFIER = 8;
31     int IMPL_OBJ_START = 9;
32     int LETTER = 10;
33     int DIGIT = 11;
34     int INTEGER = 12;
35     int DOT = 13;
36     int DQUOTE = 14;
37     int SQUOTE = 15;
38     int LBRACKET = 16;
39     int RBRACKET = 17;
40
41     int DEFAULT = 0;
42     int IN_EXPRESSION = 1;
43
44     String JavaDoc[] tokenImage = {
45         "<EOF>",
46         "<NON_EXPRESSION_TEXT>",
47         "\"{\"",
48         "\"\\\\\\\\{\"",
49         "\"}\"",
50         "<STRING_LITERAL>",
51         "<ECMA_ESCAPE_SEQUENCE>",
52         "<HIT>",
53         "<IDENTIFIER>",
54         "\"#\"",
55         "<LETTER>",
56         "<DIGIT>",
57         "<INTEGER>",
58         "\".\"",
59         "\"\\\"\"",
60         "\"\\\'\"",
61         "\"[\"",
62         "\"]\"",
63     };
64
65 }
66
Popular Tags