KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > expression > ast > ExpressionParserConstants


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.expression.ast;
5
6 public interface ExpressionParserConstants {
7
8   int EOF = 0;
9   int COMMA = 3;
10   int DOT = 4;
11   int WILDCARD = 5;
12   int ARRAY = 6;
13   int EAGER_WILDCARD = 7;
14   int AND = 8;
15   int OR = 9;
16   int NOT = 10;
17   int EXECUTION = 11;
18   int CALL = 12;
19   int SET = 13;
20   int GET = 14;
21   int HANDLER = 15;
22   int WITHIN = 16;
23   int WITHIN_CODE = 17;
24   int STATIC_INITIALIZATION = 18;
25   int CFLOW = 19;
26   int CFLOW_BELOW = 20;
27   int ARGS = 21;
28   int TARGET = 22;
29   int THIS = 23;
30   int IF = 24;
31   int HAS_METHOD = 25;
32   int HAS_FIELD = 26;
33   int POINTCUT_REFERENCE_WITH_ARGS = 27;
34   int POINTCUT_REFERENCE = 28;
35   int CLASS_PRIVATE = 29;
36   int CLASS_PROTECTED = 30;
37   int CLASS_PUBLIC = 31;
38   int CLASS_STATIC = 32;
39   int CLASS_ABSTRACT = 33;
40   int CLASS_FINAL = 34;
41   int CLASS_NOT = 35;
42   int CLASS_ATTRIBUTE = 36;
43   int CLASS_PATTERN = 37;
44   int CLASS_EXACT_IDENTIFIER = 38;
45   int CLASS_IDENTIFIER = 39;
46   int CLASS_JAVA_NAME_LETTER = 40;
47   int CLASS_POINTCUT_END = 41;
48   int METHOD_PUBLIC = 42;
49   int METHOD_PROTECTED = 43;
50   int METHOD_PRIVATE = 44;
51   int METHOD_STATIC = 45;
52   int METHOD_ABSTRACT = 46;
53   int METHOD_FINAL = 47;
54   int METHOD_NATIVE = 48;
55   int METHOD_SYNCHRONIZED = 49;
56   int TYPE_STATICINITIALIZATION = 50;
57   int METHOD_NOT = 51;
58   int METHOD_ANNOTATION = 52;
59   int METHOD_IDENTIFIER = 53;
60   int METHOD_CLASS_PATTERN = 54;
61   int METHOD_ARRAY_CLASS_PATTERN = 55;
62   int METHOD_ATTRIBUTE_EXACT_IDENTIFIER = 56;
63   int METHOD_PARAMETER_START = 57;
64   int METHOD_PARAMETER_END = 58;
65   int METHOD_JAVA_NAME_LETTER = 59;
66   int FIELD_PRIVATE = 60;
67   int FIELD_PROTECTED = 61;
68   int FIELD_PUBLIC = 62;
69   int FIELD_STATIC = 63;
70   int FIELD_ABSTRACT = 64;
71   int FIELD_FINAL = 65;
72   int FIELD_TRANSIENT = 66;
73   int FIELD_NOT = 67;
74   int FIELD_ANNOTATION = 68;
75   int FIELD_IDENTIFIER = 69;
76   int FIELD_CLASS_PATTERN = 70;
77   int FIELD_ARRAY_CLASS_PATTERN = 71;
78   int FIELD_ATTRIBUTE_EXACT_IDENTIFIER = 72;
79   int FIELD_JAVA_NAME_LETTER = 73;
80   int FIELD_POINTCUT_END = 74;
81   int PARAMETER_IDENTIFIER = 75;
82   int PARAMETER_CLASS_PATTERN = 76;
83   int PARAMETER_ARRAY_CLASS_PATTERN = 77;
84   int PARAMETER_ANNOTATION = 78;
85   int PARAMETER_JAVA_NAME_LETTER = 79;
86   int PARAMETER_NOT = 80;
87   int ARG_IDENTIFIER = 81;
88   int ARG_PATTERN = 82;
89   int ARG_ARRAY_PATTERN = 83;
90   int ARG_JAVA_NAME_LETTER = 84;
91   int ARGS_END = 85;
92
93   int IN_ARGS = 0;
94   int PARAMETERS = 1;
95   int FIELD = 2;
96   int METHOD = 3;
97   int CLASS = 4;
98   int DEFAULT = 5;
99
100   String JavaDoc[] tokenImage = {
101           "<EOF>",
102           "\" \"",
103           "\"\\t\"",
104           "\",\"",
105           "\".\"",
106           "\"*\"",
107           "\"[]\"",
108           "<EAGER_WILDCARD>",
109           "<AND>",
110           "<OR>",
111           "\"!\"",
112           "\"execution(\"",
113           "\"call(\"",
114           "\"set(\"",
115           "\"getDefault(\"",
116           "\"handler(\"",
117           "\"within(\"",
118           "\"withincode(\"",
119           "\"staticinitialization(\"",
120           "\"cflow(\"",
121           "\"cflowbelow(\"",
122           "\"args(\"",
123           "\"target(\"",
124           "\"this(\"",
125           "\"if()\"",
126           "\"hasmethod(\"",
127           "\"hasfield(\"",
128           "<POINTCUT_REFERENCE_WITH_ARGS>",
129           "<POINTCUT_REFERENCE>",
130           "\"private\"",
131           "\"protected\"",
132           "\"public\"",
133           "\"static\"",
134           "\"abstract\"",
135           "\"final\"",
136           "\"!\"",
137           "<CLASS_ATTRIBUTE>",
138           "<CLASS_PATTERN>",
139           "<CLASS_EXACT_IDENTIFIER>",
140           "<CLASS_IDENTIFIER>",
141           "<CLASS_JAVA_NAME_LETTER>",
142           "\")\"",
143           "\"public\"",
144           "\"protected\"",
145           "\"private\"",
146           "\"static\"",
147           "\"abstract\"",
148           "\"final\"",
149           "\"native\"",
150           "\"synchronized\"",
151           "\"staticinitialization\"",
152           "\"!\"",
153           "<METHOD_ANNOTATION>",
154           "<METHOD_IDENTIFIER>",
155           "<METHOD_CLASS_PATTERN>",
156           "<METHOD_ARRAY_CLASS_PATTERN>",
157           "<METHOD_ATTRIBUTE_EXACT_IDENTIFIER>",
158           "\"(\"",
159           "\")\"",
160           "<METHOD_JAVA_NAME_LETTER>",
161           "\"private\"",
162           "\"protected\"",
163           "\"public\"",
164           "\"static\"",
165           "\"abstract\"",
166           "\"final\"",
167           "\"transient\"",
168           "\"!\"",
169           "<FIELD_ANNOTATION>",
170           "<FIELD_IDENTIFIER>",
171           "<FIELD_CLASS_PATTERN>",
172           "<FIELD_ARRAY_CLASS_PATTERN>",
173           "<FIELD_ATTRIBUTE_EXACT_IDENTIFIER>",
174           "<FIELD_JAVA_NAME_LETTER>",
175           "\")\"",
176           "<PARAMETER_IDENTIFIER>",
177           "<PARAMETER_CLASS_PATTERN>",
178           "<PARAMETER_ARRAY_CLASS_PATTERN>",
179           "<PARAMETER_ANNOTATION>",
180           "<PARAMETER_JAVA_NAME_LETTER>",
181           "\"!\"",
182           "<ARG_IDENTIFIER>",
183           "<ARG_PATTERN>",
184           "<ARG_ARRAY_PATTERN>",
185           "<ARG_JAVA_NAME_LETTER>",
186           "\")\"",
187           "\"(\"",
188           "\")\"",
189   };
190
191 }
192
Popular Tags