View Javadoc

1   /* Generated By:JJTree&JavaCC: Do not edit this line. JspParserConstants.java */
2   /** 
3    * JSP Parser for PMD.
4    * @author Pieter ? Application Engineers NV/SA ? http://www.ae.be
5    */
6   
7   package net.sourceforge.pmd.jsp.ast;
8   
9   
10  /**
11   * Token literal values and constants.
12   * Generated by org.javacc.parser.OtherFilesGen#start()
13   */
14  public interface JspParserConstants {
15  
16    /** End of File. */
17    int EOF = 0;
18    /** RegularExpression Id. */
19    int ALPHA_CHAR = 1;
20    /** RegularExpression Id. */
21    int NUM_CHAR = 2;
22    /** RegularExpression Id. */
23    int ALPHANUM_CHAR = 3;
24    /** RegularExpression Id. */
25    int IDENTIFIER_CHAR = 4;
26    /** RegularExpression Id. */
27    int IDENTIFIER = 5;
28    /** RegularExpression Id. */
29    int XMLNAME = 6;
30    /** RegularExpression Id. */
31    int QUOTED_STRING_NO_BREAKS = 7;
32    /** RegularExpression Id. */
33    int QUOTED_STRING = 8;
34    /** RegularExpression Id. */
35    int WHITESPACE = 9;
36    /** RegularExpression Id. */
37    int NEWLINE = 10;
38    /** RegularExpression Id. */
39    int QUOTE = 11;
40    /** RegularExpression Id. */
41    int NO_WHITESPACE_OR_LT_OR_DOLLAR = 12;
42    /** RegularExpression Id. */
43    int NO_LT_OR_DOLLAR = 13;
44    /** RegularExpression Id. */
45    int DOLLAR = 14;
46    /** RegularExpression Id. */
47    int NO_OPENBRACE_OR_LT = 15;
48    /** RegularExpression Id. */
49    int TEXT_IN_EL = 16;
50    /** RegularExpression Id. */
51    int EL_ESCAPE = 17;
52    /** RegularExpression Id. */
53    int NO_JSP_COMMENT_END = 18;
54    /** RegularExpression Id. */
55    int NO_JSP_TAG_END = 19;
56    /** RegularExpression Id. */
57    int TAG_START = 22;
58    /** RegularExpression Id. */
59    int ENDTAG_START = 23;
60    /** RegularExpression Id. */
61    int COMMENT_START = 24;
62    /** RegularExpression Id. */
63    int DECL_START = 25;
64    /** RegularExpression Id. */
65    int DOCTYPE_DECL_START = 26;
66    /** RegularExpression Id. */
67    int CDATA_START = 27;
68    /** RegularExpression Id. */
69    int JSP_COMMENT_START = 28;
70    /** RegularExpression Id. */
71    int JSP_DECLARATION_START = 29;
72    /** RegularExpression Id. */
73    int JSP_EXPRESSION_START = 30;
74    /** RegularExpression Id. */
75    int JSP_SCRIPTLET_START = 31;
76    /** RegularExpression Id. */
77    int JSP_DIRECTIVE_START = 32;
78    /** RegularExpression Id. */
79    int EL_EXPRESSION = 33;
80    /** RegularExpression Id. */
81    int UNPARSED_TEXT = 34;
82    /** RegularExpression Id. */
83    int JSP_DIRECTIVE_NAME = 35;
84    /** RegularExpression Id. */
85    int JSP_DIRECTIVE_ATTRIBUTE_NAME = 36;
86    /** RegularExpression Id. */
87    int JSP_DIRECTIVE_ATTRIBUTE_EQUALS = 37;
88    /** RegularExpression Id. */
89    int JSP_DIRECTIVE_ATTRIBUTE_VALUE = 38;
90    /** RegularExpression Id. */
91    int JSP_DIRECTIVE_END = 39;
92    /** RegularExpression Id. */
93    int JSP_SCRIPTLET_END = 40;
94    /** RegularExpression Id. */
95    int JSP_SCRIPTLET = 41;
96    /** RegularExpression Id. */
97    int JSP_EXPRESSION_END = 42;
98    /** RegularExpression Id. */
99    int JSP_EXPRESSION = 43;
100   /** RegularExpression Id. */
101   int JSP_DECLARATION_END = 44;
102   /** RegularExpression Id. */
103   int JSP_DECLARATION = 45;
104   /** RegularExpression Id. */
105   int JSP_COMMENT_END = 46;
106   /** RegularExpression Id. */
107   int JSP_COMMENT_CONTENT = 47;
108   /** RegularExpression Id. */
109   int WHITESPACES = 48;
110   /** RegularExpression Id. */
111   int NAME = 49;
112   /** RegularExpression Id. */
113   int PUBLIC = 50;
114   /** RegularExpression Id. */
115   int SYSTEM = 51;
116   /** RegularExpression Id. */
117   int DOCTYPE_DECL_END = 52;
118   /** RegularExpression Id. */
119   int QUOTED_LITERAL = 53;
120   /** RegularExpression Id. */
121   int UNPARSED = 54;
122   /** RegularExpression Id. */
123   int CDATA_END = 55;
124   /** RegularExpression Id. */
125   int TAG_NAME = 56;
126   /** RegularExpression Id. */
127   int LST_ERROR = 57;
128   /** RegularExpression Id. */
129   int ATTR_NAME = 58;
130   /** RegularExpression Id. */
131   int TAG_END = 59;
132   /** RegularExpression Id. */
133   int DECL_END = 60;
134   /** RegularExpression Id. */
135   int TAG_SLASHEND = 61;
136   /** RegularExpression Id. */
137   int ATTR_EQ = 62;
138   /** RegularExpression Id. */
139   int IN_TAG_ERROR = 63;
140   /** RegularExpression Id. */
141   int SINGLE_QUOTE = 64;
142   /** RegularExpression Id. */
143   int DOUBLE_QUOTE = 65;
144   /** RegularExpression Id. */
145   int EL_EXPRESSION_IN_ATTRIBUTE = 66;
146   /** RegularExpression Id. */
147   int VALUE_BINDING_IN_ATTRIBUTE = 67;
148   /** RegularExpression Id. */
149   int JSP_EXPRESSION_IN_ATTRIBUTE = 68;
150   /** RegularExpression Id. */
151   int ENDING_SINGLE_QUOTE = 69;
152   /** RegularExpression Id. */
153   int UNPARSED_TEXT_NO_SINGLE_QUOTES = 70;
154   /** RegularExpression Id. */
155   int DOLLAR_OR_HASH_SINGLE_QUOTE = 71;
156   /** RegularExpression Id. */
157   int ENDING_DOUBLE_QUOTE = 72;
158   /** RegularExpression Id. */
159   int UNPARSED_TEXT_NO_DOUBLE_QUOTES = 73;
160   /** RegularExpression Id. */
161   int DOLLAR_OR_HASH_DOUBLE_QUOTE = 74;
162   /** RegularExpression Id. */
163   int COMMENT_END = 75;
164   /** RegularExpression Id. */
165   int COMMENT_TEXT = 76;
166   /** RegularExpression Id. */
167   int HTML_SCRIPT_CONTENT = 77;
168   /** RegularExpression Id. */
169   int HTML_SCRIPT_END_TAG = 78;
170 
171   /** Lexical state. */
172   int HtmlScriptContentState = 0;
173   /** Lexical state. */
174   int CommentState = 1;
175   /** Lexical state. */
176   int AttrValueBetweenDoubleQuotesState = 2;
177   /** Lexical state. */
178   int AttrValueBetweenSingleQuotesState = 3;
179   /** Lexical state. */
180   int StartTagState = 4;
181   /** Lexical state. */
182   int CDataState = 5;
183   /** Lexical state. */
184   int DocTypeExternalIdState = 6;
185   /** Lexical state. */
186   int DocTypeState = 7;
187   /** Lexical state. */
188   int JspCommentState = 8;
189   /** Lexical state. */
190   int JspDeclarationState = 9;
191   /** Lexical state. */
192   int JspExpressionState = 10;
193   /** Lexical state. */
194   int JspScriptletState = 11;
195   /** Lexical state. */
196   int InTagState = 12;
197   /** Lexical state. */
198   int AfterTagState = 13;
199   /** Lexical state. */
200   int AttrValueState = 14;
201   /** Lexical state. */
202   int JspDirectiveAttributesState = 15;
203   /** Lexical state. */
204   int JspDirectiveState = 16;
205   /** Lexical state. */
206   int DEFAULT = 17;
207 
208   /** Literal token values. */
209   String[] tokenImage = {
210     "<EOF>",
211     "<ALPHA_CHAR>",
212     "<NUM_CHAR>",
213     "<ALPHANUM_CHAR>",
214     "<IDENTIFIER_CHAR>",
215     "<IDENTIFIER>",
216     "<XMLNAME>",
217     "<QUOTED_STRING_NO_BREAKS>",
218     "<QUOTED_STRING>",
219     "<WHITESPACE>",
220     "<NEWLINE>",
221     "<QUOTE>",
222     "<NO_WHITESPACE_OR_LT_OR_DOLLAR>",
223     "<NO_LT_OR_DOLLAR>",
224     "\"$\"",
225     "<NO_OPENBRACE_OR_LT>",
226     "<TEXT_IN_EL>",
227     "<EL_ESCAPE>",
228     "<NO_JSP_COMMENT_END>",
229     "<NO_JSP_TAG_END>",
230     "<token of kind 20>",
231     "<token of kind 21>",
232     "\"<\"",
233     "\"</\"",
234     "\"<!--\"",
235     "\"<?\"",
236     "\"<!DOCTYPE\"",
237     "\"<![CDATA[\"",
238     "\"<%--\"",
239     "\"<%!\"",
240     "\"<%=\"",
241     "\"<%\"",
242     "\"<%@\"",
243     "<EL_EXPRESSION>",
244     "<UNPARSED_TEXT>",
245     "<JSP_DIRECTIVE_NAME>",
246     "<JSP_DIRECTIVE_ATTRIBUTE_NAME>",
247     "\"=\"",
248     "<JSP_DIRECTIVE_ATTRIBUTE_VALUE>",
249     "\"%>\"",
250     "\"%>\"",
251     "<JSP_SCRIPTLET>",
252     "\"%>\"",
253     "<JSP_EXPRESSION>",
254     "\"%>\"",
255     "<JSP_DECLARATION>",
256     "\"--%>\"",
257     "<JSP_COMMENT_CONTENT>",
258     "<WHITESPACES>",
259     "<NAME>",
260     "\"PUBLIC\"",
261     "\"SYSTEM\"",
262     "\">\"",
263     "<QUOTED_LITERAL>",
264     "<UNPARSED>",
265     "\"]]>\"",
266     "<TAG_NAME>",
267     "<LST_ERROR>",
268     "<ATTR_NAME>",
269     "\">\"",
270     "<DECL_END>",
271     "\"/>\"",
272     "\"=\"",
273     "<IN_TAG_ERROR>",
274     "\"\\\'\"",
275     "\"\\\"\"",
276     "<EL_EXPRESSION_IN_ATTRIBUTE>",
277     "<VALUE_BINDING_IN_ATTRIBUTE>",
278     "<JSP_EXPRESSION_IN_ATTRIBUTE>",
279     "\"\\\'\"",
280     "<UNPARSED_TEXT_NO_SINGLE_QUOTES>",
281     "<DOLLAR_OR_HASH_SINGLE_QUOTE>",
282     "\"\\\"\"",
283     "<UNPARSED_TEXT_NO_DOUBLE_QUOTES>",
284     "<DOLLAR_OR_HASH_DOUBLE_QUOTE>",
285     "<COMMENT_END>",
286     "<COMMENT_TEXT>",
287     "<HTML_SCRIPT_CONTENT>",
288     "<HTML_SCRIPT_END_TAG>",
289   };
290 
291 }