parsertokenmanager.java

来自「mysql集群」· Java 代码 · 共 1,128 行 · 第 1/3 页

JAVA
1,128
字号
/* Generated By:JJTree&JavaCC: Do not edit this line. ParserTokenManager.java */
package com.meidusa.amoeba.sqljep;
import java.math.BigDecimal;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import java.util.HashMap;
import com.meidusa.amoeba.sqljep.function.*;
import com.meidusa.amoeba.sqljep.variable.*;

public class ParserTokenManager implements ParserConstants
{
  public  java.io.PrintStream debugStream = System.out;
  public  void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopStringLiteralDfa_0(int pos, long active0){
   switch (pos)   {
      case 0:
         if ((active0 & 0x400L) != 0L)
            return 0;
         if ((active0 & 0x7ff80800L) != 0L)
         {
            jjmatchedKind = 36;
            return 26;
         }
         return -1;
      case 1:
         if ((active0 & 0x1100000L) != 0L)
            return 26;
         if ((active0 & 0x7ee80800L) != 0L)
         {
            jjmatchedKind = 36;
            jjmatchedPos = 1;
            return 26;
         }
         return -1;
      case 2:
         if ((active0 & 0x8280800L) != 0L)
            return 26;
         if ((active0 & 0xc00000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         if ((active0 & 0x76000000L) != 0L)
         {
            if (jjmatchedPos != 2)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 2;
            }
            return 26;
         }
         return -1;
      case 3:
         if ((active0 & 0x34000000L) != 0L)
            return 26;
         if ((active0 & 0x42000000L) != 0L)
         {
            jjmatchedKind = 36;
            jjmatchedPos = 3;
            return 26;
         }
         if ((active0 & 0xc00000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         return -1;
      case 4:
         if ((active0 & 0x40000000L) != 0L)
            return 26;
         if ((active0 & 0xc00000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         if ((active0 & 0x2000000L) != 0L)
         {
            jjmatchedKind = 36;
            jjmatchedPos = 4;
            return 26;
         }
         return -1;
      case 5:
         if ((active0 & 0xc00000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         if ((active0 & 0x2000000L) != 0L)
         {
            jjmatchedKind = 36;
            jjmatchedPos = 5;
            return 26;
         }
         return -1;
      case 6:
         if ((active0 & 0x2000000L) != 0L)
            return 26;
         if ((active0 & 0xc00000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         return -1;
      case 7:
         if ((active0 & 0x800000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         return -1;
      case 8:
         if ((active0 & 0x800000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         return -1;
      case 9:
         if ((active0 & 0x800000L) != 0L)
         {
            if (jjmatchedPos < 1)
            {
               jjmatchedKind = 36;
               jjmatchedPos = 1;
            }
            return -1;
         }
         return -1;
      default :
         return -1;
   }
}
private final int jjStartNfa_0(int pos, long active0){
   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
}
private final int jjStopAtPos(int pos, int kind)
{
   jjmatchedKind = kind;
   jjmatchedPos = pos;
   return pos + 1;
}
private final int jjStartNfaWithStates_0(int pos, int kind, int state)
{
   jjmatchedKind = kind;
   jjmatchedPos = pos;
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) { return pos + 1; }
   return jjMoveNfa_0(state, pos + 1);
}
private final int jjMoveStringLiteralDfa0_0()
{
   switch(curChar)
   {
      case 33:
         return jjMoveStringLiteralDfa1_0(0x40000L);
      case 40:
         return jjStopAtPos(0, 40);
      case 41:
         return jjStopAtPos(0, 41);
      case 42:
         return jjStopAtPos(0, 9);
      case 43:
         return jjStopAtPos(0, 7);
      case 44:
         return jjStopAtPos(0, 42);
      case 45:
         return jjStopAtPos(0, 8);
      case 47:
         return jjStartNfaWithStates_0(0, 10, 0);
      case 60:
         jjmatchedKind = 14;
         return jjMoveStringLiteralDfa1_0(0x10000L);
      case 61:
         return jjStopAtPos(0, 15);
      case 62:
         jjmatchedKind = 13;
         return jjMoveStringLiteralDfa1_0(0x20000L);
      case 65:
      case 97:
         return jjMoveStringLiteralDfa1_0(0x80000L);
      case 66:
      case 98:
         return jjMoveStringLiteralDfa1_0(0x2000000L);
      case 68:
      case 100:
         return jjMoveStringLiteralDfa1_0(0x800L);
      case 70:
      case 102:
         return jjMoveStringLiteralDfa1_0(0x40000000L);
      case 73:
      case 105:
         return jjMoveStringLiteralDfa1_0(0x1c00000L);
      case 76:
      case 108:
         return jjMoveStringLiteralDfa1_0(0x4000000L);
      case 78:
      case 110:
         return jjMoveStringLiteralDfa1_0(0x18200000L);
      case 79:
      case 111:
         return jjMoveStringLiteralDfa1_0(0x100000L);
      case 84:
      case 116:
         return jjMoveStringLiteralDfa1_0(0x20000000L);
      case 124:
         return jjMoveStringLiteralDfa1_0(0x40L);
      default :
         return jjMoveNfa_0(6, 0);
   }
}
private final int jjMoveStringLiteralDfa1_0(long active0)
{
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(0, active0);
      return 1;
   }
   switch(curChar)
   {
      case 61:
         if ((active0 & 0x10000L) != 0L)
            return jjStopAtPos(1, 16);
         else if ((active0 & 0x20000L) != 0L)
            return jjStopAtPos(1, 17);
         else if ((active0 & 0x40000L) != 0L)
            return jjStopAtPos(1, 18);
         break;
      case 65:
      case 97:
         return jjMoveStringLiteralDfa2_0(active0, 0x40000000L);
      case 69:
      case 101:
         return jjMoveStringLiteralDfa2_0(active0, 0x2000000L);
      case 73:
      case 105:
         return jjMoveStringLiteralDfa2_0(active0, 0x4000800L);
      case 78:
      case 110:
         if ((active0 & 0x1000000L) != 0L)
            return jjStartNfaWithStates_0(1, 24, 26);
         return jjMoveStringLiteralDfa2_0(active0, 0x80000L);
      case 79:
      case 111:
         return jjMoveStringLiteralDfa2_0(active0, 0x8200000L);
      case 82:
      case 114:
         if ((active0 & 0x100000L) != 0L)
            return jjStartNfaWithStates_0(1, 20, 26);
         return jjMoveStringLiteralDfa2_0(active0, 0x20000000L);
      case 83:
      case 115:
         return jjMoveStringLiteralDfa2_0(active0, 0xc00000L);
      case 85:
      case 117:
         return jjMoveStringLiteralDfa2_0(active0, 0x10000000L);
      case 124:
         if ((active0 & 0x40L) != 0L)
            return jjStopAtPos(1, 6);
         break;
      default :
         break;
   }
   return jjStartNfa_0(0, active0);
}
private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
{
   if (((active0 &= old0)) == 0L)
      return jjStartNfa_0(0, old0); 
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(1, active0);
      return 2;
   }
   switch(curChar)
   {
      case 32:
         return jjMoveStringLiteralDfa3_0(active0, 0xc00000L);
      case 68:
      case 100:
         if ((active0 & 0x80000L) != 0L)
            return jjStartNfaWithStates_0(2, 19, 26);
         break;
      case 75:
      case 107:
         return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);
      case 76:
      case 108:
         return jjMoveStringLiteralDfa3_0(active0, 0x50000000L);
      case 84:
      case 116:
         if ((active0 & 0x200000L) != 0L)
         {
            jjmatchedKind = 21;
            jjmatchedPos = 2;
         }
         return jjMoveStringLiteralDfa3_0(active0, 0xa000000L);
      case 85:
      case 117:
         return jjMoveStringLiteralDfa3_0(active0, 0x20000000L);
      case 86:
      case 118:
         if ((active0 & 0x800L) != 0L)
            return jjStartNfaWithStates_0(2, 11, 26);
         break;
      default :
         break;
   }
   return jjStartNfa_0(1, active0);
}
private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
{
   if (((active0 &= old0)) == 0L)
      return jjStartNfa_0(1, old0); 
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(2, active0);
      return 3;
   }
   switch(curChar)
   {
      case 32:
         return jjMoveStringLiteralDfa4_0(active0, 0x8000000L);
      case 69:
      case 101:
         if ((active0 & 0x4000000L) != 0L)
            return jjStartNfaWithStates_0(3, 26, 26);
         else if ((active0 & 0x20000000L) != 0L)
            return jjStartNfaWithStates_0(3, 29, 26);
         break;
      case 76:
      case 108:
         if ((active0 & 0x10000000L) != 0L)
            return jjStartNfaWithStates_0(3, 28, 26);
         break;
      case 78:
      case 110:
         return jjMoveStringLiteralDfa4_0(active0, 0xc00000L);
      case 83:
      case 115:
         return jjMoveStringLiteralDfa4_0(active0, 0x40000000L);
      case 87:
      case 119:
         return jjMoveStringLiteralDfa4_0(active0, 0x2000000L);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?