Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Javassist, a Java-bytecode translator toolkit.
  3. * Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. Alternatively, the contents of this file may be used under
  8. * the terms of the GNU Lesser General Public License Version 2.1 or later.
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. */
  15. package javassist.compiler;
  16. public interface TokenId {
  17. int ABSTRACT = 300;
  18. int BOOLEAN = 301;
  19. int BREAK = 302;
  20. int BYTE = 303;
  21. int CASE = 304;
  22. int CATCH = 305;
  23. int CHAR = 306;
  24. int CLASS = 307;
  25. int CONST = 308; // reserved keyword
  26. int CONTINUE = 309;
  27. int DEFAULT = 310;
  28. int DO = 311;
  29. int DOUBLE = 312;
  30. int ELSE = 313;
  31. int EXTENDS = 314;
  32. int FINAL = 315;
  33. int FINALLY = 316;
  34. int FLOAT = 317;
  35. int FOR = 318;
  36. int GOTO = 319; // reserved keyword
  37. int IF = 320;
  38. int IMPLEMENTS = 321;
  39. int IMPORT = 322;
  40. int INSTANCEOF = 323;
  41. int INT = 324;
  42. int INTERFACE = 325;
  43. int LONG = 326;
  44. int NATIVE = 327;
  45. int NEW = 328;
  46. int PACKAGE = 329;
  47. int PRIVATE = 330;
  48. int PROTECTED = 331;
  49. int PUBLIC = 332;
  50. int RETURN = 333;
  51. int SHORT = 334;
  52. int STATIC = 335;
  53. int SUPER = 336;
  54. int SWITCH = 337;
  55. int SYNCHRONIZED = 338;
  56. int THIS = 339;
  57. int THROW = 340;
  58. int THROWS = 341;
  59. int TRANSIENT = 342;
  60. int TRY = 343;
  61. int VOID = 344;
  62. int VOLATILE = 345;
  63. int WHILE = 346;
  64. int STRICT = 347;
  65. int NEQ = 350; // !=
  66. int MOD_E = 351; // %=
  67. int AND_E = 352; // &=
  68. int MUL_E = 353; // *=
  69. int PLUS_E = 354; // +=
  70. int MINUS_E = 355; // -=
  71. int DIV_E = 356; // /=
  72. int LE = 357; // <=
  73. int EQ = 358; // ==
  74. int GE = 359; // >=
  75. int EXOR_E = 360; // ^=
  76. int OR_E = 361; // |=
  77. int PLUSPLUS = 362; // ++
  78. int MINUSMINUS = 363; // --
  79. int LSHIFT = 364; // <<
  80. int LSHIFT_E = 365; // <<=
  81. int RSHIFT = 366; // >>
  82. int RSHIFT_E = 367; // >>=
  83. int OROR = 368; // ||
  84. int ANDAND = 369; // &&
  85. int ARSHIFT = 370; // >>>
  86. int ARSHIFT_E = 371; // >>>=
  87. // operators from NEQ to ARSHIFT_E
  88. String opNames[] = { "!=", "%=", "&=", "*=", "+=", "-=", "/=",
  89. "<=", "==", ">=", "^=", "|=", "++", "--",
  90. "<<", "<<=", ">>", ">>=", "||", "&&", ">>>",
  91. ">>>=" };
  92. // operators from MOD_E to ARSHIFT_E
  93. int assignOps[] = { '%', '&', '*', '+', '-', '/', 0, 0, 0,
  94. '^', '|', 0, 0, 0, LSHIFT, 0, RSHIFT, 0, 0, 0,
  95. ARSHIFT };
  96. int Identifier = 400;
  97. int CharConstant = 401;
  98. int IntConstant = 402;
  99. int LongConstant = 403;
  100. int FloatConstant = 404;
  101. int DoubleConstant = 405;
  102. int StringL = 406;
  103. int TRUE = 410;
  104. int FALSE = 411;
  105. int NULL = 412;
  106. int CALL = 'C'; // method call
  107. int ARRAY = 'A'; // array access
  108. int MEMBER = '#'; // static member access
  109. int EXPR = 'E'; // expression statement
  110. int LABEL = 'L'; // label statement
  111. int BLOCK = 'B'; // block statement
  112. int DECL = 'D'; // declaration statement
  113. int BadToken = 500;
  114. }