001: /* Generated By:JJTree&JavaCC: Do not edit this line. JspParserConstants.java */
002: /**
003: * JSP Parser for PMD.
004: * @author Pieter � Application Engineers NV/SA � http://www.ae.be
005: */package net.sourceforge.pmd.jsp.ast;
006:
007: public interface JspParserConstants {
008:
009: int EOF = 0;
010: int ALPHA_CHAR = 1;
011: int NUM_CHAR = 2;
012: int ALPHANUM_CHAR = 3;
013: int IDENTIFIER_CHAR = 4;
014: int IDENTIFIER = 5;
015: int XMLNAME = 6;
016: int QUOTED_STRING_NO_BREAKS = 7;
017: int QUOTED_STRING = 8;
018: int WHITESPACE = 9;
019: int NEWLINE = 10;
020: int QUOTE = 11;
021: int NO_WHITESPACE_OR_LT_OR_DOLLAR = 12;
022: int NO_LT_OR_DOLLAR = 13;
023: int DOLLAR = 14;
024: int NO_OPENBRACE_OR_LT = 15;
025: int TEXT_IN_EL = 16;
026: int EL_ESCAPE = 17;
027: int NO_JSP_COMMENT_END = 18;
028: int NO_JSP_TAG_END = 19;
029: int TAG_START = 22;
030: int ENDTAG_START = 23;
031: int COMMENT_START = 24;
032: int DECL_START = 25;
033: int DOCTYPE_DECL_START = 26;
034: int CDATA_START = 27;
035: int JSP_COMMENT_START = 28;
036: int JSP_DECLARATION_START = 29;
037: int JSP_EXPRESSION_START = 30;
038: int JSP_SCRIPTLET_START = 31;
039: int JSP_DIRECTIVE_START = 32;
040: int EL_EXPRESSION = 33;
041: int UNPARSED_TEXT = 34;
042: int JSP_DIRECTIVE_NAME = 35;
043: int JSP_DIRECTIVE_ATTRIBUTE_NAME = 36;
044: int JSP_DIRECTIVE_ATTRIBUTE_EQUALS = 37;
045: int JSP_DIRECTIVE_ATTRIBUTE_VALUE = 38;
046: int JSP_DIRECTIVE_END = 39;
047: int JSP_SCRIPTLET_END = 40;
048: int JSP_SCRIPTLET = 41;
049: int JSP_EXPRESSION_END = 42;
050: int JSP_EXPRESSION = 43;
051: int JSP_DECLARATION_END = 44;
052: int JSP_DECLARATION = 45;
053: int JSP_COMMENT_END = 46;
054: int JSP_COMMENT_CONTENT = 47;
055: int WHITESPACES = 48;
056: int NAME = 49;
057: int PUBLIC = 50;
058: int SYSTEM = 51;
059: int DOCTYPE_DECL_END = 52;
060: int QUOTED_LITERAL = 53;
061: int UNPARSED = 54;
062: int CDATA_END = 55;
063: int TAG_NAME = 56;
064: int LST_ERROR = 57;
065: int ATTR_NAME = 58;
066: int TAG_END = 59;
067: int DECL_END = 60;
068: int TAG_SLASHEND = 61;
069: int ATTR_EQ = 62;
070: int IN_TAG_ERROR = 63;
071: int SINGLE_QUOTE = 64;
072: int DOUBLE_QUOTE = 65;
073: int EL_EXPRESSION_IN_ATTRIBUTE = 66;
074: int VALUE_BINDING_IN_ATTRIBUTE = 67;
075: int JSP_EXPRESSION_IN_ATTRIBUTE = 68;
076: int ENDING_SINGLE_QUOTE = 69;
077: int UNPARSED_TEXT_NO_SINGLE_QUOTES = 70;
078: int DOLLAR_OR_HASH_SINGLE_QUOTE = 71;
079: int ENDING_DOUBLE_QUOTE = 72;
080: int UNPARSED_TEXT_NO_DOUBLE_QUOTES = 73;
081: int DOLLAR_OR_HASH_DOUBLE_QUOTE = 74;
082: int COMMENT_END = 75;
083: int COMMENT_TEXT = 76;
084:
085: int CommentState = 0;
086: int AttrValueBetweenDoubleQuotesState = 1;
087: int AttrValueBetweenSingleQuotesState = 2;
088: int StartTagState = 3;
089: int CDataState = 4;
090: int DocTypeExternalIdState = 5;
091: int DocTypeState = 6;
092: int JspCommentState = 7;
093: int JspDeclarationState = 8;
094: int JspExpressionState = 9;
095: int JspScriptletState = 10;
096: int InTagState = 11;
097: int AfterTagState = 12;
098: int AttrValueState = 13;
099: int JspDirectiveAttributesState = 14;
100: int JspDirectiveState = 15;
101: int DEFAULT = 16;
102:
103: String[] tokenImage = { "<EOF>", "<ALPHA_CHAR>", "<NUM_CHAR>",
104: "<ALPHANUM_CHAR>", "<IDENTIFIER_CHAR>", "<IDENTIFIER>",
105: "<XMLNAME>", "<QUOTED_STRING_NO_BREAKS>",
106: "<QUOTED_STRING>", "<WHITESPACE>", "<NEWLINE>", "<QUOTE>",
107: "<NO_WHITESPACE_OR_LT_OR_DOLLAR>", "<NO_LT_OR_DOLLAR>",
108: "\"$\"", "<NO_OPENBRACE_OR_LT>", "<TEXT_IN_EL>",
109: "<EL_ESCAPE>", "<NO_JSP_COMMENT_END>", "<NO_JSP_TAG_END>",
110: "<token of kind 20>", "<token of kind 21>", "\"<\"",
111: "\"</\"", "\"<!--\"", "\"<?\"", "\"<!DOCTYPE\"",
112: "\"<![CDATA[\"", "\"<%--\"", "\"<%!\"", "\"<%=\"",
113: "\"<%\"", "\"<%@\"", "<EL_EXPRESSION>", "<UNPARSED_TEXT>",
114: "<JSP_DIRECTIVE_NAME>", "<JSP_DIRECTIVE_ATTRIBUTE_NAME>",
115: "\"=\"", "<JSP_DIRECTIVE_ATTRIBUTE_VALUE>", "\"%>\"",
116: "\"%>\"", "<JSP_SCRIPTLET>", "\"%>\"", "<JSP_EXPRESSION>",
117: "\"%>\"", "<JSP_DECLARATION>", "\"--%>\"",
118: "<JSP_COMMENT_CONTENT>", "<WHITESPACES>", "<NAME>",
119: "\"PUBLIC\"", "\"SYSTEM\"", "\">\"", "<QUOTED_LITERAL>",
120: "<UNPARSED>", "\"]]>\"", "<TAG_NAME>", "<LST_ERROR>",
121: "<ATTR_NAME>", "\">\"", "<DECL_END>", "\"/>\"", "\"=\"",
122: "<IN_TAG_ERROR>", "\"\\\'\"", "\"\\\"\"",
123: "<EL_EXPRESSION_IN_ATTRIBUTE>",
124: "<VALUE_BINDING_IN_ATTRIBUTE>",
125: "<JSP_EXPRESSION_IN_ATTRIBUTE>", "\"\\\'\"",
126: "<UNPARSED_TEXT_NO_SINGLE_QUOTES>",
127: "<DOLLAR_OR_HASH_SINGLE_QUOTE>", "\"\\\"\"",
128: "<UNPARSED_TEXT_NO_DOUBLE_QUOTES>",
129: "<DOLLAR_OR_HASH_DOUBLE_QUOTE>", "<COMMENT_END>",
130: "<COMMENT_TEXT>", };
131:
132: }
|