All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.jsp.ast.JspTokenKinds Maven / Gradle / Ivy

/* Generated By:JJTree&JavaCC: Do not edit this line. JspParserImplConstants.java */
package net.sourceforge.pmd.lang.jsp.ast;


/**
 * net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken literal values and constants.
 * Generated by org.javacc.parser.OtherFilesGen#start()
 */
/** Token kinds ({@link net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken#kind}) for this language. */
 @net.sourceforge.pmd.annotation.InternalApi
 public final class JspTokenKinds {
     private JspTokenKinds() { /* Utility class */ }
 

  public static final   int EOF = 0;
  public static final   int ALPHA_CHAR = 1;
  public static final   int NUM_CHAR = 2;
  public static final   int ALPHANUM_CHAR = 3;
  public static final   int IDENTIFIER_CHAR = 4;
  public static final   int IDENTIFIER = 5;
  public static final   int XMLNAME = 6;
  public static final   int QUOTED_STRING_NO_BREAKS = 7;
  public static final   int QUOTED_STRING = 8;
  public static final   int WHITESPACE = 9;
  public static final   int NEWLINE = 10;
  public static final   int QUOTE = 11;
  public static final   int NO_WHITESPACE_OR_LT_OR_DOLLAR = 12;
  public static final   int DOLLAR_OR_HASH = 13;
  public static final   int NO_OPENBRACE = 14;
  public static final   int NO_LT_OR_DOLLAR_OR_HASH = 15;
  public static final   int NO_ENDTAG_START = 16;
  public static final   int TEXT_IN_EL = 17;
  public static final   int EL_ESCAPE = 18;
  public static final   int NO_JSP_COMMENT_END = 19;
  public static final   int NO_JSP_TAG_END = 20;
  public static final   int NO_JSP_TAG_END_EXCEPT_QUOTED = 21;
  public static final   int TAG_START = 24;
  public static final   int ENDTAG_START = 25;
  public static final   int COMMENT_START = 26;
  public static final   int DECL_START = 27;
  public static final   int DOCTYPE_DECL_START = 28;
  public static final   int CDATA_START = 29;
  public static final   int JSP_COMMENT_START = 30;
  public static final   int JSP_DECLARATION_START = 31;
  public static final   int JSP_EXPRESSION_START = 32;
  public static final   int JSP_SCRIPTLET_START = 33;
  public static final   int JSP_DIRECTIVE_START = 34;
  public static final   int HTML_SCRIPT_START = 35;
  public static final   int EL_EXPRESSION = 36;
  public static final   int UNPARSED_TEXT = 37;
  public static final   int JSP_DIRECTIVE_NAME = 38;
  public static final   int JSP_DIRECTIVE_ATTRIBUTE_NAME = 39;
  public static final   int JSP_DIRECTIVE_ATTRIBUTE_EQUALS = 40;
  public static final   int JSP_DIRECTIVE_ATTRIBUTE_VALUE = 41;
  public static final   int JSP_DIRECTIVE_END = 42;
  public static final   int JSP_SCRIPTLET_END = 43;
  public static final   int JSP_SCRIPTLET = 44;
  public static final   int JSP_EXPRESSION_END = 45;
  public static final   int JSP_EXPRESSION = 46;
  public static final   int JSP_DECLARATION_END = 47;
  public static final   int JSP_DECLARATION = 48;
  public static final   int JSP_COMMENT_END = 49;
  public static final   int JSP_COMMENT_CONTENT = 50;
  public static final   int WHITESPACES = 51;
  public static final   int NAME = 52;
  public static final   int PUBLIC = 53;
  public static final   int SYSTEM = 54;
  public static final   int DOCTYPE_DECL_END = 55;
  public static final   int QUOTED_LITERAL = 56;
  public static final   int UNPARSED = 57;
  public static final   int CDATA_END = 58;
  public static final   int TAG_NAME = 59;
  public static final   int LST_ERROR = 60;
  public static final   int ATTR_NAME = 61;
  public static final   int TAG_END = 62;
  public static final   int DECL_END = 63;
  public static final   int TAG_SLASHEND = 64;
  public static final   int ATTR_EQ = 65;
  public static final   int IN_TAG_ERROR = 66;
  public static final   int SINGLE_QUOTE = 67;
  public static final   int DOUBLE_QUOTE = 68;
  public static final   int NO_QUOTE_NO_WHITESPACE = 69;
  public static final   int IN_ATTR_WHITESPACE = 70;
  public static final   int EL_EXPRESSION_IN_ATTRIBUTE = 71;
  public static final   int VALUE_BINDING_IN_ATTRIBUTE = 72;
  public static final   int JSP_EXPRESSION_IN_ATTRIBUTE = 73;
  public static final   int ENDING_WHITESPACE = 74;
  public static final   int UNPARSED_TEXT_NO_WHITESPACE = 75;
  public static final   int ENDING_SINGLE_QUOTE = 76;
  public static final   int UNPARSED_TEXT_NO_SINGLE_QUOTES = 77;
  public static final   int DOLLAR_OR_HASH_SINGLE_QUOTE = 78;
  public static final   int ENDING_DOUBLE_QUOTE = 79;
  public static final   int UNPARSED_TEXT_NO_DOUBLE_QUOTES = 80;
  public static final   int DOLLAR_OR_HASH_DOUBLE_QUOTE = 81;
  public static final   int COMMENT_END = 82;
  public static final   int COMMENT_TEXT = 83;
  public static final   int HTML_SCRIPT_CONTENT = 84;
  public static final   int HTML_SCRIPT_END_TAG = 85;

  static final   int CommentState = 0;
  static final   int AttrValueNoQuotesState = 1;
  static final   int AttrValueBetweenDoubleQuotesState = 2;
  static final   int AttrValueBetweenSingleQuotesState = 3;
  static final   int AttrValueState = 4;
  static final   int StartTagState = 5;
  static final   int CDataState = 6;
  static final   int DocTypeExternalIdState = 7;
  static final   int DocTypeState = 8;
  static final   int JspCommentState = 9;
  static final   int JspDeclarationState = 10;
  static final   int JspExpressionState = 11;
  static final   int JspScriptletState = 12;
  static final   int HtmlScriptContentState = 13;
  static final   int InTagState = 14;
  static final   int AfterTagState = 15;
  static final   int JspDirectiveAttributesState = 16;
  static final   int JspDirectiveState = 17;
  static final   int DEFAULT = 18;

  
  /** Returns a string describing the given token kind.
    * Returns null if the kind is unknown.
    *
    * @param kind Kind of token
    *
    * @return A string describing the given kind
    */
  public static @org.checkerframework.checker.nullness.qual.Nullable
                String describe(int kind) {
    return kind < 0 || kind >= tokenImage.length
        ? null
        : tokenImage[kind];
  }

  /** Returns a new token manager for this language. The CharStream
    * should be configured with the correct language-specific escaping
    * and token document. This is not a published API, it's intended to
    * be used as a basis for a CPD Tokenizer.
    */
  @net.sourceforge.pmd.annotation.InternalApi
  public static net.sourceforge.pmd.lang.TokenManager newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs) {
    return new JspParserImplTokenManager(cs);
  }

    private static final
            
  String[] tokenImage = {
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "\"<\"",
    "\"",
    "",
    "",
    "",
    "\"=\"",
    "",
    "\"%>\"",
    "\"%>\"",
    "",
    "\"%>\"",
    "",
    "\"%>\"",
    "",
    "\"--%>\"",
    "",
    "",
    "",
    "\"PUBLIC\"",
    "\"SYSTEM\"",
    "\">\"",
    "",
    "",
    "\"]]>\"",
    "",
    "",
    "",
    "\">\"",
    "",
    "\"/>\"",
    "\"=\"",
    "",
    "\"\\\'\"",
    "\"\\\"\"",
    "",
    "",
    "",
    "",
    "",
    "\" \"",
    "",
    "\"\\\'\"",
    "",
    "",
    "\"\\\"\"",
    "",
    "",
    "",
    "",
    "",
    "",
  
  };

  /** Nams of the tokens, each index corresponds to a kind. See also {@link #describe(int)}. */
  public static final java.util.List TOKEN_NAMES = java.util.Collections.unmodifiableList(java.util.Arrays.asList(tokenImage));
            

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy