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
    167   /** Lexical state. */
    168   int CommentState = 0;
    169   /** Lexical state. */
    170   int AttrValueBetweenDoubleQuotesState = 1;
    171   /** Lexical state. */
    172   int AttrValueBetweenSingleQuotesState = 2;
    173   /** Lexical state. */
    174   int StartTagState = 3;
    175   /** Lexical state. */
    176   int CDataState = 4;
    177   /** Lexical state. */
    178   int DocTypeExternalIdState = 5;
    179   /** Lexical state. */
    180   int DocTypeState = 6;
    181   /** Lexical state. */
    182   int JspCommentState = 7;
    183   /** Lexical state. */
    184   int JspDeclarationState = 8;
    185   /** Lexical state. */
    186   int JspExpressionState = 9;
    187   /** Lexical state. */
    188   int JspScriptletState = 10;
    189   /** Lexical state. */
    190   int InTagState = 11;
    191   /** Lexical state. */
    192   int AfterTagState = 12;
    193   /** Lexical state. */
    194   int AttrValueState = 13;
    195   /** Lexical state. */
    196   int JspDirectiveAttributesState = 14;
    197   /** Lexical state. */
    198   int JspDirectiveState = 15;
    199   /** Lexical state. */
    200   int DEFAULT = 16;
    201
    202   /** Literal token values. */
    203   String[] tokenImage = {
    204     "<EOF>",
    205     "<ALPHA_CHAR>",
    206     "<NUM_CHAR>",
    207     "<ALPHANUM_CHAR>",
    208     "<IDENTIFIER_CHAR>",
    209     "<IDENTIFIER>",
    210     "<XMLNAME>",
    211     "<QUOTED_STRING_NO_BREAKS>",
    212     "<QUOTED_STRING>",
    213     "<WHITESPACE>",
    214     "<NEWLINE>",
    215     "<QUOTE>",
    216     "<NO_WHITESPACE_OR_LT_OR_DOLLAR>",
    217     "<NO_LT_OR_DOLLAR>",
    218     "\"$\"",
    219     "<NO_OPENBRACE_OR_LT>",
    220     "<TEXT_IN_EL>",
    221     "<EL_ESCAPE>",
    222     "<NO_JSP_COMMENT_END>",
    223     "<NO_JSP_TAG_END>",
    224     "<token of kind 20>",
    225     "<token of kind 21>",
    226     "\"<\"",
    227     "\"</\"",
    228     "\"<!--\"",
    229     "\"<?\"",
    230     "\"<!DOCTYPE\"",
    231     "\"<![CDATA[\"",
    232     "\"<%--\"",
    233     "\"<%!\"",
    234     "\"<%=\"",
    235     "\"<%\"",
    236     "\"<%@\"",
    237     "<EL_EXPRESSION>",
    238     "<UNPARSED_TEXT>",
    239     "<JSP_DIRECTIVE_NAME>",
    240     "<JSP_DIRECTIVE_ATTRIBUTE_NAME>",
    241     "\"=\"",
    242     "<JSP_DIRECTIVE_ATTRIBUTE_VALUE>",
    243     "\"%>\"",
    244     "\"%>\"",
    245     "<JSP_SCRIPTLET>",
    246     "\"%>\"",
    247     "<JSP_EXPRESSION>",
    248     "\"%>\"",
    249     "<JSP_DECLARATION>",
    250     "\"--%>\"",
    251     "<JSP_COMMENT_CONTENT>",
    252     "<WHITESPACES>",
    253     "<NAME>",
    254     "\"PUBLIC\"",
    255     "\"SYSTEM\"",
    256     "\">\"",
    257     "<QUOTED_LITERAL>",
    258     "<UNPARSED>",
    259     "\"]]>\"",
    260     "<TAG_NAME>",
    261     "<LST_ERROR>",
    262     "<ATTR_NAME>",
    263     "\">\"",
    264     "<DECL_END>",
    265     "\"/>\"",
    266     "\"=\"",
    267     "<IN_TAG_ERROR>",
    268     "\"\\\'\"",
    269     "\"\\\"\"",
    270     "<EL_EXPRESSION_IN_ATTRIBUTE>",
    271     "<VALUE_BINDING_IN_ATTRIBUTE>",
    272     "<JSP_EXPRESSION_IN_ATTRIBUTE>",
    273     "\"\\\'\"",
    274     "<UNPARSED_TEXT_NO_SINGLE_QUOTES>",
    275     "<DOLLAR_OR_HASH_SINGLE_QUOTE>",
    276     "\"\\\"\"",
    277     "<UNPARSED_TEXT_NO_DOUBLE_QUOTES>",
    278     "<DOLLAR_OR_HASH_DOUBLE_QUOTE>",
    279     "<COMMENT_END>",
    280     "<COMMENT_TEXT>",
    281   };
    282
    283 }