001 package AST; 002 003 import java.util.HashSet; 004 import java.io.File; 005 import java.util.*; 006 import beaver.*; 007 import java.util.ArrayList; 008 import java.util.zip.*; 009 import java.io.*; 010 import java.io.FileNotFoundException; 011 import java.util.Collection; 012 /** 013 * @ast class 014 * 015 */ 016 public class Bytecode extends java.lang.Object { 017 018 public final static byte NOP = 0; 019 020 021 public final static byte ACONST_NULL = 1; 022 023 024 public final static byte ICONST_M1 = 2; 025 026 027 public final static byte ICONST_0 = 3; 028 029 030 public final static byte ICONST_1 = 4; 031 032 033 public final static byte ICONST_2 = 5; 034 035 036 public final static byte ICONST_3 = 6; 037 038 039 public final static byte ICONST_4 = 7; 040 041 042 public final static byte ICONST_5 = 8; 043 044 045 public final static byte LCONST_0 = 9; 046 047 048 public final static byte LCONST_1 = 10; 049 050 051 public final static byte FCONST_0 = 11; 052 053 054 public final static byte FCONST_1 = 12; 055 056 057 public final static byte FCONST_2 = 13; 058 059 060 public final static byte DCONST_0 = 14; 061 062 063 public final static byte DCONST_1 = 15; 064 065 066 public final static byte BIPUSH = 16; 067 068 069 public final static byte SIPUSH = 17; 070 071 072 public final static byte LDC = 18; 073 074 075 public final static byte LDC_W = 19; 076 077 078 public final static byte LDC2_W = 20; 079 080 081 public final static byte ILOAD = 21; 082 083 084 public final static byte LLOAD = 22; 085 086 087 public final static byte FLOAD = 23; 088 089 090 public final static byte DLOAD = 24; 091 092 093 public final static byte ALOAD = 25; 094 095 096 public final static byte ILOAD_0 = 26; 097 098 099 public final static byte ILOAD_1 = 27; 100 101 102 public final static byte ILOAD_2 = 28; 103 104 105 public final static byte ILOAD_3 = 29; 106 107 108 public final static byte LLOAD_0 = 30; 109 110 111 public final static byte LLOAD_1 = 31; 112 113 114 public final static byte LLOAD_2 = 32; 115 116 117 public final static byte LLOAD_3 = 33; 118 119 120 public final static byte FLOAD_0 = 34; 121 122 123 public final static byte FLOAD_1 = 35; 124 125 126 public final static byte FLOAD_2 = 36; 127 128 129 public final static byte FLOAD_3 = 37; 130 131 132 public final static byte DLOAD_0 = 38; 133 134 135 public final static byte DLOAD_1 = 39; 136 137 138 public final static byte DLOAD_2 = 40; 139 140 141 public final static byte DLOAD_3 = 41; 142 143 144 public final static byte ALOAD_0 = 42; 145 146 147 public final static byte ALOAD_1 = 43; 148 149 150 public final static byte ALOAD_2 = 44; 151 152 153 public final static byte ALOAD_3 = 45; 154 155 156 public final static byte IALOAD = 46; 157 158 159 public final static byte LALOAD = 47; 160 161 162 public final static byte FALOAD = 48; 163 164 165 public final static byte DALOAD = 49; 166 167 168 public final static byte AALOAD = 50; 169 170 171 public final static byte BALOAD = 51; 172 173 174 public final static byte CALOAD = 52; 175 176 177 public final static byte SALOAD = 53; 178 179 180 public final static byte ISTORE = 54; 181 182 183 public final static byte LSTORE = 55; 184 185 186 public final static byte FSTORE = 56; 187 188 189 public final static byte DSTORE = 57; 190 191 192 public final static byte ASTORE = 58; 193 194 195 public final static byte ISTORE_0 = 59; 196 197 198 public final static byte ISTORE_1 = 60; 199 200 201 public final static byte ISTORE_2 = 61; 202 203 204 public final static byte ISTORE_3 = 62; 205 206 207 public final static byte LSTORE_0 = 63; 208 209 210 public final static byte LSTORE_1 = 64; 211 212 213 public final static byte LSTORE_2 = 65; 214 215 216 public final static byte LSTORE_3 = 66; 217 218 219 public final static byte FSTORE_0 = 67; 220 221 222 public final static byte FSTORE_1 = 68; 223 224 225 public final static byte FSTORE_2 = 69; 226 227 228 public final static byte FSTORE_3 = 70; 229 230 231 public final static byte DSTORE_0 = 71; 232 233 234 public final static byte DSTORE_1 = 72; 235 236 237 public final static byte DSTORE_2 = 73; 238 239 240 public final static byte DSTORE_3 = 74; 241 242 243 public final static byte ASTORE_0 = 75; 244 245 246 public final static byte ASTORE_1 = 76; 247 248 249 public final static byte ASTORE_2 = 77; 250 251 252 public final static byte ASTORE_3 = 78; 253 254 255 public final static byte IASTORE = 79; 256 257 258 public final static byte LASTORE = 80; 259 260 261 public final static byte FASTORE = 81; 262 263 264 public final static byte DASTORE = 82; 265 266 267 public final static byte AASTORE = 83; 268 269 270 public final static byte BASTORE = 84; 271 272 273 public final static byte CASTORE = 85; 274 275 276 public final static byte SASTORE = 86; 277 278 279 public final static byte POP = 87; 280 281 282 public final static byte POP2 = 88; 283 284 285 public final static byte DUP = 89; 286 287 288 public final static byte DUP_X1 = 90; 289 290 291 public final static byte DUP_X2 = 91; 292 293 294 public final static byte DUP2 = 92; 295 296 297 public final static byte DUP2_X1 = 93; 298 299 300 public final static byte DUP2_X2 = 94 ; 301 302 303 public final static byte SWAP = 95; 304 305 306 public final static byte IADD = 96; 307 308 309 public final static byte LADD = 97; 310 311 312 public final static byte FADD = 98; 313 314 315 public final static byte DADD = 99; 316 317 318 public final static byte ISUB = 100; 319 320 321 public final static byte LSUB = 101; 322 323 324 public final static byte FSUB = 102; 325 326 327 public final static byte DSUB = 103; 328 329 330 public final static byte IMUL = 104; 331 332 333 public final static byte LMUL = 105; 334 335 336 public final static byte FMUL = 106; 337 338 339 public final static byte DMUL = 107; 340 341 342 public final static byte IDIV = 108; 343 344 345 public final static byte LDIV = 109; 346 347 348 public final static byte FDIV = 110; 349 350 351 public final static byte DDIV = 111; 352 353 354 public final static byte IREM = 112; 355 356 357 public final static byte LREM = 113; 358 359 360 public final static byte FREM = 114; 361 362 363 public final static byte DREM = 115; 364 365 366 public final static byte INEG = 116; 367 368 369 public final static byte LNEG = 117; 370 371 372 public final static byte FNEG = 118; 373 374 375 public final static byte DNEG = 119; 376 377 378 public final static byte ISHL = 120; 379 380 381 public final static byte LSHL = 121; 382 383 384 public final static byte ISHR = 122; 385 386 387 public final static byte LSHR = 123; 388 389 390 public final static byte IUSHR = 124; 391 392 393 public final static byte LUSHR = 125; 394 395 396 public final static byte IAND = 126; 397 398 399 public final static byte LAND = 127; 400 401 402 public final static byte IOR = -256+128; 403 404 405 public final static byte LOR = -256+129; 406 407 408 public final static byte IXOR = -256+130; 409 410 411 public final static byte LXOR = -256+131; 412 413 414 public final static byte IINC = -256+132; 415 416 417 public final static byte I2L = -256+133; 418 419 420 public final static byte I2F = -256+134; 421 422 423 public final static byte I2D = -256+135; 424 425 426 public final static byte L2I = -256+136; 427 428 429 public final static byte L2F = -256+137; 430 431 432 public final static byte L2D = -256+138; 433 434 435 public final static byte F2I = -256+139; 436 437 438 public final static byte F2L = -256+140; 439 440 441 public final static byte F2D = -256+141; 442 443 444 public final static byte D2I = -256+142; 445 446 447 public final static byte D2L = -256+143; 448 449 450 public final static byte D2F = -256+144; 451 452 453 public final static byte I2B = -256+145; 454 455 456 public final static byte I2C = -256+146; 457 458 459 public final static byte I2S = -256+147; 460 461 462 public final static byte LCMP = -256+148; 463 464 465 public final static byte FCMPL = -256+149; 466 467 468 public final static byte FCMPG = -256+150; 469 470 471 public final static byte DCMPL = -256+151; 472 473 474 public final static byte DCMPG = -256+152; 475 476 477 public final static byte IFEQ = -256+153; 478 479 480 public final static byte IFNE = -256+154; 481 482 483 public final static byte IFLT = -256+155; 484 485 486 public final static byte IFGE = -256+156; 487 488 489 public final static byte IFGT = -256+157; 490 491 492 public final static byte IFLE = -256+158; 493 494 495 public final static byte IF_ICMPEQ = -256+159; 496 497 498 public final static byte IF_ICMPNE = -256+160; 499 500 501 public final static byte IF_ICMPLT = -256+161; 502 503 504 public final static byte IF_ICMPGE = -256+162; 505 506 507 public final static byte IF_ICMPGT = -256+163; 508 509 510 public final static byte IF_ICMPLE = -256+164; 511 512 513 public final static byte IF_ACMPEQ = -256+165; 514 515 516 public final static byte IF_ACMPNE = -256+166; 517 518 519 public final static byte GOTO = -256+167; 520 521 522 public final static byte JSR = -256+168; 523 524 525 public final static byte RET = -256+169; 526 527 528 public final static byte TABLESWITCH = -256+170; 529 530 531 public final static byte LOOKUPSWITCH = -256+171; 532 533 534 public final static byte IRETURN = -256+172; 535 536 537 public final static byte LRETURN = -256+173; 538 539 540 public final static byte FRETURN = -256+174 ; 541 542 543 public final static byte DRETURN = -256+175; 544 545 546 public final static byte ARETURN = -256+176; 547 548 549 public final static byte RETURN = -256+177; 550 551 552 public final static byte GETSTATIC = -256+178 ; 553 554 555 public final static byte PUTSTATIC = -256+179; 556 557 558 public final static byte GETFIELD = -256+180; 559 560 561 public final static byte PUTFIELD = -256+181; 562 563 564 public final static byte INVOKEVIRTUAL = -256+182; 565 566 567 public final static byte INVOKESPECIAL = -256+183; 568 569 570 public final static byte INVOKESTATIC = -256+184; 571 572 573 public final static byte INVOKEINTERFACE = -256+185; 574 575 576 //Opcode 186 is unused 577 public final static byte NEW = -256+187; 578 579 580 public final static byte NEWARRAY = -256+188; 581 582 583 public final static byte ANEWARRAY = -256+189; 584 585 586 public final static byte ARRAYLENGTH = -256+190; 587 588 589 public final static byte ATHROW = -256+191; 590 591 592 public final static byte CHECKCAST = -256+192; 593 594 595 public final static byte INSTANCEOF = -256+193; 596 597 598 public final static byte MONITORENTER = -256+194; 599 600 601 public final static byte MONITOREXIT = -256+195; 602 603 604 public final static byte WIDE = -256+196; 605 606 607 public final static byte MULTIANEWARRAY = -256+197; 608 609 610 public final static byte IFNULL = -256+198; 611 612 613 public final static byte IFNONNULL = -256+199; 614 615 616 public final static byte GOTO_W = -256+200; 617 618 619 public final static byte JSR_W = -256+201; 620 621 622 public final static byte BREAKPOINT = -256+202; 623 624 625 public final static byte IMPDEP1 = -256+254; 626 627 628 public final static byte IMPDEP2 = -256+255; 629 630 631 }