View Javadoc
1 /* Generated By:JavaCC: Do not edit this line. SQLParserTokenManager.java */ 2 package com.sun.ebxml.registry.query.sql; 3 import java.io.*; 4 import java.util.*; 5 import org.oasis.ebxml.registry.bindings.query.*; 6 import org.oasis.ebxml.registry.bindings.query.types.*; 7 import org.oasis.ebxml.registry.bindings.rim.*; 8 import com.sun.ebxml.registry.*; 9 import com.sun.ebxml.registry.persistence.rdb.*; 10 import com.sun.ebxml.registry.security.authentication.*; 11 12 public class SQLParserTokenManager implements SQLParserConstants 13 { 14 private final int jjStopStringLiteralDfa_0(int pos, long active0) 15 { 16 switch (pos) 17 { 18 case 0: 19 if ((active0 & 0x80000000000000L) != 0L) 20 return 0; 21 if ((active0 & 0x3ffffff80L) != 0L) 22 { 23 jjmatchedKind = 38; 24 return 42; 25 } 26 if ((active0 & 0x40000000000L) != 0L) 27 return 14; 28 if ((active0 & 0x20000000000000L) != 0L) 29 return 6; 30 return -1; 31 case 1: 32 if ((active0 & 0x60c0800L) != 0L) 33 return 42; 34 if ((active0 & 0x3f9f3f780L) != 0L) 35 { 36 if (jjmatchedPos != 1) 37 { 38 jjmatchedKind = 38; 39 jjmatchedPos = 1; 40 } 41 return 42; 42 } 43 return -1; 44 case 2: 45 if ((active0 & 0x20e00380L) != 0L) 46 return 42; 47 if ((active0 & 0x3dd13f400L) != 0L) 48 { 49 jjmatchedKind = 38; 50 jjmatchedPos = 2; 51 return 42; 52 } 53 return -1; 54 case 3: 55 if ((active0 & 0x301109000L) != 0L) 56 return 42; 57 if ((active0 & 0xdc036400L) != 0L) 58 { 59 if (jjmatchedPos != 3) 60 { 61 jjmatchedKind = 38; 62 jjmatchedPos = 3; 63 } 64 return 42; 65 } 66 return -1; 67 case 4: 68 if ((active0 & 0x2c4010000L) != 0L) 69 return 42; 70 if ((active0 & 0x18026400L) != 0L) 71 { 72 jjmatchedKind = 38; 73 jjmatchedPos = 4; 74 return 42; 75 } 76 return -1; 77 case 5: 78 if ((active0 & 0x18024000L) != 0L) 79 return 42; 80 if ((active0 & 0x2400L) != 0L) 81 { 82 jjmatchedKind = 38; 83 jjmatchedPos = 5; 84 return 42; 85 } 86 return -1; 87 case 6: 88 if ((active0 & 0x400L) != 0L) 89 return 42; 90 if ((active0 & 0x2000L) != 0L) 91 { 92 jjmatchedKind = 38; 93 jjmatchedPos = 6; 94 return 42; 95 } 96 return -1; 97 default : 98 return -1; 99 } 100 } 101 private final int jjStartNfa_0(int pos, long active0) 102 { 103 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); 104 } 105 private final int jjStopAtPos(int pos, int kind) 106 { 107 jjmatchedKind = kind; 108 jjmatchedPos = pos; 109 return pos + 1; 110 } 111 private final int jjStartNfaWithStates_0(int pos, int kind, int state) 112 { 113 jjmatchedKind = kind; 114 jjmatchedPos = pos; 115 try { curChar = input_stream.readChar(); } 116 catch(java.io.IOException e) { return pos + 1; } 117 return jjMoveNfa_0(state, pos + 1); 118 } 119 private final int jjMoveStringLiteralDfa0_0() 120 { 121 switch(curChar) 122 { 123 case 33: 124 return jjMoveStringLiteralDfa1_0(0x1000000000000L); 125 case 40: 126 return jjStopAtPos(0, 50); 127 case 41: 128 return jjStopAtPos(0, 51); 129 case 42: 130 return jjStopAtPos(0, 52); 131 case 43: 132 return jjStopAtPos(0, 54); 133 case 44: 134 return jjStopAtPos(0, 57); 135 case 45: 136 return jjStartNfaWithStates_0(0, 55, 0); 137 case 46: 138 return jjStartNfaWithStates_0(0, 42, 14); 139 case 47: 140 return jjStartNfaWithStates_0(0, 53, 6); 141 case 59: 142 return jjStopAtPos(0, 41); 143 case 60: 144 jjmatchedKind = 43; 145 return jjMoveStringLiteralDfa1_0(0x2100000000000L); 146 case 61: 147 return jjStopAtPos(0, 47); 148 case 62: 149 jjmatchedKind = 45; 150 return jjMoveStringLiteralDfa1_0(0x400000000000L); 151 case 63: 152 return jjStopAtPos(0, 56); 153 case 65: 154 case 97: 155 return jjMoveStringLiteralDfa1_0(0x380L); 156 case 66: 157 case 98: 158 return jjMoveStringLiteralDfa1_0(0xc00L); 159 case 68: 160 case 100: 161 return jjMoveStringLiteralDfa1_0(0x3000L); 162 case 69: 163 case 101: 164 return jjMoveStringLiteralDfa1_0(0x4000L); 165 case 70: 166 case 102: 167 return jjMoveStringLiteralDfa1_0(0x8000L); 168 case 71: 169 case 103: 170 return jjMoveStringLiteralDfa1_0(0x10000L); 171 case 72: 172 case 104: 173 return jjMoveStringLiteralDfa1_0(0x20000L); 174 case 73: 175 case 105: 176 return jjMoveStringLiteralDfa1_0(0xc0000L); 177 case 76: 178 case 108: 179 return jjMoveStringLiteralDfa1_0(0x100000L); 180 case 77: 181 case 109: 182 return jjMoveStringLiteralDfa1_0(0x600000L); 183 case 78: 184 case 110: 185 return jjMoveStringLiteralDfa1_0(0x1800000L); 186 case 79: 187 case 111: 188 return jjMoveStringLiteralDfa1_0(0x6000000L); 189 case 83: 190 case 115: 191 return jjMoveStringLiteralDfa1_0(0x38000000L); 192 case 85: 193 case 117: 194 return jjMoveStringLiteralDfa1_0(0x40000000L); 195 case 87: 196 case 119: 197 return jjMoveStringLiteralDfa1_0(0x80000000L); 198 case 90: 199 case 122: 200 return jjMoveStringLiteralDfa1_0(0x300000000L); 201 default : 202 return jjMoveNfa_0(5, 0); 203 } 204 } 205 private final int jjMoveStringLiteralDfa1_0(long active0) 206 { 207 try { curChar = input_stream.readChar(); } 208 catch(java.io.IOException e) { 209 jjStopStringLiteralDfa_0(0, active0); 210 return 1; 211 } 212 switch(curChar) 213 { 214 case 61: 215 if ((active0 & 0x100000000000L) != 0L) 216 return jjStopAtPos(1, 44); 217 else if ((active0 & 0x400000000000L) != 0L) 218 return jjStopAtPos(1, 46); 219 else if ((active0 & 0x1000000000000L) != 0L) 220 return jjStopAtPos(1, 48); 221 break; 222 case 62: 223 if ((active0 & 0x2000000000000L) != 0L) 224 return jjStopAtPos(1, 49); 225 break; 226 case 65: 227 case 97: 228 return jjMoveStringLiteralDfa2_0(active0, 0x220000L); 229 case 69: 230 case 101: 231 return jjMoveStringLiteralDfa2_0(active0, 0x308001400L); 232 case 72: 233 case 104: 234 return jjMoveStringLiteralDfa2_0(active0, 0x80000000L); 235 case 73: 236 case 105: 237 return jjMoveStringLiteralDfa2_0(active0, 0x502000L); 238 case 76: 239 case 108: 240 return jjMoveStringLiteralDfa2_0(active0, 0x80L); 241 case 78: 242 case 110: 243 if ((active0 & 0x40000L) != 0L) 244 return jjStartNfaWithStates_0(1, 18, 42); 245 return jjMoveStringLiteralDfa2_0(active0, 0x100L); 246 case 79: 247 case 111: 248 return jjMoveStringLiteralDfa2_0(active0, 0x800000L); 249 case 80: 250 case 112: 251 return jjMoveStringLiteralDfa2_0(active0, 0x50000000L); 252 case 82: 253 case 114: 254 if ((active0 & 0x2000000L) != 0L) 255 { 256 jjmatchedKind = 25; 257 jjmatchedPos = 1; 258 } 259 return jjMoveStringLiteralDfa2_0(active0, 0x4018000L); 260 case 83: 261 case 115: 262 if ((active0 & 0x80000L) != 0L) 263 return jjStartNfaWithStates_0(1, 19, 42); 264 return jjMoveStringLiteralDfa2_0(active0, 0x200L); 265 case 85: 266 case 117: 267 return jjMoveStringLiteralDfa2_0(active0, 0x21000000L); 268 case 88: 269 case 120: 270 return jjMoveStringLiteralDfa2_0(active0, 0x4000L); 271 case 89: 272 case 121: 273 if ((active0 & 0x800L) != 0L) 274 return jjStartNfaWithStates_0(1, 11, 42); 275 break; 276 default : 277 break; 278 } 279 return jjStartNfa_0(0, active0); 280 } 281 private final int jjMoveStringLiteralDfa2_0(long old0, long active0) 282 { 283 if (((active0 &= old0)) == 0L) 284 return jjStartNfa_0(0, old0); 285 try { curChar = input_stream.readChar(); } 286 catch(java.io.IOException e) { 287 jjStopStringLiteralDfa_0(1, active0); 288 return 2; 289 } 290 switch(curChar) 291 { 292 case 65: 293 case 97: 294 return jjMoveStringLiteralDfa3_0(active0, 0x10000000L); 295 case 67: 296 case 99: 297 if ((active0 & 0x200L) != 0L) 298 return jjStartNfaWithStates_0(2, 9, 42); 299 break; 300 case 68: 301 case 100: 302 if ((active0 & 0x100L) != 0L) 303 return jjStartNfaWithStates_0(2, 8, 42); 304 return jjMoveStringLiteralDfa3_0(active0, 0x4000000L); 305 case 69: 306 case 101: 307 return jjMoveStringLiteralDfa3_0(active0, 0x80000000L); 308 case 73: 309 case 105: 310 return jjMoveStringLiteralDfa3_0(active0, 0x4000L); 311 case 75: 312 case 107: 313 return jjMoveStringLiteralDfa3_0(active0, 0x100000L); 314 case 76: 315 case 108: 316 if ((active0 & 0x80L) != 0L) 317 return jjStartNfaWithStates_0(2, 7, 42); 318 return jjMoveStringLiteralDfa3_0(active0, 0x9000000L); 319 case 77: 320 case 109: 321 if ((active0 & 0x20000000L) != 0L) 322 return jjStartNfaWithStates_0(2, 29, 42); 323 break; 324 case 78: 325 case 110: 326 if ((active0 & 0x400000L) != 0L) 327 return jjStartNfaWithStates_0(2, 22, 42); 328 break; 329 case 79: 330 case 111: 331 return jjMoveStringLiteralDfa3_0(active0, 0x18000L); 332 case 80: 333 case 112: 334 return jjMoveStringLiteralDfa3_0(active0, 0x40000000L); 335 case 82: 336 case 114: 337 return jjMoveStringLiteralDfa3_0(active0, 0x300000000L); 338 case 83: 339 case 115: 340 return jjMoveStringLiteralDfa3_0(active0, 0x3000L); 341 case 84: 342 case 116: 343 if ((active0 & 0x800000L) != 0L) 344 return jjStartNfaWithStates_0(2, 23, 42); 345 return jjMoveStringLiteralDfa3_0(active0, 0x400L); 346 case 86: 347 case 118: 348 return jjMoveStringLiteralDfa3_0(active0, 0x20000L); 349 case 88: 350 case 120: 351 if ((active0 & 0x200000L) != 0L) 352 return jjStartNfaWithStates_0(2, 21, 42); 353 break; 354 default : 355 break; 356 } 357 return jjStartNfa_0(1, active0); 358 } 359 private final int jjMoveStringLiteralDfa3_0(long old0, long active0) 360 { 361 if (((active0 &= old0)) == 0L) 362 return jjStartNfa_0(1, old0); 363 try { curChar = input_stream.readChar(); } 364 catch(java.io.IOException e) { 365 jjStopStringLiteralDfa_0(2, active0); 366 return 3; 367 } 368 switch(curChar) 369 { 370 case 67: 371 case 99: 372 if ((active0 & 0x1000L) != 0L) 373 return jjStartNfaWithStates_0(3, 12, 42); 374 return jjMoveStringLiteralDfa4_0(active0, 0x10000000L); 375 case 69: 376 case 101: 377 if ((active0 & 0x100000L) != 0L) 378 return jjStartNfaWithStates_0(3, 20, 42); 379 return jjMoveStringLiteralDfa4_0(active0, 0x4c000000L); 380 case 73: 381 case 105: 382 return jjMoveStringLiteralDfa4_0(active0, 0x20000L); 383 case 76: 384 case 108: 385 if ((active0 & 0x1000000L) != 0L) 386 return jjStartNfaWithStates_0(3, 24, 42); 387 break; 388 case 77: 389 case 109: 390 if ((active0 & 0x8000L) != 0L) 391 return jjStartNfaWithStates_0(3, 15, 42); 392 break; 393 case 79: 394 case 111: 395 if ((active0 & 0x100000000L) != 0L) 396 { 397 jjmatchedKind = 32; 398 jjmatchedPos = 3; 399 } 400 return jjMoveStringLiteralDfa4_0(active0, 0x200000000L); 401 case 82: 402 case 114: 403 return jjMoveStringLiteralDfa4_0(active0, 0x80000000L); 404 case 83: 405 case 115: 406 return jjMoveStringLiteralDfa4_0(active0, 0x4000L); 407 case 84: 408 case 116: 409 return jjMoveStringLiteralDfa4_0(active0, 0x2000L); 410 case 85: 411 case 117: 412 return jjMoveStringLiteralDfa4_0(active0, 0x10000L); 413 case 87: 414 case 119: 415 return jjMoveStringLiteralDfa4_0(active0, 0x400L); 416 default : 417 break; 418 } 419 return jjStartNfa_0(2, active0); 420 } 421 private final int jjMoveStringLiteralDfa4_0(long old0, long active0) 422 { 423 if (((active0 &= old0)) == 0L) 424 return jjStartNfa_0(2, old0); 425 try { curChar = input_stream.readChar(); } 426 catch(java.io.IOException e) { 427 jjStopStringLiteralDfa_0(3, active0); 428 return 4; 429 } 430 switch(curChar) 431 { 432 case 67: 433 case 99: 434 return jjMoveStringLiteralDfa5_0(active0, 0x8000000L); 435 case 69: 436 case 101: 437 if ((active0 & 0x80000000L) != 0L) 438 return jjStartNfaWithStates_0(4, 31, 42); 439 return jjMoveStringLiteralDfa5_0(active0, 0x10000400L); 440 case 73: 441 case 105: 442 return jjMoveStringLiteralDfa5_0(active0, 0x2000L); 443 case 78: 444 case 110: 445 return jjMoveStringLiteralDfa5_0(active0, 0x20000L); 446 case 80: 447 case 112: 448 if ((active0 & 0x10000L) != 0L) 449 return jjStartNfaWithStates_0(4, 16, 42); 450 break; 451 case 82: 452 case 114: 453 if ((active0 & 0x4000000L) != 0L) 454 return jjStartNfaWithStates_0(4, 26, 42); 455 else if ((active0 & 0x40000000L) != 0L) 456 return jjStartNfaWithStates_0(4, 30, 42); 457 break; 458 case 83: 459 case 115: 460 if ((active0 & 0x200000000L) != 0L) 461 return jjStartNfaWithStates_0(4, 33, 42); 462 break; 463 case 84: 464 case 116: 465 return jjMoveStringLiteralDfa5_0(active0, 0x4000L); 466 default : 467 break; 468 } 469 return jjStartNfa_0(3, active0); 470 } 471 private final int jjMoveStringLiteralDfa5_0(long old0, long active0) 472 { 473 if (((active0 &= old0)) == 0L) 474 return jjStartNfa_0(3, old0); 475 try { curChar = input_stream.readChar(); } 476 catch(java.io.IOException e) { 477 jjStopStringLiteralDfa_0(4, active0); 478 return 5; 479 } 480 switch(curChar) 481 { 482 case 69: 483 case 101: 484 return jjMoveStringLiteralDfa6_0(active0, 0x400L); 485 case 71: 486 case 103: 487 if ((active0 & 0x20000L) != 0L) 488 return jjStartNfaWithStates_0(5, 17, 42); 489 break; 490 case 78: 491 case 110: 492 return jjMoveStringLiteralDfa6_0(active0, 0x2000L); 493 case 83: 494 case 115: 495 if ((active0 & 0x4000L) != 0L) 496 return jjStartNfaWithStates_0(5, 14, 42); 497 else if ((active0 & 0x10000000L) != 0L) 498 return jjStartNfaWithStates_0(5, 28, 42); 499 break; 500 case 84: 501 case 116: 502 if ((active0 & 0x8000000L) != 0L) 503 return jjStartNfaWithStates_0(5, 27, 42); 504 break; 505 default : 506 break; 507 } 508 return jjStartNfa_0(4, active0); 509 } 510 private final int jjMoveStringLiteralDfa6_0(long old0, long active0) 511 { 512 if (((active0 &= old0)) == 0L) 513 return jjStartNfa_0(4, old0); 514 try { curChar = input_stream.readChar(); } 515 catch(java.io.IOException e) { 516 jjStopStringLiteralDfa_0(5, active0); 517 return 6; 518 } 519 switch(curChar) 520 { 521 case 67: 522 case 99: 523 return jjMoveStringLiteralDfa7_0(active0, 0x2000L); 524 case 78: 525 case 110: 526 if ((active0 & 0x400L) != 0L) 527 return jjStartNfaWithStates_0(6, 10, 42); 528 break; 529 default : 530 break; 531 } 532 return jjStartNfa_0(5, active0); 533 } 534 private final int jjMoveStringLiteralDfa7_0(long old0, long active0) 535 { 536 if (((active0 &= old0)) == 0L) 537 return jjStartNfa_0(5, old0); 538 try { curChar = input_stream.readChar(); } 539 catch(java.io.IOException e) { 540 jjStopStringLiteralDfa_0(6, active0); 541 return 7; 542 } 543 switch(curChar) 544 { 545 case 84: 546 case 116: 547 if ((active0 & 0x2000L) != 0L) 548 return jjStartNfaWithStates_0(7, 13, 42); 549 break; 550 default : 551 break; 552 } 553 return jjStartNfa_0(6, active0); 554 } 555 private final void jjCheckNAdd(int state) 556 { 557 if (jjrounds[state] != jjround) 558 { 559 jjstateSet[jjnewStateCnt++] = state; 560 jjrounds[state] = jjround; 561 } 562 } 563 private final void jjAddStates(int start, int end) 564 { 565 do { 566 jjstateSet[jjnewStateCnt++] = jjnextStates[start]; 567 } while (start++ != end); 568 } 569 private final void jjCheckNAddTwoStates(int state1, int state2) 570 { 571 jjCheckNAdd(state1); 572 jjCheckNAdd(state2); 573 } 574 private final void jjCheckNAddStates(int start, int end) 575 { 576 do { 577 jjCheckNAdd(jjnextStates[start]); 578 } while (start++ != end); 579 } 580 private final void jjCheckNAddStates(int start) 581 { 582 jjCheckNAdd(jjnextStates[start]); 583 jjCheckNAdd(jjnextStates[start + 1]); 584 } 585 static final long[] jjbitVec0 = { 586 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL 587 }; 588 private final int jjMoveNfa_0(int startState, int curPos) 589 { 590 int[] nextStates; 591 int startsAt = 0; 592 jjnewStateCnt = 42; 593 int i = 1; 594 jjstateSet[0] = startState; 595 int j, kind = 0x7fffffff; 596 for (;;) 597 { 598 if (++jjround == 0x7fffffff) 599 ReInitRounds(); 600 if (curChar < 64) 601 { 602 long l = 1L << curChar; 603 MatchLoop: do 604 { 605 switch(jjstateSet[--i]) 606 { 607 case 5: 608 if ((0x3ff000000000000L & l) != 0L) 609 { 610 if (kind > 34) 611 kind = 34; 612 jjCheckNAddStates(0, 6); 613 } 614 else if (curChar == 39) 615 jjCheckNAddStates(7, 9); 616 else if (curChar == 46) 617 jjCheckNAdd(14); 618 else if (curChar == 47) 619 jjstateSet[jjnewStateCnt++] = 6; 620 else if (curChar == 45) 621 jjstateSet[jjnewStateCnt++] = 0; 622 break; 623 case 42: 624 case 25: 625 if ((0x3ff001800000000L & l) == 0L) 626 break; 627 if (kind > 38) 628 kind = 38; 629 jjCheckNAdd(25); 630 break; 631 case 0: 632 if (curChar == 45) 633 jjCheckNAddStates(10, 12); 634 break; 635 case 1: 636 if ((0xffffffffffffdbffL & l) != 0L) 637 jjCheckNAddStates(10, 12); 638 break; 639 case 2: 640 if ((0x2400L & l) != 0L && kind > 5) 641 kind = 5; 642 break; 643 case 3: 644 if (curChar == 10 && kind > 5) 645 kind = 5; 646 break; 647 case 4: 648 if (curChar == 13) 649 jjstateSet[jjnewStateCnt++] = 3; 650 break; 651 case 6: 652 if (curChar == 42) 653 jjCheckNAddTwoStates(7, 8); 654 break; 655 case 7: 656 if ((0xfffffbffffffffffL & l) != 0L) 657 jjCheckNAddTwoStates(7, 8); 658 break; 659 case 8: 660 if (curChar == 42) 661 jjCheckNAddStates(13, 15); 662 break; 663 case 9: 664 if ((0xffff7bffffffffffL & l) != 0L) 665 jjCheckNAddTwoStates(10, 8); 666 break; 667 case 10: 668 if ((0xfffffbffffffffffL & l) != 0L) 669 jjCheckNAddTwoStates(10, 8); 670 break; 671 case 11: 672 if (curChar == 47 && kind > 6) 673 kind = 6; 674 break; 675 case 12: 676 if (curChar == 47) 677 jjstateSet[jjnewStateCnt++] = 6; 678 break; 679 case 13: 680 if (curChar == 46) 681 jjCheckNAdd(14); 682 break; 683 case 14: 684 if ((0x3ff000000000000L & l) == 0L) 685 break; 686 if (kind > 35) 687 kind = 35; 688 jjCheckNAddTwoStates(14, 15); 689 break; 690 case 16: 691 if ((0x280000000000L & l) != 0L) 692 jjCheckNAdd(17); 693 break; 694 case 17: 695 if ((0x3ff000000000000L & l) == 0L) 696 break; 697 if (kind > 35) 698 kind = 35; 699 jjCheckNAdd(17); 700 break; 701 case 18: 702 if (curChar == 39) 703 jjCheckNAddStates(7, 9); 704 break; 705 case 19: 706 if ((0xffffff7fffffffffL & l) != 0L) 707 jjCheckNAddStates(7, 9); 708 break; 709 case 20: 710 if (curChar == 39) 711 jjCheckNAddStates(16, 18); 712 break; 713 case 21: 714 if (curChar == 39) 715 jjstateSet[jjnewStateCnt++] = 20; 716 break; 717 case 22: 718 if ((0xffffff7fffffffffL & l) != 0L) 719 jjCheckNAddStates(16, 18); 720 break; 721 case 23: 722 if (curChar == 39 && kind > 37) 723 kind = 37; 724 break; 725 case 26: 726 if ((0x3ff000000000000L & l) == 0L) 727 break; 728 if (kind > 34) 729 kind = 34; 730 jjCheckNAddStates(0, 6); 731 break; 732 case 27: 733 if ((0x3ff000000000000L & l) == 0L) 734 break; 735 if (kind > 34) 736 kind = 34; 737 jjCheckNAdd(27); 738 break; 739 case 28: 740 if ((0x3ff000000000000L & l) != 0L) 741 jjCheckNAddTwoStates(28, 29); 742 break; 743 case 29: 744 if (curChar == 46) 745 jjCheckNAdd(30); 746 break; 747 case 30: 748 if ((0x3ff000000000000L & l) == 0L) 749 break; 750 if (kind > 35) 751 kind = 35; 752 jjCheckNAddTwoStates(30, 31); 753 break; 754 case 32: 755 if ((0x280000000000L & l) != 0L) 756 jjCheckNAdd(33); 757 break; 758 case 33: 759 if ((0x3ff000000000000L & l) == 0L) 760 break; 761 if (kind > 35) 762 kind = 35; 763 jjCheckNAdd(33); 764 break; 765 case 34: 766 if ((0x3ff000000000000L & l) != 0L) 767 jjCheckNAddTwoStates(34, 35); 768 break; 769 case 36: 770 if ((0x280000000000L & l) != 0L) 771 jjCheckNAdd(37); 772 break; 773 case 37: 774 if ((0x3ff000000000000L & l) == 0L) 775 break; 776 if (kind > 35) 777 kind = 35; 778 jjCheckNAdd(37); 779 break; 780 case 38: 781 if ((0x3ff000000000000L & l) == 0L) 782 break; 783 if (kind > 35) 784 kind = 35; 785 jjCheckNAddTwoStates(38, 39); 786 break; 787 case 40: 788 if ((0x280000000000L & l) != 0L) 789 jjCheckNAdd(41); 790 break; 791 case 41: 792 if ((0x3ff000000000000L & l) == 0L) 793 break; 794 if (kind > 35) 795 kind = 35; 796 jjCheckNAdd(41); 797 break; 798 default : break; 799 } 800 } while(i != startsAt); 801 } 802 else if (curChar < 128) 803 { 804 long l = 1L << (curChar & 077); 805 MatchLoop: do 806 { 807 switch(jjstateSet[--i]) 808 { 809 case 5: 810 case 24: 811 if ((0x7fffffe07fffffeL & l) == 0L) 812 break; 813 if (kind > 38) 814 kind = 38; 815 jjCheckNAddTwoStates(24, 25); 816 break; 817 case 42: 818 if ((0x7fffffe87fffffeL & l) != 0L) 819 { 820 if (kind > 38) 821 kind = 38; 822 jjCheckNAdd(25); 823 } 824 if ((0x7fffffe07fffffeL & l) != 0L) 825 { 826 if (kind > 38) 827 kind = 38; 828 jjCheckNAddTwoStates(24, 25); 829 } 830 break; 831 case 1: 832 jjAddStates(10, 12); 833 break; 834 case 7: 835 jjCheckNAddTwoStates(7, 8); 836 break; 837 case 9: 838 case 10: 839 jjCheckNAddTwoStates(10, 8); 840 break; 841 case 15: 842 if ((0x2000000020L & l) != 0L) 843 jjAddStates(19, 20); 844 break; 845 case 19: 846 jjCheckNAddStates(7, 9); 847 break; 848 case 22: 849 jjCheckNAddStates(16, 18); 850 break; 851 case 25: 852 if ((0x7fffffe87fffffeL & l) == 0L) 853 break; 854 if (kind > 38) 855 kind = 38; 856 jjCheckNAdd(25); 857 break; 858 case 31: 859 if ((0x2000000020L & l) != 0L) 860 jjAddStates(21, 22); 861 break; 862 case 35: 863 if ((0x2000000020L & l) != 0L) 864 jjAddStates(23, 24); 865 break; 866 case 39: 867 if ((0x2000000020L & l) != 0L) 868 jjAddStates(25, 26); 869 break; 870 default : break; 871 } 872 } while(i != startsAt); 873 } 874 else 875 { 876 int i2 = (curChar & 0xff) >> 6; 877 long l2 = 1L << (curChar & 077); 878 MatchLoop: do 879 { 880 switch(jjstateSet[--i]) 881 { 882 case 1: 883 if ((jjbitVec0[i2] & l2) != 0L) 884 jjAddStates(10, 12); 885 break; 886 case 7: 887 if ((jjbitVec0[i2] & l2) != 0L) 888 jjCheckNAddTwoStates(7, 8); 889 break; 890 case 9: 891 case 10: 892 if ((jjbitVec0[i2] & l2) != 0L) 893 jjCheckNAddTwoStates(10, 8); 894 break; 895 case 19: 896 if ((jjbitVec0[i2] & l2) != 0L) 897 jjCheckNAddStates(7, 9); 898 break; 899 case 22: 900 if ((jjbitVec0[i2] & l2) != 0L) 901 jjCheckNAddStates(16, 18); 902 break; 903 default : break; 904 } 905 } while(i != startsAt); 906 } 907 if (kind != 0x7fffffff) 908 { 909 jjmatchedKind = kind; 910 jjmatchedPos = curPos; 911 kind = 0x7fffffff; 912 } 913 ++curPos; 914 if ((i = jjnewStateCnt) == (startsAt = 42 - (jjnewStateCnt = startsAt))) 915 return curPos; 916 try { curChar = input_stream.readChar(); } 917 catch(java.io.IOException e) { return curPos; } 918 } 919 } 920 static final int[] jjnextStates = { 921 27, 28, 29, 34, 35, 38, 39, 19, 21, 23, 1, 2, 4, 8, 9, 11, 922 21, 22, 23, 16, 17, 32, 33, 36, 37, 40, 41, 923 }; 924 public static final String[] jjstrLiteralImages = { 925 "", null, null, null, null, null, null, null, null, null, null, null, null, 926 null, null, null, null, null, null, null, null, null, null, null, null, null, null, 927 null, null, null, null, null, null, null, null, null, null, null, null, null, null, 928 "\73", "\56", "\74", "\74\75", "\76", "\76\75", "\75", "\41\75", "\74\76", "\50", 929 "\51", "\52", "\57", "\53", "\55", "\77", "\54", }; 930 public static final String[] lexStateNames = { 931 "DEFAULT", 932 }; 933 static final long[] jjtoToken = { 934 0x3fffe6fffffff81L, 935 }; 936 static final long[] jjtoSkip = { 937 0x7eL, 938 }; 939 private ASCII_CharStream input_stream; 940 private final int[] jjrounds = new int[42]; 941 private final int[] jjstateSet = new int[84]; 942 protected char curChar; 943 public SQLParserTokenManager(ASCII_CharStream stream) 944 { 945 if (ASCII_CharStream.staticFlag) 946 throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); 947 input_stream = stream; 948 } 949 public SQLParserTokenManager(ASCII_CharStream stream, int lexState) 950 { 951 this(stream); 952 SwitchTo(lexState); 953 } 954 public void ReInit(ASCII_CharStream stream) 955 { 956 jjmatchedPos = jjnewStateCnt = 0; 957 curLexState = defaultLexState; 958 input_stream = stream; 959 ReInitRounds(); 960 } 961 private final void ReInitRounds() 962 { 963 int i; 964 jjround = 0x80000001; 965 for (i = 42; i-- > 0;) 966 jjrounds[i] = 0x80000000; 967 } 968 public void ReInit(ASCII_CharStream stream, int lexState) 969 { 970 ReInit(stream); 971 SwitchTo(lexState); 972 } 973 public void SwitchTo(int lexState) 974 { 975 if (lexState >= 1 || lexState < 0) 976 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); 977 else 978 curLexState = lexState; 979 } 980 981 private final Token jjFillToken() 982 { 983 Token t = Token.newToken(jjmatchedKind); 984 t.kind = jjmatchedKind; 985 String im = jjstrLiteralImages[jjmatchedKind]; 986 t.image = (im == null) ? input_stream.GetImage() : im; 987 t.beginLine = input_stream.getBeginLine(); 988 t.beginColumn = input_stream.getBeginColumn(); 989 t.endLine = input_stream.getEndLine(); 990 t.endColumn = input_stream.getEndColumn(); 991 return t; 992 } 993 994 int curLexState = 0; 995 int defaultLexState = 0; 996 int jjnewStateCnt; 997 int jjround; 998 int jjmatchedPos; 999 int jjmatchedKind; 1000 1001 public final Token getNextToken() 1002 { 1003 int kind; 1004 Token specialToken = null; 1005 Token matchedToken; 1006 int curPos = 0; 1007 1008 EOFLoop : 1009 for (;;) 1010 { 1011 try 1012 { 1013 curChar = input_stream.BeginToken(); 1014 } 1015 catch(java.io.IOException e) 1016 { 1017 jjmatchedKind = 0; 1018 matchedToken = jjFillToken(); 1019 return matchedToken; 1020 } 1021 1022 try { 1023 while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L) 1024 curChar = input_stream.BeginToken(); 1025 } 1026 catch (java.io.IOException e1) { continue EOFLoop; } 1027 jjmatchedKind = 0x7fffffff; 1028 jjmatchedPos = 0; 1029 curPos = jjMoveStringLiteralDfa0_0(); 1030 if (jjmatchedKind != 0x7fffffff) 1031 { 1032 if (jjmatchedPos + 1 < curPos) 1033 input_stream.backup(curPos - jjmatchedPos - 1); 1034 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) 1035 { 1036 matchedToken = jjFillToken(); 1037 return matchedToken; 1038 } 1039 else 1040 { 1041 continue EOFLoop; 1042 } 1043 } 1044 int error_line = input_stream.getEndLine(); 1045 int error_column = input_stream.getEndColumn(); 1046 String error_after = null; 1047 boolean EOFSeen = false; 1048 try { input_stream.readChar(); input_stream.backup(1); } 1049 catch (java.io.IOException e1) { 1050 EOFSeen = true; 1051 error_after = curPos <= 1 ? "" : input_stream.GetImage(); 1052 if (curChar == '\n' || curChar == '\r') { 1053 error_line++; 1054 error_column = 0; 1055 } 1056 else 1057 error_column++; 1058 } 1059 if (!EOFSeen) { 1060 input_stream.backup(1); 1061 error_after = curPos <= 1 ? "" : input_stream.GetImage(); 1062 } 1063 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); 1064 } 1065 } 1066 1067 }

This page was automatically generated by Maven