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

net.sourceforge.pmd.lang.java.ast.JavaTokenKinds Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
/* Generated By:JJTree&JavaCC: Do not edit this line. JavaParserImplConstants.java */
package net.sourceforge.pmd.lang.java.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 JavaTokenKinds {
     private JavaTokenKinds() { /* Utility class */ }
 

  public static final   int EOF = 0;
  public static final   int HORIZONTAL_WHITESPACE = 1;
  public static final   int LINE_TERMINATOR = 2;
  public static final   int WHITESPACE = 3;
  public static final   int SINGLE_LINE_COMMENT = 4;
  public static final   int FORMAL_COMMENT = 7;
  public static final   int MULTI_LINE_COMMENT = 8;
  public static final   int ABSTRACT = 10;
  public static final   int BOOLEAN = 11;
  public static final   int BREAK = 12;
  public static final   int BYTE = 13;
  public static final   int CASE = 14;
  public static final   int CATCH = 15;
  public static final   int CHAR = 16;
  public static final   int CLASS = 17;
  public static final   int CONST = 18;
  public static final   int CONTINUE = 19;
  public static final   int _DEFAULT = 20;
  public static final   int DO = 21;
  public static final   int DOUBLE = 22;
  public static final   int ELSE = 23;
  public static final   int EXTENDS = 24;
  public static final   int FALSE = 25;
  public static final   int FINAL = 26;
  public static final   int FINALLY = 27;
  public static final   int FLOAT = 28;
  public static final   int FOR = 29;
  public static final   int GOTO = 30;
  public static final   int IF = 31;
  public static final   int IMPLEMENTS = 32;
  public static final   int IMPORT = 33;
  public static final   int INSTANCEOF = 34;
  public static final   int INT = 35;
  public static final   int INTERFACE = 36;
  public static final   int LONG = 37;
  public static final   int NATIVE = 38;
  public static final   int NEW = 39;
  public static final   int NULL = 40;
  public static final   int PACKAGE = 41;
  public static final   int PRIVATE = 42;
  public static final   int PROTECTED = 43;
  public static final   int PUBLIC = 44;
  public static final   int RETURN = 45;
  public static final   int SHORT = 46;
  public static final   int STATIC = 47;
  public static final   int SUPER = 48;
  public static final   int SWITCH = 49;
  public static final   int SYNCHRONIZED = 50;
  public static final   int THIS = 51;
  public static final   int THROW = 52;
  public static final   int THROWS = 53;
  public static final   int TRANSIENT = 54;
  public static final   int TRUE = 55;
  public static final   int TRY = 56;
  public static final   int VOID = 57;
  public static final   int VOLATILE = 58;
  public static final   int WHILE = 59;
  public static final   int STRICTFP = 60;
  public static final   int INTEGER_LITERAL = 61;
  public static final   int DECIMAL_NUMERAL = 62;
  public static final   int HEX_NUMERAL = 63;
  public static final   int BINARY_NUMERAL = 64;
  public static final   int OCTAL_NUMERAL = 65;
  public static final   int FLOATING_POINT_LITERAL = 66;
  public static final   int DECIMAL_FLOATING_POINT_LITERAL = 67;
  public static final   int HEX_FLOATING_POINT_LITERAL = 68;
  public static final   int DIGIT_SEQ = 69;
  public static final   int HEX_DIGIT_SEQ = 70;
  public static final   int EXPONENT = 71;
  public static final   int HEX_EXPONENT = 72;
  public static final   int EXPONENT_TAIL = 73;
  public static final   int CHARACTER_LITERAL = 74;
  public static final   int STRING_LITERAL = 75;
  public static final   int STRING_CHARACTER = 76;
  public static final   int STRING_ESCAPE = 77;
  public static final   int TEXT_BLOCK_CHARACTER = 78;
  public static final   int TEXT_BLOCK_LITERAL = 80;
  public static final   int IDENTIFIER = 82;
  public static final   int LETTER = 83;
  public static final   int PART_LETTER = 84;
  public static final   int LPAREN = 85;
  public static final   int RPAREN = 86;
  public static final   int LBRACE = 87;
  public static final   int RBRACE = 88;
  public static final   int LBRACKET = 89;
  public static final   int RBRACKET = 90;
  public static final   int SEMICOLON = 91;
  public static final   int COMMA = 92;
  public static final   int DOT = 93;
  public static final   int AT = 94;
  public static final   int ASSIGN = 95;
  public static final   int LT = 96;
  public static final   int BANG = 97;
  public static final   int TILDE = 98;
  public static final   int HOOK = 99;
  public static final   int COLON = 100;
  public static final   int EQ = 101;
  public static final   int LE = 102;
  public static final   int GE = 103;
  public static final   int NE = 104;
  public static final   int SC_OR = 105;
  public static final   int SC_AND = 106;
  public static final   int INCR = 107;
  public static final   int DECR = 108;
  public static final   int PLUS = 109;
  public static final   int MINUS = 110;
  public static final   int STAR = 111;
  public static final   int SLASH = 112;
  public static final   int BIT_AND = 113;
  public static final   int BIT_OR = 114;
  public static final   int XOR = 115;
  public static final   int REM = 116;
  public static final   int LSHIFT = 117;
  public static final   int PLUSASSIGN = 118;
  public static final   int MINUSASSIGN = 119;
  public static final   int STARASSIGN = 120;
  public static final   int SLASHASSIGN = 121;
  public static final   int ANDASSIGN = 122;
  public static final   int ORASSIGN = 123;
  public static final   int XORASSIGN = 124;
  public static final   int REMASSIGN = 125;
  public static final   int LSHIFTASSIGN = 126;
  public static final   int RSIGNEDSHIFTASSIGN = 127;
  public static final   int RUNSIGNEDSHIFTASSIGN = 128;
  public static final   int ELLIPSIS = 129;
  public static final   int LAMBDA = 130;
  public static final   int METHOD_REF = 131;
  public static final   int RUNSIGNEDSHIFT = 132;
  public static final   int RSIGNEDSHIFT = 133;
  public static final   int GT = 134;
  public static final   int STRING_TEMPLATE_BEGIN = 135;
  public static final   int STRING_TEMPLATE_MID = 136;
  public static final   int STRING_TEMPLATE_END = 137;
  public static final   int STRING_FRAGMENT = 138;
  public static final   int TEXT_BLOCK_TEMPLATE_BEGIN = 139;
  public static final   int TEXT_BLOCK_TEMPLATE_MID = 140;
  public static final   int TEXT_BLOCK_TEMPLATE_END = 141;
  public static final   int TEXT_BLOCK_FRAGMENT = 142;

  static final   int DEFAULT = 0;
  static final   int IN_FORMAL_COMMENT = 1;
  static final   int IN_MULTI_LINE_COMMENT = 2;
  static final   int IN_TEXT_BLOCK_LITERAL = 3;

  
  /** 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 JavaParserImpl(cs).token_source;
  }

    private static final
            
  String[] tokenImage = {
    "",
    "",
    "",
    "",
    "",
    "",
    "\"/*\"",
    "\"*/\"",
    "\"*/\"",
    "",
    "\"abstract\"",
    "\"boolean\"",
    "\"break\"",
    "\"byte\"",
    "\"case\"",
    "\"catch\"",
    "\"char\"",
    "\"class\"",
    "\"const\"",
    "\"continue\"",
    "\"default\"",
    "\"do\"",
    "\"double\"",
    "\"else\"",
    "\"extends\"",
    "\"false\"",
    "\"final\"",
    "\"finally\"",
    "\"float\"",
    "\"for\"",
    "\"goto\"",
    "\"if\"",
    "\"implements\"",
    "\"import\"",
    "\"instanceof\"",
    "\"int\"",
    "\"interface\"",
    "\"long\"",
    "\"native\"",
    "\"new\"",
    "\"null\"",
    "\"package\"",
    "\"private\"",
    "\"protected\"",
    "\"public\"",
    "\"return\"",
    "\"short\"",
    "\"static\"",
    "\"super\"",
    "\"switch\"",
    "\"synchronized\"",
    "\"this\"",
    "\"throw\"",
    "\"throws\"",
    "\"transient\"",
    "\"true\"",
    "\"try\"",
    "\"void\"",
    "\"volatile\"",
    "\"while\"",
    "\"strictfp\"",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "\"\\\"\\\"\\\"\"",
    "",
    "",
    "",
    "",
    "\"(\"",
    "\")\"",
    "\"{\"",
    "\"}\"",
    "\"[\"",
    "\"]\"",
    "\";\"",
    "\",\"",
    "\".\"",
    "\"@\"",
    "\"=\"",
    "\"<\"",
    "\"!\"",
    "\"~\"",
    "\"?\"",
    "\":\"",
    "\"==\"",
    "\"<=\"",
    "\">=\"",
    "\"!=\"",
    "\"||\"",
    "\"&&\"",
    "\"++\"",
    "\"--\"",
    "\"+\"",
    "\"-\"",
    "\"*\"",
    "\"/\"",
    "\"&\"",
    "\"|\"",
    "\"^\"",
    "\"%\"",
    "\"<<\"",
    "\"+=\"",
    "\"-=\"",
    "\"*=\"",
    "\"/=\"",
    "\"&=\"",
    "\"|=\"",
    "\"^=\"",
    "\"%=\"",
    "\"<<=\"",
    "\">>=\"",
    "\">>>=\"",
    "\"...\"",
    "\"->\"",
    "\"::\"",
    "\">>>\"",
    "\">>\"",
    "\">\"",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
  
  };

  /** 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