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 STRING_FRAGMENT = 79;
  public static final   int STRING_TEMPLATE_BEGIN = 80;
  public static final   int TEXT_BLOCK_LITERAL = 82;
  public static final   int TEXT_BLOCK_TEMPLATE_MID = 83;
  public static final   int STRING_TEMPLATE_END = 85;
  public static final   int STRING_TEMPLATE_MID = 86;
  public static final   int IDENTIFIER = 87;
  public static final   int LETTER = 88;
  public static final   int PART_LETTER = 89;
  public static final   int LPAREN = 90;
  public static final   int RPAREN = 91;
  public static final   int LBRACE = 92;
  public static final   int RBRACE = 93;
  public static final   int LBRACKET = 94;
  public static final   int RBRACKET = 95;
  public static final   int SEMICOLON = 96;
  public static final   int COMMA = 97;
  public static final   int DOT = 98;
  public static final   int AT = 99;
  public static final   int ASSIGN = 100;
  public static final   int LT = 101;
  public static final   int BANG = 102;
  public static final   int TILDE = 103;
  public static final   int HOOK = 104;
  public static final   int COLON = 105;
  public static final   int EQ = 106;
  public static final   int LE = 107;
  public static final   int GE = 108;
  public static final   int NE = 109;
  public static final   int SC_OR = 110;
  public static final   int SC_AND = 111;
  public static final   int INCR = 112;
  public static final   int DECR = 113;
  public static final   int PLUS = 114;
  public static final   int MINUS = 115;
  public static final   int STAR = 116;
  public static final   int SLASH = 117;
  public static final   int BIT_AND = 118;
  public static final   int BIT_OR = 119;
  public static final   int XOR = 120;
  public static final   int REM = 121;
  public static final   int LSHIFT = 122;
  public static final   int PLUSASSIGN = 123;
  public static final   int MINUSASSIGN = 124;
  public static final   int STARASSIGN = 125;
  public static final   int SLASHASSIGN = 126;
  public static final   int ANDASSIGN = 127;
  public static final   int ORASSIGN = 128;
  public static final   int XORASSIGN = 129;
  public static final   int REMASSIGN = 130;
  public static final   int LSHIFTASSIGN = 131;
  public static final   int RSIGNEDSHIFTASSIGN = 132;
  public static final   int RUNSIGNEDSHIFTASSIGN = 133;
  public static final   int ELLIPSIS = 134;
  public static final   int LAMBDA = 135;
  public static final   int METHOD_REF = 136;
  public static final   int RUNSIGNEDSHIFT = 137;
  public static final   int RSIGNEDSHIFT = 138;
  public static final   int GT = 139;

  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;
  static final   int IN_STRING_TEMPLATE = 4;

  
  /** 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 JavaParserImplTokenManager(cs);
  }

    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