01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.script.el.parser;
20:
21: public interface NetUIELParserConstants {
22:
23: int EOF = 0;
24: int NON_EXPRESSION_TEXT = 1;
25: int START_EXPRESSION = 2;
26: int ESCAPED_START_EXPRESSION = 3;
27: int END_EXPRESSION = 4;
28: int STRING_LITERAL = 5;
29: int ECMA_ESCAPE_SEQUENCE = 6;
30: int HIT = 7;
31: int IDENTIFIER = 8;
32: int IMPL_OBJ_START = 9;
33: int LETTER = 10;
34: int DIGIT = 11;
35: int INTEGER = 12;
36: int DOT = 13;
37: int DQUOTE = 14;
38: int SQUOTE = 15;
39: int LBRACKET = 16;
40: int RBRACKET = 17;
41:
42: int DEFAULT = 0;
43: int IN_EXPRESSION = 1;
44:
45: String[] tokenImage = { "<EOF>", "<NON_EXPRESSION_TEXT>", "\"{\"",
46: "\"\\\\\\\\{\"", "\"}\"", "<STRING_LITERAL>",
47: "<ECMA_ESCAPE_SEQUENCE>", "<HIT>", "<IDENTIFIER>", "\"#\"",
48: "<LETTER>", "<DIGIT>", "<INTEGER>", "\".\"", "\"\\\"\"",
49: "\"\\\'\"", "\"[\"", "\"]\"", };
50:
51: }
|