langtools/src/share/classes/sun/tools/javap/Constants.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * Copyright 2002 Sun Microsystems, Inc.  All Rights Reserved.
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
package sun.tools.javap;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
 * This interface defines constant that are used
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
 * throughout the compiler. It inherits from RuntimeConstants,
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * which is an autogenerated class that contains contstants
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * defined in the interpreter.
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
public
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
interface Constants extends RuntimeConstants {
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
     /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
     * End of input
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
    public static final int EOF = -1;
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
   /*
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
     * Flags
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
    public static final int F_VERBOSE           = 1 << 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    public static final int F_DUMP              = 1 << 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    public static final int F_WARNINGS          = 1 << 2;
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
    public static final int F_DEBUG             = 1 << 3;
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    public static final int F_OPTIMIZE          = 1 << 4;
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    public static final int F_DEPENDENCIES      = 1 << 5;
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     * Type codes
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
    public static final int TC_BOOLEAN   = 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
    public static final int TC_BYTE      = 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
    public static final int TC_CHAR      = 2;
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
    public static final int TC_SHORT     = 3;
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    public static final int TC_INT       = 4;
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
    public static final int TC_LONG      = 5;
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
    public static final int TC_FLOAT     = 6;
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    public static final int TC_DOUBLE    = 7;
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    public static final int TC_NULL      = 8;
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
    public static final int TC_ARRAY     = 9;
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    public static final int TC_CLASS     = 10;
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
    public static final int TC_VOID      = 11;
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
    public static final int TC_METHOD    = 12;
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
    public static final int TC_ERROR     = 13;
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     * Type Masks
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
    public static final int TM_NULL      = 1 << TC_NULL;
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
    public static final int TM_VOID      = 1 << TC_VOID;
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
    public static final int TM_BOOLEAN   = 1 << TC_BOOLEAN;
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
    public static final int TM_BYTE      = 1 << TC_BYTE;
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
    public static final int TM_CHAR      = 1 << TC_CHAR;
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
    public static final int TM_SHORT     = 1 << TC_SHORT;
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    public static final int TM_INT       = 1 << TC_INT;
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
    public static final int TM_LONG      = 1 << TC_LONG;
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    public static final int TM_FLOAT     = 1 << TC_FLOAT;
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
    public static final int TM_DOUBLE    = 1 << TC_DOUBLE;
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
    public static final int TM_ARRAY     = 1 << TC_ARRAY;
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
    public static final int TM_CLASS     = 1 << TC_CLASS;
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
    public static final int TM_METHOD    = 1 << TC_METHOD;
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
    public static final int TM_ERROR     = 1 << TC_ERROR;
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
    public static final int TM_INT32     = TM_BYTE | TM_SHORT | TM_CHAR | TM_INT;
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
    public static final int TM_NUM32     = TM_INT32 | TM_FLOAT;
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
    public static final int TM_NUM64     = TM_LONG | TM_DOUBLE;
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
    public static final int TM_INTEGER   = TM_INT32 | TM_LONG;
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
    public static final int TM_REAL      = TM_FLOAT | TM_DOUBLE;
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
    public static final int TM_NUMBER    = TM_INTEGER | TM_REAL;
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
    public static final int TM_REFERENCE = TM_ARRAY | TM_CLASS | TM_NULL;
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * Class status
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
    public static final int CS_UNDEFINED        = 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    public static final int CS_UNDECIDED        = 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
    public static final int CS_BINARY           = 2;
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    public static final int CS_SOURCE           = 3;
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
    public static final int CS_PARSED           = 4;
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
    public static final int CS_COMPILED         = 5;
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
    public static final int CS_NOTFOUND         = 6;
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     * Attributes
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
    public static final int ATT_ALL             = -1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
    public static final int ATT_CODE            = 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
     * Number of bits used in file offsets
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
    public static final int OFFSETBITS          = 19;
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
    public static final int MAXFILESIZE         = (1 << OFFSETBITS) - 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
    public static final int MAXLINENUMBER       = (1 << (32 - OFFSETBITS)) - 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
     * Operators
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
    public final int COMMA              = 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    public final int ASSIGN             = 1;
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
    public final int ASGMUL             = 2;
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
    public final int ASGDIV             = 3;
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
    public final int ASGREM             = 4;
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
    public final int ASGADD             = 5;
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
    public final int ASGSUB             = 6;
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
    public final int ASGLSHIFT          = 7;
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
    public final int ASGRSHIFT          = 8;
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    public final int ASGURSHIFT         = 9;
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
    public final int ASGBITAND          = 10;
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
    public final int ASGBITOR           = 11;
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
    public final int ASGBITXOR          = 12;
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
    public final int COND               = 13;
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
    public final int OR                 = 14;
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    public final int AND                = 15;
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
    public final int BITOR              = 16;
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    public final int BITXOR             = 17;
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
    public final int BITAND             = 18;
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
    public final int NE                 = 19;
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
    public final int EQ                 = 20;
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
    public final int GE                 = 21;
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
    public final int GT                 = 22;
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
    public final int LE                 = 23;
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    public final int LT                 = 24;
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
    public final int INSTANCEOF         = 25;
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
    public final int LSHIFT             = 26;
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
    public final int RSHIFT             = 27;
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    public final int URSHIFT            = 28;
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
    public final int ADD                = 29;
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    public final int SUB                = 30;
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
    public final int DIV                = 31;
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
    public final int REM                = 32;
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
    public final int MUL                = 33;
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
    public final int CAST               = 34;           // (x)y
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
    public final int POS                = 35;           // +x
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
    public final int NEG                = 36;           // -x
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    public final int NOT                = 37;
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
    public final int BITNOT             = 38;
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
    public final int PREINC             = 39;           // ++x
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
    public final int PREDEC             = 40;           // --x
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
    public final int NEWARRAY           = 41;
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
    public final int NEWINSTANCE        = 42;
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
    public final int NEWFROMNAME        = 43;
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
    public final int POSTINC            = 44;           // x++
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
    public final int POSTDEC            = 45;           // x--
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
    public final int FIELD              = 46;
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
    public final int METHOD             = 47;           // x(y)
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
    public final int ARRAYACCESS        = 48;           // x[y]
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
    public final int NEW                = 49;
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
    public final int INC                = 50;
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
    public final int DEC                = 51;
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
    public final int CONVERT            = 55;           // implicit conversion
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
    public final int EXPR               = 56;           // (x)
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
    public final int ARRAY              = 57;           // {x, y, ...}
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    public final int GOTO               = 58;
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     * Value tokens
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
    public final int IDENT              = 60;
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
    public final int BOOLEANVAL         = 61;
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
    public final int BYTEVAL            = 62;
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
    public final int CHARVAL            = 63;
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
    public final int SHORTVAL           = 64;
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
    public final int INTVAL                     = 65;
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
    public final int LONGVAL            = 66;
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
    public final int FLOATVAL           = 67;
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
    public final int DOUBLEVAL          = 68;
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
    public final int STRINGVAL          = 69;
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * Type keywords
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
    public final int BYTE               = 70;
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    public final int CHAR               = 71;
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
    public final int SHORT              = 72;
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
    public final int INT                = 73;
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
    public final int LONG               = 74;
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
    public final int FLOAT              = 75;
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
    public final int DOUBLE             = 76;
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
    public final int VOID               = 77;
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
    public final int BOOLEAN            = 78;
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     * Expression keywords
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
    public final int TRUE               = 80;
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
    public final int FALSE              = 81;
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
    public final int THIS               = 82;
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    public final int SUPER              = 83;
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
    public final int NULL               = 84;
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     * Statement keywords
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
    public final int IF                 = 90;
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    public final int ELSE               = 91;
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
    public final int FOR                = 92;
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    public final int WHILE              = 93;
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
    public final int DO                 = 94;
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
    public final int SWITCH             = 95;
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
    public final int CASE               = 96;
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
    public final int DEFAULT            = 97;
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
    public final int BREAK              = 98;
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
    public final int CONTINUE           = 99;
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    public final int RETURN             = 100;
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
    public final int TRY                = 101;
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
    public final int CATCH              = 102;
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
    public final int FINALLY            = 103;
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
    public final int THROW              = 104;
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    public final int STAT               = 105;
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
    public final int EXPRESSION         = 106;
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
    public final int DECLARATION        = 107;
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
    public final int VARDECLARATION     = 108;
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     * Declaration keywords
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
    public final int IMPORT             = 110;
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    public final int CLASS              = 111;
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
    public final int EXTENDS            = 112;
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
    public final int IMPLEMENTS         = 113;
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
    public final int INTERFACE          = 114;
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
    public final int PACKAGE            = 115;
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     * Modifier keywords
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
    public final int PRIVATE    = 120;
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
    public final int PUBLIC             = 121;
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
    public final int PROTECTED  = 122;
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
    public final int CONST              = 123;
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
    public final int STATIC             = 124;
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    public final int TRANSIENT          = 125;
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
    public final int SYNCHRONIZED       = 126;
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
    public final int NATIVE             = 127;
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
    public final int FINAL              = 128;
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
    public final int VOLATILE   = 129;
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
    public final int ABSTRACT   = 130;
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
    public final int STRICT             = 165;
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     * Punctuation
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
    public final int SEMICOLON  = 135;
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
    public final int COLON              = 136;
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
    public final int QUESTIONMARK       = 137;
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
    public final int LBRACE             = 138;
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
    public final int RBRACE             = 139;
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
    public final int LPAREN             = 140;
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
    public final int RPAREN             = 141;
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
    public final int LSQBRACKET = 142;
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
    public final int RSQBRACKET = 143;
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
    public final int THROWS     = 144;
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
     * Special tokens
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
    public final int ERROR              = 145;          // an error
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
    public final int COMMENT    = 146;          // not used anymore.
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
    public final int TYPE               = 147;
06bc494ca11e Initial load
duke
parents:
diff changeset
   291
    public final int LENGTH             = 148;
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
    public final int INLINERETURN       = 149;
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
    public final int INLINEMETHOD       = 150;
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
    public final int INLINENEWINSTANCE  = 151;
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
     * Added for jasm
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
        public final int METHODREF      = 152;
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
        public final int FIELDREF       = 153;
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
    public final int STACK              = 154;
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
    public final int LOCAL              = 155;
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
    public final int CPINDEX    = 156;
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
    public final int CPNAME             = 157;
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
    public final int SIGN               = 158;
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
    public final int BITS               = 159;
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
    public final int INF                = 160;
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
    public final int NAN                = 161;
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
    public final int INNERCLASS = 162;
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
    public final int OF         = 163;
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
    public final int SYNTHETIC          = 164;
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
// last used=165;
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
   /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
     * Operator precedence
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
    public static final int opPrecedence[] = {
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
        10,     11,     11,     11,     11,     11,     11,     11,     11,     11,
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
        11,     11,     11,     12,     13,     14,     15,     16,     17,     18,
06bc494ca11e Initial load
duke
parents:
diff changeset
   320
        18,     19,     19,     19,     19,     19,     20,     20,     20,     21,
06bc494ca11e Initial load
duke
parents:
diff changeset
   321
        21,     22,     22,     22,     23,     24,     24,     24,     24,     24,
06bc494ca11e Initial load
duke
parents:
diff changeset
   322
        24,     25,     25,     26,     26,     26,     26,     26,     26
06bc494ca11e Initial load
duke
parents:
diff changeset
   323
    };
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
    /*
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
     * Operator names
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
    public static final String opNames[] = {
06bc494ca11e Initial load
duke
parents:
diff changeset
   329
        ",",            "=",            "*=",           "/=",           "%=",
06bc494ca11e Initial load
duke
parents:
diff changeset
   330
        "+=",           "-=",           "<<=",          ">>=",          "<<<=",
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
        "&=",           "|=",           "^=",           "?:",           "||",
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
        "&&",           "|",            "^",            "&",            "!=",
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
        "==",           ">=",           ">",            "<=",           "<",
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
        "instanceof",   "<<",           ">>",           "<<<",          "+",
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
        "-",            "/",            "%",            "*",            "cast",
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
        "+",            "-",            "!",            "~",            "++",
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
        "--",           "new",          "new",          "new",          "++",
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
        "--",           "field",        "method",       "[]",           "new",
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
        "++",           "--",           null,           null,           null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
        "convert",      "expr",         "array",        "goto",         null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
        "Identifier",   "Boolean",      "Byte",         "Char",         "Short",
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
        "Integer",              "Long",         "Float",        "Double",       "String",
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
        "byte",         "char",         "short",        "int",          "long",
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
        "float",        "double",       "void",         "boolean",      null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
        "true",         "false",        "this",         "super",        "null",
06bc494ca11e Initial load
duke
parents:
diff changeset
   350
        null,           null,           null,           null,           null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   351
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
        "if",           "else",         "for",          "while",        "do",
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
        "switch",       "case",         "default",      "break",        "continue",
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
        "return",       "try",          "catch",        "finally",      "throw",
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
        "stat",         "expression",   "declaration",  "declaration",  null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   356
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
        "import",       "class",        "extends",      "implements",   "interface",
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
        "package",      null,           null,           null,           null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
06bc494ca11e Initial load
duke
parents:
diff changeset
   360
        "private",      "public",       "protected",    "const",        "static",
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
        "transient",    "synchronized", "native",       "final",        "volatile",
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
        "abstract",     null,           null,           null,           null,
06bc494ca11e Initial load
duke
parents:
diff changeset
   363
06bc494ca11e Initial load
duke
parents:
diff changeset
   364
        ";",            ":",            "?",            "{",            "}",
06bc494ca11e Initial load
duke
parents:
diff changeset
   365
        "(",            ")",            "[",            "]",            "throws",
06bc494ca11e Initial load
duke
parents:
diff changeset
   366
        "error",        "comment",      "type",         "length",       "inline-return",
06bc494ca11e Initial load
duke
parents:
diff changeset
   367
        "inline-method", "inline-new",
06bc494ca11e Initial load
duke
parents:
diff changeset
   368
        "method", "field", "stack", "locals", "CPINDEX", "CPName", "SIGN",
06bc494ca11e Initial load
duke
parents:
diff changeset
   369
        "bits", "INF", "NaN", "InnerClass", "of", "synthetic"
06bc494ca11e Initial load
duke
parents:
diff changeset
   370
    };
06bc494ca11e Initial load
duke
parents:
diff changeset
   371
06bc494ca11e Initial load
duke
parents:
diff changeset
   372
}