View Javadoc

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