📄 sqlparsertokenmanager.java
字号:
/* Generated By:JavaCC: Do not edit this line. SQLParserTokenManager.java *//* Derby - File org.apache.derby.impl.sql.compile.sqlgrammar.jj Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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.derby.impl.sql.compile;import org.apache.derby.iapi.sql.Statement;import org.apache.derby.iapi.sql.StatementType;/* aggregates */import org.apache.derby.impl.sql.compile.CountAggregateDefinition;import org.apache.derby.impl.sql.compile.MaxMinAggregateDefinition;import org.apache.derby.impl.sql.compile.SumAvgAggregateDefinition;import org.apache.derby.impl.sql.compile.AggregateNode;import org.apache.derby.impl.sql.compile.BinaryOperatorNode;import org.apache.derby.impl.sql.compile.CallStatementNode;import org.apache.derby.impl.sql.compile.CharConstantNode;import org.apache.derby.impl.sql.compile.CastNode;import org.apache.derby.impl.sql.compile.ColumnDefinitionNode;import org.apache.derby.impl.sql.compile.ColumnReference;import org.apache.derby.impl.sql.compile.CursorNode;import org.apache.derby.impl.sql.compile.FromBaseTable;import org.apache.derby.impl.sql.compile.FromList;import org.apache.derby.impl.sql.compile.FromSubquery;import org.apache.derby.impl.sql.compile.FromTable;import org.apache.derby.impl.sql.compile.GroupByList;import org.apache.derby.impl.sql.compile.HasNodeVisitor;import org.apache.derby.impl.sql.compile.JavaToSQLValueNode;import org.apache.derby.impl.sql.compile.JoinNode;import org.apache.derby.impl.sql.compile.MethodCallNode;import org.apache.derby.impl.sql.compile.QueryTreeNode;import org.apache.derby.impl.sql.compile.ReplaceAggregatesWithCRVisitor;import org.apache.derby.impl.sql.compile.ResultColumnList;import org.apache.derby.impl.sql.compile.ResultColumn;import org.apache.derby.impl.sql.compile.OrderByList;import org.apache.derby.impl.sql.compile.OrderByColumn;import org.apache.derby.impl.sql.compile.ResultSetNode;import org.apache.derby.impl.sql.compile.SelectNode;import org.apache.derby.impl.sql.compile.SubqueryNode;import org.apache.derby.impl.sql.compile.TableName;import org.apache.derby.impl.sql.compile.TernaryOperatorNode;import org.apache.derby.impl.sql.compile.ParameterNode;import org.apache.derby.impl.sql.compile.ConstraintDefinitionNode;import org.apache.derby.impl.sql.compile.DMLModStatementNode;import org.apache.derby.impl.sql.compile.StatementNode;import org.apache.derby.impl.sql.compile.TableElementList;import org.apache.derby.impl.sql.compile.TableElementNode;import org.apache.derby.impl.sql.compile.TableOperatorNode;import org.apache.derby.impl.sql.compile.TransactionStatementNode;import org.apache.derby.impl.sql.compile.TriggerReferencingStruct;import org.apache.derby.impl.sql.compile.UnionNode;import org.apache.derby.impl.sql.compile.IntersectOrExceptNode;import org.apache.derby.impl.sql.compile.UnaryOperatorNode;import org.apache.derby.impl.sql.compile.UntypedNullConstantNode;import org.apache.derby.impl.sql.compile.UpdateNode;import org.apache.derby.impl.sql.compile.UserTypeConstantNode;import org.apache.derby.impl.sql.compile.ValueNode;import org.apache.derby.impl.sql.compile.ValueNodeList;import org.apache.derby.impl.sql.compile.GroupByColumn;import org.apache.derby.impl.sql.compile.CurrentDatetimeOperatorNode;import org.apache.derby.impl.sql.compile.CreateStatementNode;import org.apache.derby.impl.sql.compile.AlterTableNode;import org.apache.derby.impl.sql.compile.StringSlicer;import org.apache.derby.impl.sql.compile.ParseException;import org.apache.derby.impl.sql.compile.Token;import org.apache.derby.impl.sql.compile.TokenMgrError;import org.apache.derby.impl.sql.compile.SQLParserConstants;import org.apache.derby.impl.sql.compile.CharStream;import org.apache.derby.iapi.sql.dictionary.DataDictionary;import org.apache.derby.iapi.sql.dictionary.TableDescriptor;import org.apache.derby.iapi.sql.dictionary.TriggerDescriptor;import org.apache.derby.iapi.sql.dictionary.ViewDescriptor;import org.apache.derby.iapi.sql.execute.ConstantAction;import org.apache.derby.iapi.sql.execute.ExecutionContext;import org.apache.derby.iapi.types.DataTypeDescriptor;import org.apache.derby.iapi.types.TypeId;import org.apache.derby.iapi.sql.compile.TypeCompiler;import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;import org.apache.derby.iapi.types.DateTimeDataValue;import org.apache.derby.iapi.types.DataTypeDescriptor;import org.apache.derby.iapi.types.DataTypeUtilities;import org.apache.derby.iapi.types.StringDataValue;import org.apache.derby.iapi.types.DataValueDescriptor;import org.apache.derby.iapi.error.StandardException;import org.apache.derby.iapi.reference.SQLState;import org.apache.derby.iapi.reference.JDBC30Translation;import org.apache.derby.iapi.reference.Limits;import org.apache.derby.iapi.sql.compile.CompilerContext;import org.apache.derby.iapi.sql.compile.C_NodeTypes;import org.apache.derby.iapi.services.context.ContextManager;import org.apache.derby.iapi.sql.compile.NodeFactory;import org.apache.derby.iapi.services.sanity.SanityManager;import org.apache.derby.catalog.AliasInfo;import org.apache.derby.catalog.TypeDescriptor;import org.apache.derby.catalog.types.RoutineAliasInfo;import org.apache.derby.iapi.services.io.FormatableProperties;import org.apache.derby.iapi.services.io.StoredFormatIds;import org.apache.derby.iapi.util.ReuseFactory;import org.apache.derby.iapi.services.io.FormatableBitSet;import org.apache.derby.iapi.util.StringUtil;import java.sql.Types;import java.util.Properties;import java.util.Vector;import java.lang.Character;public class SQLParserTokenManager implements SQLParserConstants{ void CommonTokenAction(Token t) { t.beginOffset = input_stream.getBeginOffset(); t.endOffset = input_stream.getEndOffset(); } 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 = 2; return jjMoveNfa_0(5, 0); case 10: jjmatchedKind = 3; return jjMoveNfa_0(5, 0); case 13: jjmatchedKind = 4; return jjMoveNfa_0(5, 0); case 32: jjmatchedKind = 1; return jjMoveNfa_0(5, 0); case 33: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0x0L, 0x8000000000000L); case 34: jjmatchedKind = 350; return jjMoveNfa_0(5, 0); case 37: jjmatchedKind = 351; return jjMoveNfa_0(5, 0); case 38: jjmatchedKind = 352; return jjMoveNfa_0(5, 0); case 39: jjmatchedKind = 353; return jjMoveNfa_0(5, 0); case 40: jjmatchedKind = 356; return jjMoveNfa_0(5, 0); case 41: jjmatchedKind = 357; return jjMoveNfa_0(5, 0); case 42: jjmatchedKind = 358; return jjMoveNfa_0(5, 0); case 43: jjmatchedKind = 359; return jjMoveNfa_0(5, 0); case 44: jjmatchedKind = 360; return jjMoveNfa_0(5, 0); case 45: jjmatchedKind = 361; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0x0L, 0x1000000000000000L); case 46: jjmatchedKind = 362; return jjMoveNfa_0(5, 0); case 47: jjmatchedKind = 363; return jjMoveNfa_0(5, 0); case 58: jjmatchedKind = 364; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0x0L, 0x200000000000L); case 59: jjmatchedKind = 366; return jjMoveNfa_0(5, 0); case 60: jjmatchedKind = 367; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0x0L, 0x5000000000000L); case 61: jjmatchedKind = 369; return jjMoveNfa_0(5, 0); case 62: jjmatchedKind = 372; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0x0L, 0x20000000000000L); case 63: jjmatchedKind = 374; return jjMoveNfa_0(5, 0); case 65: return jjMoveStringLiteralDfa1_0(0x7ffc0L, 0x0L, 0x0L, 0x78000L, 0x10000000000L, 0x0L); case 66: return jjMoveStringLiteralDfa1_0(0x1f80000L, 0x0L, 0x0L, 0x80000L, 0x20081000000L, 0x0L); case 67: jjmatchedKind = 212; return jjMoveStringLiteralDfa1_0(0x3ffffffe000000L, 0x0L, 0x0L, 0x7e00000L, 0x7c000e000000L, 0x0L); case 68: jjmatchedKind = 54; return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0x3fL, 0x0L, 0x78000000L, 0x3800010000000L, 0x0L); case 69: return jjMoveStringLiteralDfa1_0(0x0L, 0xffc0L, 0x0L, 0x0L, 0xc000040000000L, 0x0L); case 70: return jjMoveStringLiteralDfa1_0(0x0L, 0x3ff0000L, 0x0L, 0x80000000L, 0x10000000000000L, 0x0L); case 71: jjmatchedKind = 384; return jjMoveStringLiteralDfa1_0(0x0L, 0xfc000000L, 0x0L, 0x100000000L, 0x20000000L, 0x0L); case 72: return jjMoveStringLiteralDfa1_0(0x0L, 0x300000000L, 0x0L, 0x0L, 0x0L, 0x0L); case 73: return jjMoveStringLiteralDfa1_0(0x0L, 0x1fffc00000000L, 0x0L, 0x3e00000000L, 0x20000000000000L, 0x0L); case 74: return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000000000L, 0x0L, 0x0L, 0x40000000000000L, 0x0L); case 75: jjmatchedKind = 382; return jjMoveStringLiteralDfa1_0(0x0L, 0x4000000000000L, 0x0L, 0x0L, 0x0L, 0x0L); case 76: return jjMoveStringLiteralDfa1_0(0x0L, 0x78000000000000L, 0x0L, 0x1fc000000000L, 0x380000300000000L, 0x0L); case 77: jjmatchedKind = 383; return jjMoveStringLiteralDfa1_0(0x0L, 0xf80000000000000L, 0x0L, 0x7e00000000000L, 0x1c00000000000000L, 0x0L); case 78: return jjMoveStringLiteralDfa1_0(0x0L, 0xf000000000000000L, 0x1fL, 0x78000000000000L, 0xe000000000000000L, 0x0L); case 79: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x7fe0L, 0x80000000000000L, 0x0L, 0x1fL); case 80: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xff8000L, 0x700000000000000L, 0x0L, 0xe0L); case 82: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x1ff000000L, 0x7800000000000000L, 0x400000000L, 0x1ff00L); case 83: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x1fffe00000000L, 0x8000000000000000L, 0x800003fffL, 0x3fe0000L); case 84: jjmatchedKind = 177; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xffc000000000000L, 0x0L, 0x1fc000L, 0x4000000L); case 85: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xf000000000000000L, 0x7L, 0x600000L, 0x18000000L); case 86: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x1f8L, 0x0L, 0x0L); case 87: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x3e00L, 0x800000L, 0x20000000L); case 88: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0xf000000000L, 0x0L); case 89: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x4000L, 0x0L, 0x0L); case 91: jjmatchedKind = 377; return jjMoveNfa_0(5, 0); case 93: jjmatchedKind = 378; return jjMoveNfa_0(5, 0); case 95: jjmatchedKind = 375; return jjMoveNfa_0(5, 0); case 97: return jjMoveStringLiteralDfa1_0(0x7ffc0L, 0x0L, 0x0L, 0x78000L, 0x10000000000L, 0x0L); case 98: return jjMoveStringLiteralDfa1_0(0x1f80000L, 0x0L, 0x0L, 0x80000L, 0x20081000000L, 0x0L); case 99: jjmatchedKind = 212; return jjMoveStringLiteralDfa1_0(0x3ffffffe000000L, 0x0L, 0x0L, 0x7e00000L, 0x7c000e000000L, 0x0L); case 100: jjmatchedKind = 54; return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0x3fL, 0x0L, 0x78000000L, 0x3800010000000L, 0x0L); case 101: return jjMoveStringLiteralDfa1_0(0x0L, 0xffc0L, 0x0L, 0x0L, 0xc000040000000L, 0x0L); case 102: return jjMoveStringLiteralDfa1_0(0x0L, 0x3ff0000L, 0x0L, 0x80000000L, 0x10000000000000L, 0x0L); case 103: return jjMoveStringLiteralDfa1_0(0x0L, 0xfc000000L, 0x0L, 0x100000000L, 0x20000000L, 0x0L); case 104: return jjMoveStringLiteralDfa1_0(0x0L, 0x300000000L, 0x0L, 0x0L, 0x0L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x0L, 0x1fffc00000000L, 0x0L, 0x3e00000000L, 0x20000000000000L, 0x0L); case 106: return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000000000L, 0x0L, 0x0L, 0x40000000000000L, 0x0L); case 107: return jjMoveStringLiteralDfa1_0(0x0L, 0x4000000000000L, 0x0L, 0x0L, 0x0L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x0L, 0x78000000000000L, 0x0L, 0x1fc000000000L, 0x380000300000000L, 0x0L); case 109: return jjMoveStringLiteralDfa1_0(0x0L, 0xf80000000000000L, 0x0L, 0x7e00000000000L, 0x1c00000000000000L, 0x0L); case 110: return jjMoveStringLiteralDfa1_0(0x0L, 0xf000000000000000L, 0x1fL, 0x78000000000000L, 0xe000000000000000L, 0x0L); case 111: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x7fe0L, 0x80000000000000L, 0x0L, 0x1fL); case 112: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xff8000L, 0x700000000000000L, 0x0L, 0xe0L); case 114: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x1ff000000L, 0x7800000000000000L, 0x400000000L, 0x1ff00L); case 115: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x1fffe00000000L, 0x8000000000000000L, 0x800003fffL, 0x3fe0000L); case 116: jjmatchedKind = 177; return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xffc000000000000L, 0x0L, 0x1fc000L, 0x4000000L); case 117: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0xf000000000000000L, 0x7L, 0x600000L, 0x18000000L); case 118: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x1f8L, 0x0L, 0x0L); case 119: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x3e00L, 0x800000L, 0x20000000L); case 120: return jjMoveStringLiteralDfa1_0(0x0L, 0x0L, 0x0L, 0x0L, 0xf000000000L, 0x0L); case 121:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -