org.apache.jackrabbit.spi.commons.query.sql.JCRSQLParserTokenManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-sdk-api Show documentation
Show all versions of aem-sdk-api Show documentation
The Adobe Experience Manager SDK
/* Generated By:JJTree&JavaCC: Do not edit this line. JCRSQLParserTokenManager.java */
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.spi.commons.query.sql;
import org.apache.jackrabbit.spi.commons.conversion.NameException;
import org.apache.jackrabbit.spi.commons.conversion.NameResolver;
import org.apache.jackrabbit.spi.commons.query.QueryConstants;
import org.apache.jackrabbit.spi.commons.name.NameFactoryImpl;
import org.apache.jackrabbit.spi.Name;
import javax.jcr.NamespaceException;
public class JCRSQLParserTokenManager implements JCRSQLParserConstants
{
public java.io.PrintStream debugStream = System.out;
public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopAtPos(int pos, int kind)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
return pos + 1;
}
private final int jjMoveStringLiteralDfa0_0()
{
switch(curChar)
{
case 9:
jjmatchedKind = 4;
return jjMoveNfa_0(0, 0);
case 10:
jjmatchedKind = 3;
return jjMoveNfa_0(0, 0);
case 13:
jjmatchedKind = 2;
return jjMoveNfa_0(0, 0);
case 32:
jjmatchedKind = 1;
return jjMoveNfa_0(0, 0);
case 34:
jjmatchedKind = 38;
return jjMoveNfa_0(0, 0);
case 37:
jjmatchedKind = 39;
return jjMoveNfa_0(0, 0);
case 38:
jjmatchedKind = 40;
return jjMoveNfa_0(0, 0);
case 39:
jjmatchedKind = 41;
return jjMoveNfa_0(0, 0);
case 40:
jjmatchedKind = 42;
return jjMoveNfa_0(0, 0);
case 41:
jjmatchedKind = 43;
return jjMoveNfa_0(0, 0);
case 42:
jjmatchedKind = 44;
return jjMoveNfa_0(0, 0);
case 43:
jjmatchedKind = 45;
return jjMoveNfa_0(0, 0);
case 44:
jjmatchedKind = 46;
return jjMoveNfa_0(0, 0);
case 45:
jjmatchedKind = 47;
return jjMoveNfa_0(0, 0);
case 46:
jjmatchedKind = 48;
return jjMoveStringLiteralDfa1_0(0x0L, 0x200L);
case 47:
jjmatchedKind = 49;
return jjMoveNfa_0(0, 0);
case 58:
jjmatchedKind = 50;
return jjMoveNfa_0(0, 0);
case 59:
jjmatchedKind = 51;
return jjMoveNfa_0(0, 0);
case 60:
jjmatchedKind = 52;
return jjMoveStringLiteralDfa1_0(0x0L, 0xa0L);
case 61:
jjmatchedKind = 53;
return jjMoveNfa_0(0, 0);
case 62:
jjmatchedKind = 54;
return jjMoveStringLiteralDfa1_0(0x0L, 0x40L);
case 63:
jjmatchedKind = 55;
return jjMoveNfa_0(0, 0);
case 65:
return jjMoveStringLiteralDfa1_0(0x6000L, 0x0L);
case 66:
return jjMoveStringLiteralDfa1_0(0x4000200L, 0x0L);
case 67:
return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);
case 68:
return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
case 69:
return jjMoveStringLiteralDfa1_0(0x9000000L, 0x0L);
case 70:
return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L);
case 73:
return jjMoveStringLiteralDfa1_0(0x1400L, 0x0L);
case 76:
return jjMoveStringLiteralDfa1_0(0x120000L, 0x0L);
case 78:
return jjMoveStringLiteralDfa1_0(0x48000L, 0x0L);
case 79:
return jjMoveStringLiteralDfa1_0(0x200800L, 0x0L);
case 83:
return jjMoveStringLiteralDfa1_0(0x52000000L, 0x0L);
case 85:
return jjMoveStringLiteralDfa1_0(0x400000L, 0x0L);
case 87:
return jjMoveStringLiteralDfa1_0(0x800000L, 0x0L);
case 91:
jjmatchedKind = 58;
return jjMoveNfa_0(0, 0);
case 93:
jjmatchedKind = 59;
return jjMoveNfa_0(0, 0);
case 95:
jjmatchedKind = 56;
return jjMoveNfa_0(0, 0);
case 97:
return jjMoveStringLiteralDfa1_0(0x6000L, 0x0L);
case 98:
return jjMoveStringLiteralDfa1_0(0x4000200L, 0x0L);
case 99:
return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);
case 100:
return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
case 101:
return jjMoveStringLiteralDfa1_0(0x9000000L, 0x0L);
case 102:
return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L);
case 105:
return jjMoveStringLiteralDfa1_0(0x1400L, 0x0L);
case 108:
return jjMoveStringLiteralDfa1_0(0x120000L, 0x0L);
case 110:
return jjMoveStringLiteralDfa1_0(0x48000L, 0x0L);
case 111:
return jjMoveStringLiteralDfa1_0(0x200800L, 0x0L);
case 115:
return jjMoveStringLiteralDfa1_0(0x52000000L, 0x0L);
case 117:
return jjMoveStringLiteralDfa1_0(0x400000L, 0x0L);
case 119:
return jjMoveStringLiteralDfa1_0(0x800000L, 0x0L);
case 124:
jjmatchedKind = 57;
return jjMoveStringLiteralDfa1_0(0x0L, 0x100L);
default :
return jjMoveNfa_0(0, 0);
}
}
private final int jjMoveStringLiteralDfa1_0(long active0, long active1)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 0);
}
switch(curChar)
{
case 46:
if ((active1 & 0x200L) != 0L)
{
jjmatchedKind = 73;
jjmatchedPos = 1;
}
break;
case 61:
if ((active1 & 0x40L) != 0L)
{
jjmatchedKind = 70;
jjmatchedPos = 1;
}
else if ((active1 & 0x80L) != 0L)
{
jjmatchedKind = 71;
jjmatchedPos = 1;
}
break;
case 62:
if ((active1 & 0x20L) != 0L)
{
jjmatchedKind = 69;
jjmatchedPos = 1;
}
break;
case 69:
return jjMoveStringLiteralDfa2_0(active0, 0x6010000L, active1, 0L);
case 72:
return jjMoveStringLiteralDfa2_0(active0, 0x800000L, active1, 0L);
case 73:
return jjMoveStringLiteralDfa2_0(active0, 0x10020000L, active1, 0L);
case 78:
if ((active0 & 0x400L) != 0L)
{
jjmatchedKind = 10;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x2000L, active1, 0L);
case 79:
return jjMoveStringLiteralDfa2_0(active0, 0x20108000L, active1, 0L);
case 80:
return jjMoveStringLiteralDfa2_0(active0, 0x40400000L, active1, 0L);
case 82:
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 11;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x280000L, active1, 0L);
case 83:
if ((active0 & 0x1000L) != 0L)
{
jjmatchedKind = 12;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x1004000L, active1, 0L);
case 85:
return jjMoveStringLiteralDfa2_0(active0, 0x40000L, active1, 0L);
case 88:
return jjMoveStringLiteralDfa2_0(active0, 0x8000000L, active1, 0L);
case 89:
if ((active0 & 0x200L) != 0L)
{
jjmatchedKind = 9;
jjmatchedPos = 1;
}
break;
case 101:
return jjMoveStringLiteralDfa2_0(active0, 0x6010000L, active1, 0L);
case 104:
return jjMoveStringLiteralDfa2_0(active0, 0x800000L, active1, 0L);
case 105:
return jjMoveStringLiteralDfa2_0(active0, 0x10020000L, active1, 0L);
case 110:
if ((active0 & 0x400L) != 0L)
{
jjmatchedKind = 10;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x2000L, active1, 0L);
case 111:
return jjMoveStringLiteralDfa2_0(active0, 0x20108000L, active1, 0L);
case 112:
return jjMoveStringLiteralDfa2_0(active0, 0x40400000L, active1, 0L);
case 114:
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 11;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x280000L, active1, 0L);
case 115:
if ((active0 & 0x1000L) != 0L)
{
jjmatchedKind = 12;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x1004000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa2_0(active0, 0x40000L, active1, 0L);
case 120:
return jjMoveStringLiteralDfa2_0(active0, 0x8000000L, active1, 0L);
case 121:
if ((active0 & 0x200L) != 0L)
{
jjmatchedKind = 9;
jjmatchedPos = 1;
}
break;
case 124:
if ((active1 & 0x100L) != 0L)
{
jjmatchedKind = 72;
jjmatchedPos = 1;
}
break;
default :
break;
}
return jjMoveNfa_0(0, 1);
}
private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
{
if (((active0 &= old0) | (active1 &= old1)) == 0L)
return jjMoveNfa_0(0, 1);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 1);
}
switch(curChar)
{
case 67:
if ((active0 & 0x4000L) != 0L)
{
jjmatchedKind = 14;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x9000000L);
case 68:
if ((active0 & 0x2000L) != 0L)
{
jjmatchedKind = 13;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x200000L);
case 69:
return jjMoveStringLiteralDfa3_0(active0, 0x40800000L);
case 75:
return jjMoveStringLiteralDfa3_0(active0, 0x20000L);
case 76:
return jjMoveStringLiteralDfa3_0(active0, 0x2040000L);
case 77:
return jjMoveStringLiteralDfa3_0(active0, 0x10000000L);
case 78:
return jjMoveStringLiteralDfa3_0(active0, 0x20000000L);
case 79:
return jjMoveStringLiteralDfa3_0(active0, 0x80000L);
case 80:
return jjMoveStringLiteralDfa3_0(active0, 0x400000L);
case 83:
return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
case 84:
if ((active0 & 0x8000L) != 0L)
{
jjmatchedKind = 15;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);
case 87:
return jjMoveStringLiteralDfa3_0(active0, 0x100000L);
case 99:
if ((active0 & 0x4000L) != 0L)
{
jjmatchedKind = 14;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x9000000L);
case 100:
if ((active0 & 0x2000L) != 0L)
{
jjmatchedKind = 13;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x200000L);
case 101:
return jjMoveStringLiteralDfa3_0(active0, 0x40800000L);
case 107:
return jjMoveStringLiteralDfa3_0(active0, 0x20000L);
case 108:
return jjMoveStringLiteralDfa3_0(active0, 0x2040000L);
case 109:
return jjMoveStringLiteralDfa3_0(active0, 0x10000000L);
case 110:
return jjMoveStringLiteralDfa3_0(active0, 0x20000000L);
case 111:
return jjMoveStringLiteralDfa3_0(active0, 0x80000L);
case 112:
return jjMoveStringLiteralDfa3_0(active0, 0x400000L);
case 115:
return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
case 116:
if ((active0 & 0x8000L) != 0L)
{
jjmatchedKind = 15;
jjmatchedPos = 2;
}
return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);
case 119:
return jjMoveStringLiteralDfa3_0(active0, 0x100000L);
default :
break;
}
return jjMoveNfa_0(0, 2);
}
private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 2);
}
switch(curChar)
{
case 65:
return jjMoveStringLiteralDfa4_0(active0, 0x1000000L);
case 67:
if ((active0 & 0x10000L) != 0L)
{
jjmatchedKind = 16;
jjmatchedPos = 3;
}
break;
case 69:
if ((active0 & 0x20000L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 3;
}
return jjMoveStringLiteralDfa4_0(active0, 0xa700000L);
case 73:
return jjMoveStringLiteralDfa4_0(active0, 0x10000000L);
case 76:
if ((active0 & 0x40000L) != 0L)
{
jjmatchedKind = 18;
jjmatchedPos = 3;
}
return jjMoveStringLiteralDfa4_0(active0, 0x40000000L);
case 77:
if ((active0 & 0x80000L) != 0L)
{
jjmatchedKind = 19;
jjmatchedPos = 3;
}
break;
case 82:
return jjMoveStringLiteralDfa4_0(active0, 0x800000L);
case 84:
return jjMoveStringLiteralDfa4_0(active0, 0x20000000L);
case 87:
return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);
case 97:
return jjMoveStringLiteralDfa4_0(active0, 0x1000000L);
case 99:
if ((active0 & 0x10000L) != 0L)
{
jjmatchedKind = 16;
jjmatchedPos = 3;
}
break;
case 101:
if ((active0 & 0x20000L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 3;
}
return jjMoveStringLiteralDfa4_0(active0, 0xa700000L);
case 105:
return jjMoveStringLiteralDfa4_0(active0, 0x10000000L);
case 108:
if ((active0 & 0x40000L) != 0L)
{
jjmatchedKind = 18;
jjmatchedPos = 3;
}
return jjMoveStringLiteralDfa4_0(active0, 0x40000000L);
case 109:
if ((active0 & 0x80000L) != 0L)
{
jjmatchedKind = 19;
jjmatchedPos = 3;
}
break;
case 114:
return jjMoveStringLiteralDfa4_0(active0, 0x800000L);
case 116:
return jjMoveStringLiteralDfa4_0(active0, 0x20000000L);
case 119:
return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);
default :
break;
}
return jjMoveNfa_0(0, 3);
}
private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 3);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 3);
}
switch(curChar)
{
case 65:
return jjMoveStringLiteralDfa5_0(active0, 0x20000000L);
case 67:
return jjMoveStringLiteralDfa5_0(active0, 0x2000000L);
case 69:
if ((active0 & 0x800000L) != 0L)
{
jjmatchedKind = 23;
jjmatchedPos = 4;
}
return jjMoveStringLiteralDfa5_0(active0, 0x4000000L);
case 76:
return jjMoveStringLiteralDfa5_0(active0, 0x50000000L);
case 80:
return jjMoveStringLiteralDfa5_0(active0, 0x1000000L);
case 82:
if ((active0 & 0x100000L) != 0L)
{
jjmatchedKind = 20;
jjmatchedPos = 4;
}
else if ((active0 & 0x200000L) != 0L)
{
jjmatchedKind = 21;
jjmatchedPos = 4;
}
else if ((active0 & 0x400000L) != 0L)
{
jjmatchedKind = 22;
jjmatchedPos = 4;
}
return jjMoveStringLiteralDfa5_0(active0, 0x8000000L);
case 97:
return jjMoveStringLiteralDfa5_0(active0, 0x20000000L);
case 99:
return jjMoveStringLiteralDfa5_0(active0, 0x2000000L);
case 101:
if ((active0 & 0x800000L) != 0L)
{
jjmatchedKind = 23;
jjmatchedPos = 4;
}
return jjMoveStringLiteralDfa5_0(active0, 0x4000000L);
case 108:
return jjMoveStringLiteralDfa5_0(active0, 0x50000000L);
case 112:
return jjMoveStringLiteralDfa5_0(active0, 0x1000000L);
case 114:
if ((active0 & 0x100000L) != 0L)
{
jjmatchedKind = 20;
jjmatchedPos = 4;
}
else if ((active0 & 0x200000L) != 0L)
{
jjmatchedKind = 21;
jjmatchedPos = 4;
}
else if ((active0 & 0x400000L) != 0L)
{
jjmatchedKind = 22;
jjmatchedPos = 4;
}
return jjMoveStringLiteralDfa5_0(active0, 0x8000000L);
default :
break;
}
return jjMoveNfa_0(0, 4);
}
private final int jjMoveStringLiteralDfa5_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 4);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 4);
}
switch(curChar)
{
case 65:
return jjMoveStringLiteralDfa6_0(active0, 0x10000000L);
case 67:
return jjMoveStringLiteralDfa6_0(active0, 0x40000000L);
case 69:
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 24;
jjmatchedPos = 5;
}
return jjMoveStringLiteralDfa6_0(active0, 0x4000000L);
case 73:
return jjMoveStringLiteralDfa6_0(active0, 0x20000000L);
case 80:
return jjMoveStringLiteralDfa6_0(active0, 0x8000000L);
case 84:
if ((active0 & 0x2000000L) != 0L)
{
jjmatchedKind = 25;
jjmatchedPos = 5;
}
break;
case 97:
return jjMoveStringLiteralDfa6_0(active0, 0x10000000L);
case 99:
return jjMoveStringLiteralDfa6_0(active0, 0x40000000L);
case 101:
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 24;
jjmatchedPos = 5;
}
return jjMoveStringLiteralDfa6_0(active0, 0x4000000L);
case 105:
return jjMoveStringLiteralDfa6_0(active0, 0x20000000L);
case 112:
return jjMoveStringLiteralDfa6_0(active0, 0x8000000L);
case 116:
if ((active0 & 0x2000000L) != 0L)
{
jjmatchedKind = 25;
jjmatchedPos = 5;
}
break;
default :
break;
}
return jjMoveNfa_0(0, 5);
}
private final int jjMoveStringLiteralDfa6_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 5);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 5);
}
switch(curChar)
{
case 72:
return jjMoveStringLiteralDfa7_0(active0, 0x40000000L);
case 78:
if ((active0 & 0x4000000L) != 0L)
{
jjmatchedKind = 26;
jjmatchedPos = 6;
}
return jjMoveStringLiteralDfa7_0(active0, 0x20000000L);
case 82:
if ((active0 & 0x10000000L) != 0L)
{
jjmatchedKind = 28;
jjmatchedPos = 6;
}
break;
case 84:
if ((active0 & 0x8000000L) != 0L)
{
jjmatchedKind = 27;
jjmatchedPos = 6;
}
break;
case 104:
return jjMoveStringLiteralDfa7_0(active0, 0x40000000L);
case 110:
if ((active0 & 0x4000000L) != 0L)
{
jjmatchedKind = 26;
jjmatchedPos = 6;
}
return jjMoveStringLiteralDfa7_0(active0, 0x20000000L);
case 114:
if ((active0 & 0x10000000L) != 0L)
{
jjmatchedKind = 28;
jjmatchedPos = 6;
}
break;
case 116:
if ((active0 & 0x8000000L) != 0L)
{
jjmatchedKind = 27;
jjmatchedPos = 6;
}
break;
default :
break;
}
return jjMoveNfa_0(0, 6);
}
private final int jjMoveStringLiteralDfa7_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 6);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 6);
}
switch(curChar)
{
case 69:
return jjMoveStringLiteralDfa8_0(active0, 0x40000000L);
case 83:
if ((active0 & 0x20000000L) != 0L)
{
jjmatchedKind = 29;
jjmatchedPos = 7;
}
break;
case 101:
return jjMoveStringLiteralDfa8_0(active0, 0x40000000L);
case 115:
if ((active0 & 0x20000000L) != 0L)
{
jjmatchedKind = 29;
jjmatchedPos = 7;
}
break;
default :
break;
}
return jjMoveNfa_0(0, 7);
}
private final int jjMoveStringLiteralDfa8_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 7);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 7);
}
switch(curChar)
{
case 67:
return jjMoveStringLiteralDfa9_0(active0, 0x40000000L);
case 99:
return jjMoveStringLiteralDfa9_0(active0, 0x40000000L);
default :
break;
}
return jjMoveNfa_0(0, 8);
}
private final int jjMoveStringLiteralDfa9_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjMoveNfa_0(0, 8);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return jjMoveNfa_0(0, 8);
}
switch(curChar)
{
case 75:
if ((active0 & 0x40000000L) != 0L)
{
jjmatchedKind = 30;
jjmatchedPos = 9;
}
break;
case 107:
if ((active0 & 0x40000000L) != 0L)
{
jjmatchedKind = 30;
jjmatchedPos = 9;
}
break;
default :
break;
}
return jjMoveNfa_0(0, 9);
}
private final void jjCheckNAdd(int state)
{
if (jjrounds[state] != jjround)
{
jjstateSet[jjnewStateCnt++] = state;
jjrounds[state] = jjround;
}
}
private final void jjAddStates(int start, int end)
{
do {
jjstateSet[jjnewStateCnt++] = jjnextStates[start];
} while (start++ != end);
}
private final void jjCheckNAddTwoStates(int state1, int state2)
{
jjCheckNAdd(state1);
jjCheckNAdd(state2);
}
private final void jjCheckNAddStates(int start, int end)
{
do {
jjCheckNAdd(jjnextStates[start]);
} while (start++ != end);
}
private final void jjCheckNAddStates(int start)
{
jjCheckNAdd(jjnextStates[start]);
jjCheckNAdd(jjnextStates[start + 1]);
}
static final long[] jjbitVec0 = {
0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec2 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec3 = {
0x0L, 0xffffffffffffc000L, 0xfffff0007fffffffL, 0x7fffffL
};
static final long[] jjbitVec4 = {
0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL
};
static final long[] jjbitVec5 = {
0x7ff3ffffffffffffL, 0x7ffffffffffffdfeL, 0xffffffffffffffffL, 0xfc31ffffffffe00fL
};
static final long[] jjbitVec6 = {
0xffffffL, 0xffffffffffff0000L, 0xf80001ffffffffffL, 0x3L
};
static final long[] jjbitVec7 = {
0x0L, 0x0L, 0xfffffffbffffd740L, 0xffffd547f7fffL
};
static final long[] jjbitVec8 = {
0xffffffffffffdffeL, 0xffffffffdffeffffL, 0xffffffffffff0003L, 0x33fcfffffff199fL
};
static final long[] jjbitVec9 = {
0xfffe000000000000L, 0xfffffffe027fffffL, 0x7fL, 0x707ffffff0000L
};
static final long[] jjbitVec10 = {
0x7fffffe00000000L, 0xfffe0000000007feL, 0x7cffffffffffffffL, 0x60002f7fffL
};
static final long[] jjbitVec11 = {
0x23ffffffffffffe0L, 0x3ff000000L, 0x3c5fdfffff99fe0L, 0x30003b0000000L
};
static final long[] jjbitVec12 = {
0x36dfdfffff987e0L, 0x1c00005e000000L, 0x23edfdfffffbafe0L, 0x100000000L
};
static final long[] jjbitVec13 = {
0x23cdfdfffff99fe0L, 0x3b0000000L, 0x3bfc718d63dc7e0L, 0x0L
};
static final long[] jjbitVec14 = {
0x3effdfffffddfe0L, 0x300000000L, 0x3effdfffffddfe0L, 0x340000000L
};
static final long[] jjbitVec15 = {
0x3fffdfffffddfe0L, 0x300000000L, 0x0L, 0x0L
};
static final long[] jjbitVec16 = {
0xd7ffffffffffeL, 0x3fL, 0x200d6caefef02596L, 0x1fL
};
static final long[] jjbitVec17 = {
0x0L, 0x3fffffffeffL, 0x0L, 0x0L
};
static final long[] jjbitVec18 = {
0x0L, 0x0L, 0xffffffff00000000L, 0x7fffffffff003fL
};
static final long[] jjbitVec19 = {
0x500000000007daedL, 0x2c62ab82315001L, 0xf580c90040000000L, 0x201080000000007L
};
static final long[] jjbitVec20 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffff0fffffffL, 0x3ffffffffffffffL
};
static final long[] jjbitVec21 = {
0xffffffff3f3fffffL, 0x3fffffffaaff3f3fL, 0x5fdfffffffffffffL, 0x1fdc1fff0fcf1fdcL
};
static final long[] jjbitVec22 = {
0x4c4000000000L, 0x0L, 0x7L, 0x0L
};
static final long[] jjbitVec23 = {
0x3fe00000080L, 0xfffffffffffffffeL, 0xfffffffe001fffffL, 0x7ffffffffffffffL
};
static final long[] jjbitVec24 = {
0x1fffffffffe0L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec25 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffffffL, 0x0L
};
static final long[] jjbitVec26 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffL, 0x0L
};
private final int jjMoveNfa_0(int startState, int curPos)
{
int strKind = jjmatchedKind;
int strPos = jjmatchedPos;
int seenUpto;
input_stream.backup(seenUpto = curPos + 1);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { throw new Error("Internal Error"); }
curPos = 0;
int[] nextStates;
int startsAt = 0;
jjnewStateCnt = 109;
int i = 1;
jjstateSet[0] = startState;
int j, kind = 0x7fffffff;
for (;;)
{
if (++jjround == 0x7fffffff)
ReInitRounds();
if (curChar < 64)
{
long l = 1L << curChar;
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 0:
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 74)
kind = 74;
jjCheckNAddStates(0, 4);
}
else if ((0x280000000000L & l) != 0L)
jjCheckNAddTwoStates(15, 18);
else if (curChar == 46)
jjCheckNAddTwoStates(26, 27);
else if (curChar == 39)
jjCheckNAddTwoStates(12, 13);
else if (curChar == 34)
jjCheckNAddTwoStates(7, 10);
if (curChar == 45)
jjCheckNAdd(1);
break;
case 1:
if (curChar == 45)
jjCheckNAddStates(5, 7);
break;
case 2:
jjCheckNAddTwoStates(2, 3);
break;
case 3:
if (curChar == 10 && kind > 5)
kind = 5;
break;
case 5:
if ((0x7ff000000000000L & l) == 0L)
break;
if (kind > 60)
kind = 60;
jjAddStates(8, 9);
break;
case 6:
if (curChar == 34)
jjCheckNAddTwoStates(7, 10);
break;
case 7:
if ((0xfffffffbffffffffL & l) != 0L)
jjCheckNAddTwoStates(7, 8);
break;
case 8:
if (curChar != 34)
break;
if (kind > 64)
kind = 64;
jjCheckNAdd(9);
break;
case 9:
if (curChar == 34)
jjCheckNAddTwoStates(7, 8);
break;
case 10:
if (curChar == 34)
jjCheckNAdd(9);
break;
case 11:
if (curChar == 39)
jjCheckNAddTwoStates(12, 13);
break;
case 12:
if ((0xffffff7fffffffffL & l) != 0L)
jjCheckNAddTwoStates(12, 13);
break;
case 13:
if (curChar != 39)
break;
if (kind > 98)
kind = 98;
jjstateSet[jjnewStateCnt++] = 11;
break;
case 14:
if ((0x280000000000L & l) != 0L)
jjCheckNAddTwoStates(15, 18);
break;
case 15:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 74)
kind = 74;
jjCheckNAddTwoStates(15, 16);
break;
case 16:
if (curChar != 46)
break;
if (kind > 74)
kind = 74;
jjCheckNAdd(17);
break;
case 17:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 74)
kind = 74;
jjCheckNAdd(17);
break;
case 18:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(10, 12);
break;
case 19:
if (curChar == 46)
jjCheckNAddTwoStates(20, 21);
break;
case 20:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(20, 21);
break;
case 22:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(23);
break;
case 23:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 76)
kind = 76;
jjCheckNAdd(23);
break;
case 24:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 74)
kind = 74;
jjCheckNAddStates(0, 4);
break;
case 25:
if (curChar == 46)
jjCheckNAddTwoStates(26, 27);
break;
case 26:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 74)
kind = 74;
jjCheckNAdd(26);
break;
case 27:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(27, 21);
break;
case 30:
if (curChar == 32)
jjAddStates(13, 14);
break;
case 31:
if (curChar == 39)
jjCheckNAdd(32);
break;
case 32:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(32, 33);
break;
case 33:
if (curChar == 45)
jjCheckNAdd(34);
break;
case 34:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(34, 35);
break;
case 35:
if (curChar == 45)
jjCheckNAdd(36);
break;
case 36:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(36, 37);
break;
case 37:
if (curChar == 39 && kind > 81)
kind = 81;
break;
case 41:
if (curChar == 32)
jjAddStates(15, 16);
break;
case 42:
if (curChar == 39)
jjCheckNAdd(43);
break;
case 43:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(43, 44);
break;
case 44:
if (curChar == 45)
jjCheckNAdd(45);
break;
case 45:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(45, 46);
break;
case 46:
if (curChar == 45)
jjCheckNAdd(47);
break;
case 47:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(47, 48);
break;
case 48:
if (curChar == 39 && kind > 82)
kind = 82;
break;
case 53:
if (curChar == 32)
jjAddStates(17, 18);
break;
case 54:
if (curChar == 39)
jjCheckNAdd(55);
break;
case 55:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(55, 56);
break;
case 56:
if (curChar == 45)
jjCheckNAdd(57);
break;
case 57:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(57, 58);
break;
case 58:
if (curChar == 45)
jjCheckNAdd(59);
break;
case 59:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(59, 60);
break;
case 60:
if (curChar == 32)
jjCheckNAdd(61);
break;
case 61:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(61, 62);
break;
case 62:
if (curChar == 58)
jjCheckNAdd(63);
break;
case 63:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(63, 64);
break;
case 64:
if (curChar == 58)
jjCheckNAdd(65);
break;
case 65:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(19, 23);
break;
case 66:
if (curChar == 46)
jjCheckNAddStates(24, 27);
break;
case 67:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(24, 27);
break;
case 69:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(70);
break;
case 70:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(70, 71);
break;
case 71:
if (curChar == 58)
jjCheckNAdd(72);
break;
case 72:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(72, 37);
break;
case 81:
if (curChar == 32)
jjAddStates(28, 29);
break;
case 82:
if (curChar == 39)
jjCheckNAdd(83);
break;
case 83:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(83, 84);
break;
case 84:
if (curChar == 45)
jjCheckNAdd(85);
break;
case 85:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(85, 86);
break;
case 86:
if (curChar == 45)
jjCheckNAdd(87);
break;
case 87:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(87, 88);
break;
case 88:
if (curChar == 32)
jjCheckNAdd(89);
break;
case 89:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(89, 90);
break;
case 90:
if (curChar == 58)
jjCheckNAdd(91);
break;
case 91:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(91, 92);
break;
case 92:
if (curChar == 58)
jjCheckNAdd(93);
break;
case 93:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(30, 34);
break;
case 94:
if (curChar == 46)
jjCheckNAddStates(35, 38);
break;
case 95:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(35, 38);
break;
case 97:
if (curChar == 39 && kind > 83)
kind = 83;
break;
case 98:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(99);
break;
case 99:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(99, 100);
break;
case 100:
if (curChar == 58)
jjCheckNAdd(101);
break;
case 101:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(101, 97);
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 0:
if ((0x7fffffe07fffffeL & l) != 0L)
{
if (kind > 60)
kind = 60;
jjCheckNAddTwoStates(5, 4);
}
if (curChar == 84)
jjAddStates(39, 40);
else if (curChar == 68)
jjAddStates(41, 42);
break;
case 2:
jjAddStates(43, 44);
break;
case 4:
if ((0x7fffffe07fffffeL & l) == 0L)
break;
if (kind > 60)
kind = 60;
jjCheckNAddTwoStates(5, 4);
break;
case 5:
if (curChar != 95)
break;
if (kind > 60)
kind = 60;
jjCheckNAddTwoStates(5, 4);
break;
case 7:
jjAddStates(45, 46);
break;
case 12:
jjAddStates(47, 48);
break;
case 21:
if ((0x2000000020L & l) != 0L)
jjAddStates(49, 50);
break;
case 28:
if (curChar == 68)
jjAddStates(41, 42);
break;
case 29:
if (curChar == 69)
jjstateSet[jjnewStateCnt++] = 30;
break;
case 38:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 29;
break;
case 39:
if (curChar == 65)
jjstateSet[jjnewStateCnt++] = 38;
break;
case 40:
if (curChar == 69)
jjstateSet[jjnewStateCnt++] = 41;
break;
case 49:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 40;
break;
case 50:
if (curChar == 65)
jjstateSet[jjnewStateCnt++] = 49;
break;
case 51:
if (curChar == 84)
jjAddStates(39, 40);
break;
case 52:
if (curChar == 80)
jjstateSet[jjnewStateCnt++] = 53;
break;
case 60:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 61;
break;
case 68:
if (curChar == 90)
jjstateSet[jjnewStateCnt++] = 37;
break;
case 73:
if (curChar == 77)
jjstateSet[jjnewStateCnt++] = 52;
break;
case 74:
if (curChar == 65)
jjstateSet[jjnewStateCnt++] = 73;
break;
case 75:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 74;
break;
case 76:
if (curChar == 83)
jjstateSet[jjnewStateCnt++] = 75;
break;
case 77:
if (curChar == 69)
jjstateSet[jjnewStateCnt++] = 76;
break;
case 78:
if (curChar == 77)
jjstateSet[jjnewStateCnt++] = 77;
break;
case 79:
if (curChar == 73)
jjstateSet[jjnewStateCnt++] = 78;
break;
case 80:
if (curChar == 80)
jjstateSet[jjnewStateCnt++] = 81;
break;
case 88:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 89;
break;
case 96:
if (curChar == 90)
jjstateSet[jjnewStateCnt++] = 97;
break;
case 102:
if (curChar == 77)
jjstateSet[jjnewStateCnt++] = 80;
break;
case 103:
if (curChar == 65)
jjstateSet[jjnewStateCnt++] = 102;
break;
case 104:
if (curChar == 84)
jjstateSet[jjnewStateCnt++] = 103;
break;
case 105:
if (curChar == 83)
jjstateSet[jjnewStateCnt++] = 104;
break;
case 106:
if (curChar == 69)
jjstateSet[jjnewStateCnt++] = 105;
break;
case 107:
if (curChar == 77)
jjstateSet[jjnewStateCnt++] = 106;
break;
case 108:
if (curChar == 73)
jjstateSet[jjnewStateCnt++] = 107;
break;
default : break;
}
} while(i != startsAt);
}
else
{
int hiByte = (int)(curChar >> 8);
int i1 = hiByte >> 6;
long l1 = 1L << (hiByte & 077);
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 0:
case 4:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 60)
kind = 60;
jjCheckNAddTwoStates(5, 4);
break;
case 2:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(43, 44);
break;
case 7:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(45, 46);
break;
case 12:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(47, 48);
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 109 - (jjnewStateCnt = startsAt)))
break;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { break; }
}
if (jjmatchedPos > strPos)
return curPos;
int toRet = Math.max(curPos, seenUpto);
if (curPos < toRet)
for (i = toRet - Math.min(curPos, seenUpto); i-- > 0; )
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { throw new Error("Internal Error : Please send a bug report."); }
if (jjmatchedPos < strPos)
{
jjmatchedKind = strKind;
jjmatchedPos = strPos;
}
else if (jjmatchedPos == strPos && jjmatchedKind > strKind)
jjmatchedKind = strKind;
return toRet;
}
static final int[] jjnextStates = {
15, 16, 18, 19, 21, 1, 2, 3, 5, 4, 18, 19, 21, 30, 31, 41,
42, 53, 54, 65, 66, 68, 69, 37, 67, 68, 69, 37, 81, 82, 93, 94,
96, 98, 97, 95, 96, 98, 97, 79, 108, 39, 50, 2, 3, 7, 8, 12,
13, 22, 23,
};
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec2[i2] & l2) != 0L);
default :
if ((jjbitVec0[i1] & l1) != 0L)
return true;
return false;
}
}
private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec4[i2] & l2) != 0L);
case 1:
return ((jjbitVec5[i2] & l2) != 0L);
case 2:
return ((jjbitVec6[i2] & l2) != 0L);
case 3:
return ((jjbitVec7[i2] & l2) != 0L);
case 4:
return ((jjbitVec8[i2] & l2) != 0L);
case 5:
return ((jjbitVec9[i2] & l2) != 0L);
case 6:
return ((jjbitVec10[i2] & l2) != 0L);
case 9:
return ((jjbitVec11[i2] & l2) != 0L);
case 10:
return ((jjbitVec12[i2] & l2) != 0L);
case 11:
return ((jjbitVec13[i2] & l2) != 0L);
case 12:
return ((jjbitVec14[i2] & l2) != 0L);
case 13:
return ((jjbitVec15[i2] & l2) != 0L);
case 14:
return ((jjbitVec16[i2] & l2) != 0L);
case 15:
return ((jjbitVec17[i2] & l2) != 0L);
case 16:
return ((jjbitVec18[i2] & l2) != 0L);
case 17:
return ((jjbitVec19[i2] & l2) != 0L);
case 30:
return ((jjbitVec20[i2] & l2) != 0L);
case 31:
return ((jjbitVec21[i2] & l2) != 0L);
case 33:
return ((jjbitVec22[i2] & l2) != 0L);
case 48:
return ((jjbitVec23[i2] & l2) != 0L);
case 49:
return ((jjbitVec24[i2] & l2) != 0L);
case 159:
return ((jjbitVec25[i2] & l2) != 0L);
case 215:
return ((jjbitVec26[i2] & l2) != 0L);
default :
if ((jjbitVec3[i1] & l1) != 0L)
return true;
return false;
}
}
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, "\42", "\45",
"\46", "\47", "\50", "\51", "\52", "\53", "\54", "\55", "\56", "\57", "\72", "\73",
"\74", "\75", "\76", "\77", "\137", "\174", "\133", "\135", null, null, null, null,
null, null, null, null, null, "\74\76", "\76\75", "\74\75", "\174\174", "\56\56",
null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null, };
public static final String[] lexStateNames = {
"DEFAULT",
};
static final long[] jjtoToken = {
0x1fffffc07ffffe01L, 0x4000e17e1L,
};
static final long[] jjtoSkip = {
0x3eL, 0x0L,
};
protected SimpleCharStream input_stream;
private final int[] jjrounds = new int[109];
private final int[] jjstateSet = new int[218];
protected char curChar;
public JCRSQLParserTokenManager(SimpleCharStream stream){
if (SimpleCharStream.staticFlag)
throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
input_stream = stream;
}
public JCRSQLParserTokenManager(SimpleCharStream stream, int lexState){
this(stream);
SwitchTo(lexState);
}
public void ReInit(SimpleCharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
private final void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 109; i-- > 0;)
jjrounds[i] = 0x80000000;
}
public void ReInit(SimpleCharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
public void SwitchTo(int lexState)
{
if (lexState >= 1 || lexState < 0)
throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
else
curLexState = lexState;
}
protected Token jjFillToken()
{
Token t = Token.newToken(jjmatchedKind);
t.kind = jjmatchedKind;
String im = jjstrLiteralImages[jjmatchedKind];
t.image = (im == null) ? input_stream.GetImage() : im;
t.beginLine = input_stream.getBeginLine();
t.beginColumn = input_stream.getBeginColumn();
t.endLine = input_stream.getEndLine();
t.endColumn = input_stream.getEndColumn();
return t;
}
int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
public Token getNextToken()
{
int kind;
Token specialToken = null;
Token matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.BeginToken();
}
catch(java.io.IOException e)
{
jjmatchedKind = 0;
matchedToken = jjFillToken();
return matchedToken;
}
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
matchedToken = jjFillToken();
return matchedToken;
}
else
{
continue EOFLoop;
}
}
int error_line = input_stream.getEndLine();
int error_column = input_stream.getEndColumn();
String error_after = null;
boolean EOFSeen = false;
try { input_stream.readChar(); input_stream.backup(1); }
catch (java.io.IOException e1) {
EOFSeen = true;
error_after = curPos <= 1 ? "" : input_stream.GetImage();
if (curChar == '\n' || curChar == '\r') {
error_line++;
error_column = 0;
}
else
error_column++;
}
if (!EOFSeen) {
input_stream.backup(1);
error_after = curPos <= 1 ? "" : input_stream.GetImage();
}
throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy