0001: /* Generated By:JJTree&JavaCC: Do not edit this line. EJBQLTokenManager.java */
0002: package org.objectweb.jonas_ejb.deployment.ejbql;
0003:
0004: public class EJBQLTokenManager implements EJBQLConstants {
0005: public java.io.PrintStream debugStream = System.out;
0006:
0007: public void setDebugStream(java.io.PrintStream ds) {
0008: debugStream = ds;
0009: }
0010:
0011: private final int jjStopAtPos(int pos, int kind) {
0012: jjmatchedKind = kind;
0013: jjmatchedPos = pos;
0014: return pos + 1;
0015: }
0016:
0017: private final int jjMoveStringLiteralDfa0_0() {
0018: switch (curChar) {
0019: case 9:
0020: jjmatchedKind = 2;
0021: return jjMoveNfa_0(0, 0);
0022: case 10:
0023: jjmatchedKind = 3;
0024: return jjMoveNfa_0(0, 0);
0025: case 13:
0026: jjmatchedKind = 4;
0027: return jjMoveNfa_0(0, 0);
0028: case 32:
0029: jjmatchedKind = 1;
0030: return jjMoveNfa_0(0, 0);
0031: case 40:
0032: jjmatchedKind = 17;
0033: return jjMoveNfa_0(0, 0);
0034: case 41:
0035: jjmatchedKind = 15;
0036: return jjMoveNfa_0(0, 0);
0037: case 42:
0038: jjmatchedKind = 6;
0039: return jjMoveNfa_0(0, 0);
0040: case 43:
0041: jjmatchedKind = 8;
0042: return jjMoveNfa_0(0, 0);
0043: case 44:
0044: jjmatchedKind = 14;
0045: return jjMoveNfa_0(0, 0);
0046: case 45:
0047: jjmatchedKind = 5;
0048: return jjMoveNfa_0(0, 0);
0049: case 46:
0050: jjmatchedKind = 12;
0051: return jjMoveNfa_0(0, 0);
0052: case 47:
0053: jjmatchedKind = 11;
0054: return jjMoveNfa_0(0, 0);
0055: case 60:
0056: jjmatchedKind = 18;
0057: return jjMoveStringLiteralDfa1_0(0x10400L);
0058: case 61:
0059: jjmatchedKind = 9;
0060: return jjMoveNfa_0(0, 0);
0061: case 62:
0062: jjmatchedKind = 13;
0063: return jjMoveStringLiteralDfa1_0(0x80L);
0064: case 65:
0065: return jjMoveStringLiteralDfa1_0(0xf80000L);
0066: case 66:
0067: return jjMoveStringLiteralDfa1_0(0x1000000L);
0068: case 67:
0069: return jjMoveStringLiteralDfa1_0(0x6000000L);
0070: case 68:
0071: return jjMoveStringLiteralDfa1_0(0x18000000L);
0072: case 69:
0073: return jjMoveStringLiteralDfa1_0(0x60000000L);
0074: case 70:
0075: return jjMoveStringLiteralDfa1_0(0x80000080000000L);
0076: case 73:
0077: return jjMoveStringLiteralDfa1_0(0x300000000L);
0078: case 76:
0079: return jjMoveStringLiteralDfa1_0(0x3c00000000L);
0080: case 77:
0081: return jjMoveStringLiteralDfa1_0(0x3c000000000L);
0082: case 78:
0083: return jjMoveStringLiteralDfa1_0(0xc0000000000L);
0084: case 79:
0085: return jjMoveStringLiteralDfa1_0(0xf00000000000L);
0086: case 83:
0087: return jjMoveStringLiteralDfa1_0(0xf000000000000L);
0088: case 84:
0089: return jjMoveStringLiteralDfa1_0(0x100000000000000L);
0090: case 87:
0091: return jjMoveStringLiteralDfa1_0(0x10000000000000L);
0092: case 97:
0093: return jjMoveStringLiteralDfa1_0(0xf80000L);
0094: case 98:
0095: return jjMoveStringLiteralDfa1_0(0x1000000L);
0096: case 99:
0097: return jjMoveStringLiteralDfa1_0(0x6000000L);
0098: case 100:
0099: return jjMoveStringLiteralDfa1_0(0x18000000L);
0100: case 101:
0101: return jjMoveStringLiteralDfa1_0(0x60000000L);
0102: case 102:
0103: return jjMoveStringLiteralDfa1_0(0x80000080000000L);
0104: case 105:
0105: return jjMoveStringLiteralDfa1_0(0x300000000L);
0106: case 108:
0107: return jjMoveStringLiteralDfa1_0(0x3c00000000L);
0108: case 109:
0109: return jjMoveStringLiteralDfa1_0(0x3c000000000L);
0110: case 110:
0111: return jjMoveStringLiteralDfa1_0(0xc0000000000L);
0112: case 111:
0113: return jjMoveStringLiteralDfa1_0(0xf00000000000L);
0114: case 115:
0115: return jjMoveStringLiteralDfa1_0(0xf000000000000L);
0116: case 116:
0117: return jjMoveStringLiteralDfa1_0(0x100000000000000L);
0118: case 119:
0119: return jjMoveStringLiteralDfa1_0(0x10000000000000L);
0120: default:
0121: return jjMoveNfa_0(0, 0);
0122: }
0123: }
0124:
0125: private final int jjMoveStringLiteralDfa1_0(long active0) {
0126: try {
0127: curChar = input_stream.readChar();
0128: } catch (java.io.IOException e) {
0129: return jjMoveNfa_0(0, 0);
0130: }
0131: switch (curChar) {
0132: case 61:
0133: if ((active0 & 0x80L) != 0L) {
0134: jjmatchedKind = 7;
0135: jjmatchedPos = 1;
0136: } else if ((active0 & 0x400L) != 0L) {
0137: jjmatchedKind = 10;
0138: jjmatchedPos = 1;
0139: }
0140: break;
0141: case 62:
0142: if ((active0 & 0x10000L) != 0L) {
0143: jjmatchedKind = 16;
0144: jjmatchedPos = 1;
0145: }
0146: break;
0147: case 65:
0148: return jjMoveStringLiteralDfa2_0(active0, 0x80004000000000L);
0149: case 66:
0150: return jjMoveStringLiteralDfa2_0(active0, 0x100000080000L);
0151: case 69:
0152: return jjMoveStringLiteralDfa2_0(active0, 0x1008409000000L);
0153: case 70:
0154: if ((active0 & 0x200000000000L) != 0L) {
0155: jjmatchedKind = 45;
0156: jjmatchedPos = 1;
0157: }
0158: break;
0159: case 72:
0160: return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L);
0161: case 73:
0162: return jjMoveStringLiteralDfa2_0(active0, 0x11810000000L);
0163: case 77:
0164: return jjMoveStringLiteralDfa2_0(active0, 0x20000000L);
0165: case 78:
0166: if ((active0 & 0x100000000L) != 0L) {
0167: jjmatchedKind = 32;
0168: jjmatchedPos = 1;
0169: }
0170: return jjMoveStringLiteralDfa2_0(active0, 0x100000L);
0171: case 79:
0172: return jjMoveStringLiteralDfa2_0(active0, 0x62006000000L);
0173: case 81:
0174: return jjMoveStringLiteralDfa2_0(active0, 0x2000000000000L);
0175: case 82:
0176: if ((active0 & 0x400000000000L) != 0L) {
0177: jjmatchedKind = 46;
0178: jjmatchedPos = 1;
0179: }
0180: return jjMoveStringLiteralDfa2_0(active0,
0181: 0x100800080000000L);
0182: case 83:
0183: if ((active0 & 0x200000L) != 0L) {
0184: jjmatchedKind = 21;
0185: jjmatchedPos = 1;
0186: } else if ((active0 & 0x200000000L) != 0L) {
0187: jjmatchedKind = 33;
0188: jjmatchedPos = 1;
0189: }
0190: return jjMoveStringLiteralDfa2_0(active0, 0x40400000L);
0191: case 85:
0192: return jjMoveStringLiteralDfa2_0(active0, 0xc080000000000L);
0193: case 86:
0194: return jjMoveStringLiteralDfa2_0(active0, 0x800000L);
0195: case 97:
0196: return jjMoveStringLiteralDfa2_0(active0, 0x80004000000000L);
0197: case 98:
0198: return jjMoveStringLiteralDfa2_0(active0, 0x100000080000L);
0199: case 101:
0200: return jjMoveStringLiteralDfa2_0(active0, 0x1008409000000L);
0201: case 102:
0202: if ((active0 & 0x200000000000L) != 0L) {
0203: jjmatchedKind = 45;
0204: jjmatchedPos = 1;
0205: }
0206: break;
0207: case 104:
0208: return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L);
0209: case 105:
0210: return jjMoveStringLiteralDfa2_0(active0, 0x11810000000L);
0211: case 109:
0212: return jjMoveStringLiteralDfa2_0(active0, 0x20000000L);
0213: case 110:
0214: if ((active0 & 0x100000000L) != 0L) {
0215: jjmatchedKind = 32;
0216: jjmatchedPos = 1;
0217: }
0218: return jjMoveStringLiteralDfa2_0(active0, 0x100000L);
0219: case 111:
0220: return jjMoveStringLiteralDfa2_0(active0, 0x62006000000L);
0221: case 113:
0222: return jjMoveStringLiteralDfa2_0(active0, 0x2000000000000L);
0223: case 114:
0224: if ((active0 & 0x400000000000L) != 0L) {
0225: jjmatchedKind = 46;
0226: jjmatchedPos = 1;
0227: }
0228: return jjMoveStringLiteralDfa2_0(active0,
0229: 0x100800080000000L);
0230: case 115:
0231: if ((active0 & 0x200000L) != 0L) {
0232: jjmatchedKind = 21;
0233: jjmatchedPos = 1;
0234: } else if ((active0 & 0x200000000L) != 0L) {
0235: jjmatchedKind = 33;
0236: jjmatchedPos = 1;
0237: }
0238: return jjMoveStringLiteralDfa2_0(active0, 0x40400000L);
0239: case 117:
0240: return jjMoveStringLiteralDfa2_0(active0, 0xc080000000000L);
0241: case 118:
0242: return jjMoveStringLiteralDfa2_0(active0, 0x800000L);
0243: default:
0244: break;
0245: }
0246: return jjMoveNfa_0(0, 1);
0247: }
0248:
0249: private final int jjMoveStringLiteralDfa2_0(long old0, long active0) {
0250: if (((active0 &= old0)) == 0L)
0251: return jjMoveNfa_0(0, 1);
0252: try {
0253: curChar = input_stream.readChar();
0254: } catch (java.io.IOException e) {
0255: return jjMoveNfa_0(0, 1);
0256: }
0257: switch (curChar) {
0258: case 66:
0259: return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L);
0260: case 67:
0261: if ((active0 & 0x400000L) != 0L) {
0262: jjmatchedKind = 22;
0263: jjmatchedPos = 2;
0264: }
0265: return jjMoveStringLiteralDfa3_0(active0, 0x2040000000L);
0266: case 68:
0267: if ((active0 & 0x100000L) != 0L) {
0268: jjmatchedKind = 20;
0269: jjmatchedPos = 2;
0270: } else if ((active0 & 0x20000000000L) != 0L) {
0271: jjmatchedKind = 41;
0272: jjmatchedPos = 2;
0273: }
0274: return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L);
0275: case 69:
0276: return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L);
0277: case 71:
0278: if ((active0 & 0x800000L) != 0L) {
0279: jjmatchedKind = 23;
0280: jjmatchedPos = 2;
0281: }
0282: break;
0283: case 74:
0284: return jjMoveStringLiteralDfa3_0(active0, 0x100000000000L);
0285: case 75:
0286: return jjMoveStringLiteralDfa3_0(active0, 0x800000000L);
0287: case 76:
0288: return jjMoveStringLiteralDfa3_0(active0, 0x81080000000000L);
0289: case 77:
0290: if ((active0 & 0x8000000000000L) != 0L) {
0291: jjmatchedKind = 51;
0292: jjmatchedPos = 2;
0293: }
0294: return jjMoveStringLiteralDfa3_0(active0, 0x9000000000L);
0295: case 78:
0296: if ((active0 & 0x10000000000L) != 0L) {
0297: jjmatchedKind = 40;
0298: jjmatchedPos = 2;
0299: }
0300: return jjMoveStringLiteralDfa3_0(active0, 0x402000000L);
0301: case 79:
0302: return jjMoveStringLiteralDfa3_0(active0, 0x80000000L);
0303: case 80:
0304: return jjMoveStringLiteralDfa3_0(active0, 0x20000000L);
0305: case 82:
0306: return jjMoveStringLiteralDfa3_0(active0, 0x2000000000000L);
0307: case 83:
0308: if ((active0 & 0x80000L) != 0L) {
0309: jjmatchedKind = 19;
0310: jjmatchedPos = 2;
0311: }
0312: return jjMoveStringLiteralDfa3_0(active0, 0x18000000L);
0313: case 84:
0314: if ((active0 & 0x40000000000L) != 0L) {
0315: jjmatchedKind = 42;
0316: jjmatchedPos = 2;
0317: }
0318: return jjMoveStringLiteralDfa3_0(active0, 0x1000000L);
0319: case 85:
0320: return jjMoveStringLiteralDfa3_0(active0,
0321: 0x100000004000000L);
0322: case 88:
0323: if ((active0 & 0x4000000000L) != 0L) {
0324: jjmatchedKind = 38;
0325: jjmatchedPos = 2;
0326: }
0327: break;
0328: case 98:
0329: return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L);
0330: case 99:
0331: if ((active0 & 0x400000L) != 0L) {
0332: jjmatchedKind = 22;
0333: jjmatchedPos = 2;
0334: }
0335: return jjMoveStringLiteralDfa3_0(active0, 0x2040000000L);
0336: case 100:
0337: if ((active0 & 0x100000L) != 0L) {
0338: jjmatchedKind = 20;
0339: jjmatchedPos = 2;
0340: } else if ((active0 & 0x20000000000L) != 0L) {
0341: jjmatchedKind = 41;
0342: jjmatchedPos = 2;
0343: }
0344: return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L);
0345: case 101:
0346: return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L);
0347: case 103:
0348: if ((active0 & 0x800000L) != 0L) {
0349: jjmatchedKind = 23;
0350: jjmatchedPos = 2;
0351: }
0352: break;
0353: case 106:
0354: return jjMoveStringLiteralDfa3_0(active0, 0x100000000000L);
0355: case 107:
0356: return jjMoveStringLiteralDfa3_0(active0, 0x800000000L);
0357: case 108:
0358: return jjMoveStringLiteralDfa3_0(active0, 0x81080000000000L);
0359: case 109:
0360: if ((active0 & 0x8000000000000L) != 0L) {
0361: jjmatchedKind = 51;
0362: jjmatchedPos = 2;
0363: }
0364: return jjMoveStringLiteralDfa3_0(active0, 0x9000000000L);
0365: case 110:
0366: if ((active0 & 0x10000000000L) != 0L) {
0367: jjmatchedKind = 40;
0368: jjmatchedPos = 2;
0369: }
0370: return jjMoveStringLiteralDfa3_0(active0, 0x402000000L);
0371: case 111:
0372: return jjMoveStringLiteralDfa3_0(active0, 0x80000000L);
0373: case 112:
0374: return jjMoveStringLiteralDfa3_0(active0, 0x20000000L);
0375: case 114:
0376: return jjMoveStringLiteralDfa3_0(active0, 0x2000000000000L);
0377: case 115:
0378: if ((active0 & 0x80000L) != 0L) {
0379: jjmatchedKind = 19;
0380: jjmatchedPos = 2;
0381: }
0382: return jjMoveStringLiteralDfa3_0(active0, 0x18000000L);
0383: case 116:
0384: if ((active0 & 0x40000000000L) != 0L) {
0385: jjmatchedKind = 42;
0386: jjmatchedPos = 2;
0387: }
0388: return jjMoveStringLiteralDfa3_0(active0, 0x1000000L);
0389: case 117:
0390: return jjMoveStringLiteralDfa3_0(active0,
0391: 0x100000004000000L);
0392: case 120:
0393: if ((active0 & 0x4000000000L) != 0L) {
0394: jjmatchedKind = 38;
0395: jjmatchedPos = 2;
0396: }
0397: break;
0398: default:
0399: break;
0400: }
0401: return jjMoveNfa_0(0, 2);
0402: }
0403:
0404: private final int jjMoveStringLiteralDfa3_0(long old0, long active0) {
0405: if (((active0 &= old0)) == 0L)
0406: return jjMoveNfa_0(0, 2);
0407: try {
0408: curChar = input_stream.readChar();
0409: } catch (java.io.IOException e) {
0410: return jjMoveNfa_0(0, 2);
0411: }
0412: switch (curChar) {
0413: case 65:
0414: return jjMoveStringLiteralDfa4_0(active0, 0x2040000000L);
0415: case 66:
0416: return jjMoveStringLiteralDfa4_0(active0, 0x8000000000L);
0417: case 67:
0418: if ((active0 & 0x8000000L) != 0L) {
0419: jjmatchedKind = 27;
0420: jjmatchedPos = 3;
0421: }
0422: return jjMoveStringLiteralDfa4_0(active0, 0x2000000L);
0423: case 69:
0424: if ((active0 & 0x800000000L) != 0L) {
0425: jjmatchedKind = 35;
0426: jjmatchedPos = 3;
0427: } else if ((active0 & 0x100000000000000L) != 0L) {
0428: jjmatchedKind = 56;
0429: jjmatchedPos = 3;
0430: }
0431: return jjMoveStringLiteralDfa4_0(active0, 0x1900000000000L);
0432: case 71:
0433: return jjMoveStringLiteralDfa4_0(active0, 0x400000000L);
0434: case 73:
0435: return jjMoveStringLiteralDfa4_0(active0, 0x1000000000L);
0436: case 76:
0437: if ((active0 & 0x80000000000L) != 0L) {
0438: jjmatchedKind = 43;
0439: jjmatchedPos = 3;
0440: }
0441: break;
0442: case 77:
0443: if ((active0 & 0x80000000L) != 0L) {
0444: jjmatchedKind = 31;
0445: jjmatchedPos = 3;
0446: }
0447: break;
0448: case 78:
0449: return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);
0450: case 82:
0451: return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L);
0452: case 83:
0453: return jjMoveStringLiteralDfa4_0(active0, 0x84000000000000L);
0454: case 84:
0455: if ((active0 & 0x2000000000000L) != 0L) {
0456: jjmatchedKind = 49;
0457: jjmatchedPos = 3;
0458: }
0459: return jjMoveStringLiteralDfa4_0(active0, 0x30000000L);
0460: case 87:
0461: return jjMoveStringLiteralDfa4_0(active0, 0x1000000L);
0462: case 97:
0463: return jjMoveStringLiteralDfa4_0(active0, 0x2040000000L);
0464: case 98:
0465: return jjMoveStringLiteralDfa4_0(active0, 0x8000000000L);
0466: case 99:
0467: if ((active0 & 0x8000000L) != 0L) {
0468: jjmatchedKind = 27;
0469: jjmatchedPos = 3;
0470: }
0471: return jjMoveStringLiteralDfa4_0(active0, 0x2000000L);
0472: case 101:
0473: if ((active0 & 0x800000000L) != 0L) {
0474: jjmatchedKind = 35;
0475: jjmatchedPos = 3;
0476: } else if ((active0 & 0x100000000000000L) != 0L) {
0477: jjmatchedKind = 56;
0478: jjmatchedPos = 3;
0479: }
0480: return jjMoveStringLiteralDfa4_0(active0, 0x1900000000000L);
0481: case 103:
0482: return jjMoveStringLiteralDfa4_0(active0, 0x400000000L);
0483: case 105:
0484: return jjMoveStringLiteralDfa4_0(active0, 0x1000000000L);
0485: case 108:
0486: if ((active0 & 0x80000000000L) != 0L) {
0487: jjmatchedKind = 43;
0488: jjmatchedPos = 3;
0489: }
0490: break;
0491: case 109:
0492: if ((active0 & 0x80000000L) != 0L) {
0493: jjmatchedKind = 31;
0494: jjmatchedPos = 3;
0495: }
0496: break;
0497: case 110:
0498: return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);
0499: case 114:
0500: return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L);
0501: case 115:
0502: return jjMoveStringLiteralDfa4_0(active0, 0x84000000000000L);
0503: case 116:
0504: if ((active0 & 0x2000000000000L) != 0L) {
0505: jjmatchedKind = 49;
0506: jjmatchedPos = 3;
0507: }
0508: return jjMoveStringLiteralDfa4_0(active0, 0x30000000L);
0509: case 119:
0510: return jjMoveStringLiteralDfa4_0(active0, 0x1000000L);
0511: default:
0512: break;
0513: }
0514: return jjMoveNfa_0(0, 3);
0515: }
0516:
0517: private final int jjMoveStringLiteralDfa4_0(long old0, long active0) {
0518: if (((active0 &= old0)) == 0L)
0519: return jjMoveNfa_0(0, 3);
0520: try {
0521: curChar = input_stream.readChar();
0522: } catch (java.io.IOException e) {
0523: return jjMoveNfa_0(0, 3);
0524: }
0525: switch (curChar) {
0526: case 65:
0527: return jjMoveStringLiteralDfa5_0(active0, 0x2000000L);
0528: case 67:
0529: return jjMoveStringLiteralDfa5_0(active0, 0x1100000000000L);
0530: case 69:
0531: if ((active0 & 0x10000000000000L) != 0L) {
0532: jjmatchedKind = 52;
0533: jjmatchedPos = 4;
0534: } else if ((active0 & 0x80000000000000L) != 0L) {
0535: jjmatchedKind = 55;
0536: jjmatchedPos = 4;
0537: }
0538: return jjMoveStringLiteralDfa5_0(active0, 0x8001000000L);
0539: case 73:
0540: return jjMoveStringLiteralDfa5_0(active0, 0x10000000L);
0541: case 80:
0542: return jjMoveStringLiteralDfa5_0(active0, 0x40000000L);
0543: case 82:
0544: return jjMoveStringLiteralDfa5_0(active0, 0x800000000000L);
0545: case 84:
0546: if ((active0 & 0x4000000L) != 0L) {
0547: jjmatchedKind = 26;
0548: jjmatchedPos = 4;
0549: } else if ((active0 & 0x1000000000L) != 0L) {
0550: jjmatchedKind = 36;
0551: jjmatchedPos = 4;
0552: }
0553: return jjMoveStringLiteralDfa5_0(active0, 0x4002400000000L);
0554: case 89:
0555: if ((active0 & 0x20000000L) != 0L) {
0556: jjmatchedKind = 29;
0557: jjmatchedPos = 4;
0558: }
0559: break;
0560: case 97:
0561: return jjMoveStringLiteralDfa5_0(active0, 0x2000000L);
0562: case 99:
0563: return jjMoveStringLiteralDfa5_0(active0, 0x1100000000000L);
0564: case 101:
0565: if ((active0 & 0x10000000000000L) != 0L) {
0566: jjmatchedKind = 52;
0567: jjmatchedPos = 4;
0568: } else if ((active0 & 0x80000000000000L) != 0L) {
0569: jjmatchedKind = 55;
0570: jjmatchedPos = 4;
0571: }
0572: return jjMoveStringLiteralDfa5_0(active0, 0x8001000000L);
0573: case 105:
0574: return jjMoveStringLiteralDfa5_0(active0, 0x10000000L);
0575: case 112:
0576: return jjMoveStringLiteralDfa5_0(active0, 0x40000000L);
0577: case 114:
0578: return jjMoveStringLiteralDfa5_0(active0, 0x800000000000L);
0579: case 116:
0580: if ((active0 & 0x4000000L) != 0L) {
0581: jjmatchedKind = 26;
0582: jjmatchedPos = 4;
0583: } else if ((active0 & 0x1000000000L) != 0L) {
0584: jjmatchedKind = 36;
0585: jjmatchedPos = 4;
0586: }
0587: return jjMoveStringLiteralDfa5_0(active0, 0x4002400000000L);
0588: case 121:
0589: if ((active0 & 0x20000000L) != 0L) {
0590: jjmatchedKind = 29;
0591: jjmatchedPos = 4;
0592: }
0593: break;
0594: default:
0595: break;
0596: }
0597: return jjMoveNfa_0(0, 4);
0598: }
0599:
0600: private final int jjMoveStringLiteralDfa5_0(long old0, long active0) {
0601: if (((active0 &= old0)) == 0L)
0602: return jjMoveNfa_0(0, 4);
0603: try {
0604: curChar = input_stream.readChar();
0605: } catch (java.io.IOException e) {
0606: return jjMoveNfa_0(0, 4);
0607: }
0608: switch (curChar) {
0609: case 32:
0610: return jjMoveStringLiteralDfa6_0(active0, 0x800000000000L);
0611: case 69:
0612: if ((active0 & 0x40000000L) != 0L) {
0613: jjmatchedKind = 30;
0614: jjmatchedPos = 5;
0615: } else if ((active0 & 0x2000000000L) != 0L) {
0616: jjmatchedKind = 37;
0617: jjmatchedPos = 5;
0618: }
0619: return jjMoveStringLiteralDfa6_0(active0, 0x1000000L);
0620: case 72:
0621: if ((active0 & 0x400000000L) != 0L) {
0622: jjmatchedKind = 34;
0623: jjmatchedPos = 5;
0624: }
0625: break;
0626: case 78:
0627: return jjMoveStringLiteralDfa6_0(active0, 0x10000000L);
0628: case 82:
0629: if ((active0 & 0x8000000000L) != 0L) {
0630: jjmatchedKind = 39;
0631: jjmatchedPos = 5;
0632: }
0633: return jjMoveStringLiteralDfa6_0(active0, 0x4000000000000L);
0634: case 84:
0635: if ((active0 & 0x2000000L) != 0L) {
0636: jjmatchedKind = 25;
0637: jjmatchedPos = 5;
0638: } else if ((active0 & 0x100000000000L) != 0L) {
0639: jjmatchedKind = 44;
0640: jjmatchedPos = 5;
0641: } else if ((active0 & 0x1000000000000L) != 0L) {
0642: jjmatchedKind = 48;
0643: jjmatchedPos = 5;
0644: }
0645: break;
0646: case 101:
0647: if ((active0 & 0x40000000L) != 0L) {
0648: jjmatchedKind = 30;
0649: jjmatchedPos = 5;
0650: } else if ((active0 & 0x2000000000L) != 0L) {
0651: jjmatchedKind = 37;
0652: jjmatchedPos = 5;
0653: }
0654: return jjMoveStringLiteralDfa6_0(active0, 0x1000000L);
0655: case 104:
0656: if ((active0 & 0x400000000L) != 0L) {
0657: jjmatchedKind = 34;
0658: jjmatchedPos = 5;
0659: }
0660: break;
0661: case 110:
0662: return jjMoveStringLiteralDfa6_0(active0, 0x10000000L);
0663: case 114:
0664: if ((active0 & 0x8000000000L) != 0L) {
0665: jjmatchedKind = 39;
0666: jjmatchedPos = 5;
0667: }
0668: return jjMoveStringLiteralDfa6_0(active0, 0x4000000000000L);
0669: case 116:
0670: if ((active0 & 0x2000000L) != 0L) {
0671: jjmatchedKind = 25;
0672: jjmatchedPos = 5;
0673: } else if ((active0 & 0x100000000000L) != 0L) {
0674: jjmatchedKind = 44;
0675: jjmatchedPos = 5;
0676: } else if ((active0 & 0x1000000000000L) != 0L) {
0677: jjmatchedKind = 48;
0678: jjmatchedPos = 5;
0679: }
0680: break;
0681: default:
0682: break;
0683: }
0684: return jjMoveNfa_0(0, 5);
0685: }
0686:
0687: private final int jjMoveStringLiteralDfa6_0(long old0, long active0) {
0688: if (((active0 &= old0)) == 0L)
0689: return jjMoveNfa_0(0, 5);
0690: try {
0691: curChar = input_stream.readChar();
0692: } catch (java.io.IOException e) {
0693: return jjMoveNfa_0(0, 5);
0694: }
0695: switch (curChar) {
0696: case 66:
0697: return jjMoveStringLiteralDfa7_0(active0, 0x800000000000L);
0698: case 67:
0699: return jjMoveStringLiteralDfa7_0(active0, 0x10000000L);
0700: case 73:
0701: return jjMoveStringLiteralDfa7_0(active0, 0x4000000000000L);
0702: case 78:
0703: if ((active0 & 0x1000000L) != 0L) {
0704: jjmatchedKind = 24;
0705: jjmatchedPos = 6;
0706: }
0707: break;
0708: case 98:
0709: return jjMoveStringLiteralDfa7_0(active0, 0x800000000000L);
0710: case 99:
0711: return jjMoveStringLiteralDfa7_0(active0, 0x10000000L);
0712: case 105:
0713: return jjMoveStringLiteralDfa7_0(active0, 0x4000000000000L);
0714: case 110:
0715: if ((active0 & 0x1000000L) != 0L) {
0716: jjmatchedKind = 24;
0717: jjmatchedPos = 6;
0718: }
0719: break;
0720: default:
0721: break;
0722: }
0723: return jjMoveNfa_0(0, 6);
0724: }
0725:
0726: private final int jjMoveStringLiteralDfa7_0(long old0, long active0) {
0727: if (((active0 &= old0)) == 0L)
0728: return jjMoveNfa_0(0, 6);
0729: try {
0730: curChar = input_stream.readChar();
0731: } catch (java.io.IOException e) {
0732: return jjMoveNfa_0(0, 6);
0733: }
0734: switch (curChar) {
0735: case 78:
0736: return jjMoveStringLiteralDfa8_0(active0, 0x4000000000000L);
0737: case 84:
0738: if ((active0 & 0x10000000L) != 0L) {
0739: jjmatchedKind = 28;
0740: jjmatchedPos = 7;
0741: }
0742: break;
0743: case 89:
0744: if ((active0 & 0x800000000000L) != 0L) {
0745: jjmatchedKind = 47;
0746: jjmatchedPos = 7;
0747: }
0748: break;
0749: case 110:
0750: return jjMoveStringLiteralDfa8_0(active0, 0x4000000000000L);
0751: case 116:
0752: if ((active0 & 0x10000000L) != 0L) {
0753: jjmatchedKind = 28;
0754: jjmatchedPos = 7;
0755: }
0756: break;
0757: case 121:
0758: if ((active0 & 0x800000000000L) != 0L) {
0759: jjmatchedKind = 47;
0760: jjmatchedPos = 7;
0761: }
0762: break;
0763: default:
0764: break;
0765: }
0766: return jjMoveNfa_0(0, 7);
0767: }
0768:
0769: private final int jjMoveStringLiteralDfa8_0(long old0, long active0) {
0770: if (((active0 &= old0)) == 0L)
0771: return jjMoveNfa_0(0, 7);
0772: try {
0773: curChar = input_stream.readChar();
0774: } catch (java.io.IOException e) {
0775: return jjMoveNfa_0(0, 7);
0776: }
0777: switch (curChar) {
0778: case 71:
0779: if ((active0 & 0x4000000000000L) != 0L) {
0780: jjmatchedKind = 50;
0781: jjmatchedPos = 8;
0782: }
0783: break;
0784: case 103:
0785: if ((active0 & 0x4000000000000L) != 0L) {
0786: jjmatchedKind = 50;
0787: jjmatchedPos = 8;
0788: }
0789: break;
0790: default:
0791: break;
0792: }
0793: return jjMoveNfa_0(0, 8);
0794: }
0795:
0796: private final void jjCheckNAdd(int state) {
0797: if (jjrounds[state] != jjround) {
0798: jjstateSet[jjnewStateCnt++] = state;
0799: jjrounds[state] = jjround;
0800: }
0801: }
0802:
0803: private final void jjAddStates(int start, int end) {
0804: do {
0805: jjstateSet[jjnewStateCnt++] = jjnextStates[start];
0806: } while (start++ != end);
0807: }
0808:
0809: private final void jjCheckNAddTwoStates(int state1, int state2) {
0810: jjCheckNAdd(state1);
0811: jjCheckNAdd(state2);
0812: }
0813:
0814: private final void jjCheckNAddStates(int start, int end) {
0815: do {
0816: jjCheckNAdd(jjnextStates[start]);
0817: } while (start++ != end);
0818: }
0819:
0820: private final void jjCheckNAddStates(int start) {
0821: jjCheckNAdd(jjnextStates[start]);
0822: jjCheckNAdd(jjnextStates[start + 1]);
0823: }
0824:
0825: static final long[] jjbitVec0 = { 0x0L, 0x0L, 0xffffffffffffffffL,
0826: 0xffffffffffffffffL };
0827: static final long[] jjbitVec1 = { 0x1ff00000fffffffeL,
0828: 0xffffffffffffc000L, 0xffffffffL, 0x600000000000000L };
0829: static final long[] jjbitVec3 = { 0x0L, 0x0L, 0x0L,
0830: 0xff7fffffff7fffffL };
0831: static final long[] jjbitVec4 = { 0x0L, 0xffffffffffffffffL,
0832: 0xffffffffffffffffL, 0xffffffffffffffffL };
0833: static final long[] jjbitVec5 = { 0xffffffffffffffffL,
0834: 0xffffffffffffffffL, 0xffffL, 0x0L };
0835: static final long[] jjbitVec6 = { 0xffffffffffffffffL,
0836: 0xffffffffffffffffL, 0x0L, 0x0L };
0837: static final long[] jjbitVec7 = { 0x3fffffffffffL, 0x0L, 0x0L, 0x0L };
0838:
0839: private final int jjMoveNfa_0(int startState, int curPos) {
0840: int strKind = jjmatchedKind;
0841: int strPos = jjmatchedPos;
0842: int seenUpto;
0843: input_stream.backup(seenUpto = curPos + 1);
0844: try {
0845: curChar = input_stream.readChar();
0846: } catch (java.io.IOException e) {
0847: throw new Error("Internal Error");
0848: }
0849: curPos = 0;
0850: int[] nextStates;
0851: int startsAt = 0;
0852: jjnewStateCnt = 39;
0853: int i = 1;
0854: jjstateSet[0] = startState;
0855: int j, kind = 0x7fffffff;
0856: for (;;) {
0857: if (++jjround == 0x7fffffff)
0858: ReInitRounds();
0859: if (curChar < 64) {
0860: long l = 1L << curChar;
0861: MatchLoop: do {
0862: switch (jjstateSet[--i]) {
0863: case 0:
0864: if ((0x3ff000000000000L & l) != 0L)
0865: jjCheckNAddStates(0, 6);
0866: else if (curChar == 36) {
0867: if (kind > 63)
0868: kind = 63;
0869: jjCheckNAdd(19);
0870: } else if (curChar == 46)
0871: jjCheckNAdd(13);
0872: else if (curChar == 39)
0873: jjCheckNAddStates(7, 9);
0874: else if (curChar == 63)
0875: jjstateSet[jjnewStateCnt++] = 7;
0876: if ((0x3fe000000000000L & l) != 0L) {
0877: if (kind > 57)
0878: kind = 57;
0879: jjCheckNAddTwoStates(10, 11);
0880: } else if (curChar == 48) {
0881: if (kind > 57)
0882: kind = 57;
0883: jjCheckNAddStates(10, 12);
0884: }
0885: break;
0886: case 1:
0887: if ((0xffffff7fffffffffL & l) != 0L)
0888: jjCheckNAddStates(7, 9);
0889: break;
0890: case 2:
0891: if (curChar == 39)
0892: jjCheckNAddStates(13, 15);
0893: break;
0894: case 3:
0895: if (curChar == 39)
0896: jjstateSet[jjnewStateCnt++] = 2;
0897: break;
0898: case 4:
0899: if ((0xffffff7fffffffffL & l) != 0L)
0900: jjCheckNAddStates(13, 15);
0901: break;
0902: case 5:
0903: if (curChar == 39 && kind > 53)
0904: kind = 53;
0905: break;
0906: case 6:
0907: if (curChar == 63)
0908: jjstateSet[jjnewStateCnt++] = 7;
0909: break;
0910: case 7:
0911: if ((0x3fe000000000000L & l) == 0L)
0912: break;
0913: if (kind > 54)
0914: kind = 54;
0915: jjCheckNAdd(8);
0916: break;
0917: case 8:
0918: if ((0x3ff000000000000L & l) == 0L)
0919: break;
0920: if (kind > 54)
0921: kind = 54;
0922: jjCheckNAdd(8);
0923: break;
0924: case 9:
0925: if ((0x3fe000000000000L & l) == 0L)
0926: break;
0927: if (kind > 57)
0928: kind = 57;
0929: jjCheckNAddTwoStates(10, 11);
0930: break;
0931: case 10:
0932: if ((0x3ff000000000000L & l) == 0L)
0933: break;
0934: if (kind > 57)
0935: kind = 57;
0936: jjCheckNAddTwoStates(10, 11);
0937: break;
0938: case 12:
0939: if (curChar == 46)
0940: jjCheckNAdd(13);
0941: break;
0942: case 13:
0943: if ((0x3ff000000000000L & l) == 0L)
0944: break;
0945: if (kind > 61)
0946: kind = 61;
0947: jjCheckNAddStates(16, 18);
0948: break;
0949: case 15:
0950: if ((0x280000000000L & l) != 0L)
0951: jjCheckNAdd(16);
0952: break;
0953: case 16:
0954: if ((0x3ff000000000000L & l) == 0L)
0955: break;
0956: if (kind > 61)
0957: kind = 61;
0958: jjCheckNAddTwoStates(16, 17);
0959: break;
0960: case 18:
0961: if (curChar != 36)
0962: break;
0963: if (kind > 63)
0964: kind = 63;
0965: jjCheckNAdd(19);
0966: break;
0967: case 19:
0968: if ((0x3ff001000000000L & l) == 0L)
0969: break;
0970: if (kind > 63)
0971: kind = 63;
0972: jjCheckNAdd(19);
0973: break;
0974: case 20:
0975: if ((0x3ff000000000000L & l) != 0L)
0976: jjCheckNAddStates(0, 6);
0977: break;
0978: case 21:
0979: if ((0x3ff000000000000L & l) != 0L)
0980: jjCheckNAddTwoStates(21, 22);
0981: break;
0982: case 22:
0983: if (curChar != 46)
0984: break;
0985: if (kind > 61)
0986: kind = 61;
0987: jjCheckNAddStates(19, 21);
0988: break;
0989: case 23:
0990: if ((0x3ff000000000000L & l) == 0L)
0991: break;
0992: if (kind > 61)
0993: kind = 61;
0994: jjCheckNAddStates(19, 21);
0995: break;
0996: case 25:
0997: if ((0x280000000000L & l) != 0L)
0998: jjCheckNAdd(26);
0999: break;
1000: case 26:
1001: if ((0x3ff000000000000L & l) == 0L)
1002: break;
1003: if (kind > 61)
1004: kind = 61;
1005: jjCheckNAddTwoStates(26, 17);
1006: break;
1007: case 27:
1008: if ((0x3ff000000000000L & l) != 0L)
1009: jjCheckNAddTwoStates(27, 28);
1010: break;
1011: case 29:
1012: if ((0x280000000000L & l) != 0L)
1013: jjCheckNAdd(30);
1014: break;
1015: case 30:
1016: if ((0x3ff000000000000L & l) == 0L)
1017: break;
1018: if (kind > 61)
1019: kind = 61;
1020: jjCheckNAddTwoStates(30, 17);
1021: break;
1022: case 31:
1023: if ((0x3ff000000000000L & l) != 0L)
1024: jjCheckNAddStates(22, 24);
1025: break;
1026: case 33:
1027: if ((0x280000000000L & l) != 0L)
1028: jjCheckNAdd(34);
1029: break;
1030: case 34:
1031: if ((0x3ff000000000000L & l) != 0L)
1032: jjCheckNAddTwoStates(34, 17);
1033: break;
1034: case 35:
1035: if (curChar != 48)
1036: break;
1037: if (kind > 57)
1038: kind = 57;
1039: jjCheckNAddStates(10, 12);
1040: break;
1041: case 37:
1042: if ((0x3ff000000000000L & l) == 0L)
1043: break;
1044: if (kind > 57)
1045: kind = 57;
1046: jjCheckNAddTwoStates(37, 11);
1047: break;
1048: case 38:
1049: if ((0xff000000000000L & l) == 0L)
1050: break;
1051: if (kind > 57)
1052: kind = 57;
1053: jjCheckNAddTwoStates(38, 11);
1054: break;
1055: default:
1056: break;
1057: }
1058: } while (i != startsAt);
1059: } else if (curChar < 128) {
1060: long l = 1L << (curChar & 077);
1061: MatchLoop: do {
1062: switch (jjstateSet[--i]) {
1063: case 0:
1064: case 19:
1065: if ((0x7fffffe87fffffeL & l) == 0L)
1066: break;
1067: if (kind > 63)
1068: kind = 63;
1069: jjCheckNAdd(19);
1070: break;
1071: case 1:
1072: jjCheckNAddStates(7, 9);
1073: break;
1074: case 4:
1075: jjCheckNAddStates(13, 15);
1076: break;
1077: case 11:
1078: if ((0x100000001000L & l) != 0L && kind > 57)
1079: kind = 57;
1080: break;
1081: case 14:
1082: if ((0x2000000020L & l) != 0L)
1083: jjAddStates(25, 26);
1084: break;
1085: case 17:
1086: if ((0x5000000050L & l) != 0L && kind > 61)
1087: kind = 61;
1088: break;
1089: case 24:
1090: if ((0x2000000020L & l) != 0L)
1091: jjAddStates(27, 28);
1092: break;
1093: case 28:
1094: if ((0x2000000020L & l) != 0L)
1095: jjAddStates(29, 30);
1096: break;
1097: case 32:
1098: if ((0x2000000020L & l) != 0L)
1099: jjAddStates(31, 32);
1100: break;
1101: case 36:
1102: if ((0x100000001000000L & l) != 0L)
1103: jjCheckNAdd(37);
1104: break;
1105: case 37:
1106: if ((0x7e0000007eL & l) == 0L)
1107: break;
1108: if (kind > 57)
1109: kind = 57;
1110: jjCheckNAddTwoStates(37, 11);
1111: break;
1112: default:
1113: break;
1114: }
1115: } while (i != startsAt);
1116: } else {
1117: int hiByte = (int) (curChar >> 8);
1118: int i1 = hiByte >> 6;
1119: long l1 = 1L << (hiByte & 077);
1120: int i2 = (curChar & 0xff) >> 6;
1121: long l2 = 1L << (curChar & 077);
1122: MatchLoop: do {
1123: switch (jjstateSet[--i]) {
1124: case 0:
1125: case 19:
1126: if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
1127: break;
1128: if (kind > 63)
1129: kind = 63;
1130: jjCheckNAdd(19);
1131: break;
1132: case 1:
1133: if (jjCanMove_0(hiByte, i1, i2, l1, l2))
1134: jjCheckNAddStates(7, 9);
1135: break;
1136: case 4:
1137: if (jjCanMove_0(hiByte, i1, i2, l1, l2))
1138: jjCheckNAddStates(13, 15);
1139: break;
1140: default:
1141: break;
1142: }
1143: } while (i != startsAt);
1144: }
1145: if (kind != 0x7fffffff) {
1146: jjmatchedKind = kind;
1147: jjmatchedPos = curPos;
1148: kind = 0x7fffffff;
1149: }
1150: ++curPos;
1151: if ((i = jjnewStateCnt) == (startsAt = 39 - (jjnewStateCnt = startsAt)))
1152: break;
1153: try {
1154: curChar = input_stream.readChar();
1155: } catch (java.io.IOException e) {
1156: break;
1157: }
1158: }
1159: if (jjmatchedPos > strPos)
1160: return curPos;
1161:
1162: int toRet = Math.max(curPos, seenUpto);
1163:
1164: if (curPos < toRet)
1165: for (i = toRet - Math.min(curPos, seenUpto); i-- > 0;)
1166: try {
1167: curChar = input_stream.readChar();
1168: } catch (java.io.IOException e) {
1169: throw new Error(
1170: "Internal Error : Please send a bug report.");
1171: }
1172:
1173: if (jjmatchedPos < strPos) {
1174: jjmatchedKind = strKind;
1175: jjmatchedPos = strPos;
1176: } else if (jjmatchedPos == strPos && jjmatchedKind > strKind)
1177: jjmatchedKind = strKind;
1178:
1179: return toRet;
1180: }
1181:
1182: static final int[] jjnextStates = { 21, 22, 27, 28, 31, 32, 17, 1,
1183: 3, 5, 36, 38, 11, 3, 4, 5, 13, 14, 17, 23, 24, 17, 31, 32,
1184: 17, 15, 16, 25, 26, 29, 30, 33, 34, };
1185:
1186: private static final boolean jjCanMove_0(int hiByte, int i1,
1187: int i2, long l1, long l2) {
1188: switch (hiByte) {
1189: case 0:
1190: return ((jjbitVec0[i2] & l2) != 0L);
1191: default:
1192: return false;
1193: }
1194: }
1195:
1196: private static final boolean jjCanMove_1(int hiByte, int i1,
1197: int i2, long l1, long l2) {
1198: switch (hiByte) {
1199: case 0:
1200: return ((jjbitVec3[i2] & l2) != 0L);
1201: case 48:
1202: return ((jjbitVec4[i2] & l2) != 0L);
1203: case 49:
1204: return ((jjbitVec5[i2] & l2) != 0L);
1205: case 51:
1206: return ((jjbitVec6[i2] & l2) != 0L);
1207: case 61:
1208: return ((jjbitVec7[i2] & l2) != 0L);
1209: default:
1210: if ((jjbitVec1[i1] & l1) != 0L)
1211: return true;
1212: return false;
1213: }
1214: }
1215:
1216: public static final String[] jjstrLiteralImages = { "", null, null,
1217: null, null, "\55", "\52", "\76\75", "\53", "\75", "\74\75",
1218: "\57", "\56", "\76", "\54", "\51", "\74\76", "\50", "\74",
1219: null, null, null, null, null, null, null, null, null, null,
1220: null, null, null, null, null, null, null, null, null, null,
1221: null, null, null, null, null, null, null, null, null, null,
1222: null, null, null, null, null, null, null, null, null, null,
1223: null, null, null, null, null, null, null, };
1224: public static final String[] lexStateNames = { "DEFAULT", };
1225: static final long[] jjtoToken = { 0xa3ffffffffffffe1L, 0x0L, };
1226: static final long[] jjtoSkip = { 0x1eL, 0x0L, };
1227: protected SimpleCharStream input_stream;
1228: private final int[] jjrounds = new int[39];
1229: private final int[] jjstateSet = new int[78];
1230: protected char curChar;
1231:
1232: public EJBQLTokenManager(SimpleCharStream stream) {
1233: if (SimpleCharStream.staticFlag)
1234: throw new Error(
1235: "ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
1236: input_stream = stream;
1237: }
1238:
1239: public EJBQLTokenManager(SimpleCharStream stream, int lexState) {
1240: this (stream);
1241: SwitchTo(lexState);
1242: }
1243:
1244: public void ReInit(SimpleCharStream stream) {
1245: jjmatchedPos = jjnewStateCnt = 0;
1246: curLexState = defaultLexState;
1247: input_stream = stream;
1248: ReInitRounds();
1249: }
1250:
1251: private final void ReInitRounds() {
1252: int i;
1253: jjround = 0x80000001;
1254: for (i = 39; i-- > 0;)
1255: jjrounds[i] = 0x80000000;
1256: }
1257:
1258: public void ReInit(SimpleCharStream stream, int lexState) {
1259: ReInit(stream);
1260: SwitchTo(lexState);
1261: }
1262:
1263: public void SwitchTo(int lexState) {
1264: if (lexState >= 1 || lexState < 0)
1265: throw new TokenMgrError(
1266: "Error: Ignoring invalid lexical state : "
1267: + lexState + ". State unchanged.",
1268: TokenMgrError.INVALID_LEXICAL_STATE);
1269: else
1270: curLexState = lexState;
1271: }
1272:
1273: protected Token jjFillToken() {
1274: Token t = Token.newToken(jjmatchedKind);
1275: t.kind = jjmatchedKind;
1276: String im = jjstrLiteralImages[jjmatchedKind];
1277: t.image = (im == null) ? input_stream.GetImage() : im;
1278: t.beginLine = input_stream.getBeginLine();
1279: t.beginColumn = input_stream.getBeginColumn();
1280: t.endLine = input_stream.getEndLine();
1281: t.endColumn = input_stream.getEndColumn();
1282: return t;
1283: }
1284:
1285: int curLexState = 0;
1286: int defaultLexState = 0;
1287: int jjnewStateCnt;
1288: int jjround;
1289: int jjmatchedPos;
1290: int jjmatchedKind;
1291:
1292: public Token getNextToken() {
1293: int kind;
1294: Token specialToken = null;
1295: Token matchedToken;
1296: int curPos = 0;
1297:
1298: EOFLoop: for (;;) {
1299: try {
1300: curChar = input_stream.BeginToken();
1301: } catch (java.io.IOException e) {
1302: jjmatchedKind = 0;
1303: matchedToken = jjFillToken();
1304: return matchedToken;
1305: }
1306:
1307: jjmatchedKind = 0x7fffffff;
1308: jjmatchedPos = 0;
1309: curPos = jjMoveStringLiteralDfa0_0();
1310: if (jjmatchedKind != 0x7fffffff) {
1311: if (jjmatchedPos + 1 < curPos)
1312: input_stream.backup(curPos - jjmatchedPos - 1);
1313: if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
1314: matchedToken = jjFillToken();
1315: return matchedToken;
1316: } else {
1317: continue EOFLoop;
1318: }
1319: }
1320: int error_line = input_stream.getEndLine();
1321: int error_column = input_stream.getEndColumn();
1322: String error_after = null;
1323: boolean EOFSeen = false;
1324: try {
1325: input_stream.readChar();
1326: input_stream.backup(1);
1327: } catch (java.io.IOException e1) {
1328: EOFSeen = true;
1329: error_after = curPos <= 1 ? "" : input_stream
1330: .GetImage();
1331: if (curChar == '\n' || curChar == '\r') {
1332: error_line++;
1333: error_column = 0;
1334: } else
1335: error_column++;
1336: }
1337: if (!EOFSeen) {
1338: input_stream.backup(1);
1339: error_after = curPos <= 1 ? "" : input_stream
1340: .GetImage();
1341: }
1342: throw new TokenMgrError(EOFSeen, curLexState, error_line,
1343: error_column, error_after, curChar,
1344: TokenMgrError.LEXICAL_ERROR);
1345: }
1346: }
1347:
1348: }
|