com.rapiddweller.jdbacl.sql.parser.SQLParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rd-lib-jdbacl Show documentation
Show all versions of rd-lib-jdbacl Show documentation
'jdbacl' stands for 'Java DataBase ACcess Layer' and provides utilities for accessing JDBC databases from
Java programs, retrieving meta information in an object model and querying database data.
'rapiddweller jdbacl' is forked from Databene jdbacl by Volker Bergmann.
The newest version!
// $ANTLR 3.3 Nov 30, 2010 12:45:30 /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g 2012-06-05 11:38:25
// CHECKSTYLE:OFF
package com.rapiddweller.jdbacl.sql.parser;
import org.antlr.runtime.BaseRecognizer;
import org.antlr.runtime.BitSet;
import org.antlr.runtime.DFA;
import org.antlr.runtime.EarlyExitException;
import org.antlr.runtime.IntStream;
import org.antlr.runtime.MismatchedSetException;
import org.antlr.runtime.MismatchedTokenException;
import org.antlr.runtime.NoViableAltException;
import org.antlr.runtime.Parser;
import org.antlr.runtime.ParserRuleReturnScope;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.RecognizerSharedState;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenStream;
import org.antlr.runtime.tree.CommonTreeAdaptor;
import org.antlr.runtime.tree.RewriteRuleSubtreeStream;
import org.antlr.runtime.tree.RewriteRuleTokenStream;
import org.antlr.runtime.tree.TreeAdaptor;
import javax.annotation.processing.Generated;
/**
* The type Sql parser.
*/
@Generated("ANTLR") // this is code generated by ANTLR
@SuppressWarnings("all")
public class SQLParser extends Parser {
/**
* The constant tokenNames.
*/
public static final String[] tokenNames = new String[] {
"", "", "", "", "INT", "NOT", "IDENTIFIER", "STRING", "QUOTED_NAME", "PRIMARY", "DEFAULT", "COMMENT", "CREATE_TABLE",
"DROP_TABLE", "ALTER_TABLE", "TABLE_NAME", "COLUMN_NAME", "SIZE", "CREATE_SEQUENCE", "DROP_SEQUENCE", "NAME_LIST", "CREATE_INDEX", "INDEX_NAME",
"TABLE_DETAILS", "COLUMN_SPEC", "ORA_CONFIGS", "COMMENT_TABLE", "COMMENT_COLUMN", "INVOCATION", "ARGUMENTS", "VALUE_LIST", "OR", "AND", "XOR",
"EQ", "BANGEQ", "LTGT", "GT", "GE", "LT", "LE", "LIKE", "IS", "NULL", "IN", "BETWEEN", "PLUS", "SUB", "STAR", "SLASH", "PERCENT", "BARBAR",
"ROWID", "NUMBER", "VARCHAR2", "NVARCHAR2", "BYTE", "CHAR", "DATE", "TIMESTAMP", "BEFORE", "WS", "';'", "'CREATE'", "'GLOBAL'", "'TEMPORARY'",
"'TABLE'", "'('", "')'", "','", "'NCHAR2'", "'BLOB'", "'CLOB'", "'NCLOB'", "'CONSTRAINT'", "'KEY'", "'ORGANIZATION'", "'TABLESPACE'",
"'PCTUSED'", "'PCTFREE'", "'INITRANS'", "'MAXTRANS'", "'COMPRESS'", "'ENABLE'", "'ROW'", "'MOVEMENT'", "'DISABLE'", "'ON'", "'COMMIT'",
"'DELETE'", "'ROWS'", "'STORAGE'", "'INITIAL'", "'NEXT'", "'MINEXTENTS'", "'MAXEXTENTS'", "'PCTINCREASE'", "'BUFFER_POOL'", "'PARTITION'",
"'BY'", "'RANGE'", "'HASH'", "'LIST'", "'SUBPARTITION'", "'PARTITIONS'", "'STORE'", "'VALUES'", "'LESS'", "'THAN'", "'SUBPARTITIONS'",
"'LOGGING'", "'NOLOGGING'", "'NOCOMPRESS'", "'CACHE'", "'NOCACHE'", "'NOPARALLEL'", "'MONITORING'", "'RETENTION'", "'LOB'", "'AS'", "'CHUNK'",
"'PCTVERSION'", "'INDEX'", "'ALTER'", "'DROP'", "'CASCADE'", "'ADD'", "'USING'", "'FOREIGN'", "'REFERENCES'", "'UNIQUE'", "'CHECK'",
"'CONSTRAINTS'", "'INDEXTYPE'", "'SEQUENCE'", "'COMMENT'", "'COLUMN'", "'.'", "'TRIGGER'"
};
/**
* The constant EOF.
*/
public static final int EOF = -1;
/**
* The constant T__62.
*/
public static final int T__62 = 62;
/**
* The constant T__63.
*/
public static final int T__63 = 63;
/**
* The constant T__64.
*/
public static final int T__64 = 64;
/**
* The constant T__65.
*/
public static final int T__65 = 65;
/**
* The constant T__66.
*/
public static final int T__66 = 66;
/**
* The constant T__67.
*/
public static final int T__67 = 67;
/**
* The constant T__68.
*/
public static final int T__68 = 68;
/**
* The constant T__69.
*/
public static final int T__69 = 69;
/**
* The constant T__70.
*/
public static final int T__70 = 70;
/**
* The constant T__71.
*/
public static final int T__71 = 71;
/**
* The constant T__72.
*/
public static final int T__72 = 72;
/**
* The constant T__73.
*/
public static final int T__73 = 73;
/**
* The constant T__74.
*/
public static final int T__74 = 74;
/**
* The constant T__75.
*/
public static final int T__75 = 75;
/**
* The constant T__76.
*/
public static final int T__76 = 76;
/**
* The constant T__77.
*/
public static final int T__77 = 77;
/**
* The constant T__78.
*/
public static final int T__78 = 78;
/**
* The constant T__79.
*/
public static final int T__79 = 79;
/**
* The constant T__80.
*/
public static final int T__80 = 80;
/**
* The constant T__81.
*/
public static final int T__81 = 81;
/**
* The constant T__82.
*/
public static final int T__82 = 82;
/**
* The constant T__83.
*/
public static final int T__83 = 83;
/**
* The constant T__84.
*/
public static final int T__84 = 84;
/**
* The constant T__85.
*/
public static final int T__85 = 85;
/**
* The constant T__86.
*/
public static final int T__86 = 86;
/**
* The constant T__87.
*/
public static final int T__87 = 87;
/**
* The constant T__88.
*/
public static final int T__88 = 88;
/**
* The constant T__89.
*/
public static final int T__89 = 89;
/**
* The constant T__90.
*/
public static final int T__90 = 90;
/**
* The constant T__91.
*/
public static final int T__91 = 91;
/**
* The constant T__92.
*/
public static final int T__92 = 92;
/**
* The constant T__93.
*/
public static final int T__93 = 93;
/**
* The constant T__94.
*/
public static final int T__94 = 94;
/**
* The constant T__95.
*/
public static final int T__95 = 95;
/**
* The constant T__96.
*/
public static final int T__96 = 96;
/**
* The constant T__97.
*/
public static final int T__97 = 97;
/**
* The constant T__98.
*/
public static final int T__98 = 98;
/**
* The constant T__99.
*/
public static final int T__99 = 99;
/**
* The constant T__100.
*/
public static final int T__100 = 100;
/**
* The constant T__101.
*/
public static final int T__101 = 101;
/**
* The constant T__102.
*/
public static final int T__102 = 102;
/**
* The constant T__103.
*/
public static final int T__103 = 103;
/**
* The constant T__104.
*/
public static final int T__104 = 104;
/**
* The constant T__105.
*/
public static final int T__105 = 105;
/**
* The constant T__106.
*/
public static final int T__106 = 106;
/**
* The constant T__107.
*/
public static final int T__107 = 107;
/**
* The constant T__108.
*/
public static final int T__108 = 108;
/**
* The constant T__109.
*/
public static final int T__109 = 109;
/**
* The constant T__110.
*/
public static final int T__110 = 110;
/**
* The constant T__111.
*/
public static final int T__111 = 111;
/**
* The constant T__112.
*/
public static final int T__112 = 112;
/**
* The constant T__113.
*/
public static final int T__113 = 113;
/**
* The constant T__114.
*/
public static final int T__114 = 114;
/**
* The constant T__115.
*/
public static final int T__115 = 115;
/**
* The constant T__116.
*/
public static final int T__116 = 116;
/**
* The constant T__117.
*/
public static final int T__117 = 117;
/**
* The constant T__118.
*/
public static final int T__118 = 118;
/**
* The constant T__119.
*/
public static final int T__119 = 119;
/**
* The constant T__120.
*/
public static final int T__120 = 120;
/**
* The constant T__121.
*/
public static final int T__121 = 121;
/**
* The constant T__122.
*/
public static final int T__122 = 122;
/**
* The constant T__123.
*/
public static final int T__123 = 123;
/**
* The constant T__124.
*/
public static final int T__124 = 124;
/**
* The constant T__125.
*/
public static final int T__125 = 125;
/**
* The constant T__126.
*/
public static final int T__126 = 126;
/**
* The constant T__127.
*/
public static final int T__127 = 127;
/**
* The constant T__128.
*/
public static final int T__128 = 128;
/**
* The constant T__129.
*/
public static final int T__129 = 129;
/**
* The constant T__130.
*/
public static final int T__130 = 130;
/**
* The constant T__131.
*/
public static final int T__131 = 131;
/**
* The constant T__132.
*/
public static final int T__132 = 132;
/**
* The constant T__133.
*/
public static final int T__133 = 133;
/**
* The constant T__134.
*/
public static final int T__134 = 134;
/**
* The constant T__135.
*/
public static final int T__135 = 135;
/**
* The constant T__136.
*/
public static final int T__136 = 136;
/**
* The constant T__137.
*/
public static final int T__137 = 137;
/**
* The constant T__138.
*/
public static final int T__138 = 138;
/**
* The constant INT.
*/
public static final int INT = 4;
/**
* The constant NOT.
*/
public static final int NOT = 5;
/**
* The constant IDENTIFIER.
*/
public static final int IDENTIFIER = 6;
/**
* The constant STRING.
*/
public static final int STRING = 7;
/**
* The constant QUOTED_NAME.
*/
public static final int QUOTED_NAME = 8;
/**
* The constant PRIMARY.
*/
public static final int PRIMARY = 9;
/**
* The constant DEFAULT.
*/
public static final int DEFAULT = 10;
/**
* The constant COMMENT.
*/
public static final int COMMENT = 11;
/**
* The constant CREATE_TABLE.
*/
public static final int CREATE_TABLE = 12;
/**
* The constant DROP_TABLE.
*/
public static final int DROP_TABLE = 13;
/**
* The constant ALTER_TABLE.
*/
public static final int ALTER_TABLE = 14;
/**
* The constant TABLE_NAME.
*/
public static final int TABLE_NAME = 15;
/**
* The constant COLUMN_NAME.
*/
public static final int COLUMN_NAME = 16;
/**
* The constant SIZE.
*/
public static final int SIZE = 17;
/**
* The constant CREATE_SEQUENCE.
*/
public static final int CREATE_SEQUENCE = 18;
/**
* The constant DROP_SEQUENCE.
*/
public static final int DROP_SEQUENCE = 19;
/**
* The constant NAME_LIST.
*/
public static final int NAME_LIST = 20;
/**
* The constant CREATE_INDEX.
*/
public static final int CREATE_INDEX = 21;
/**
* The constant INDEX_NAME.
*/
public static final int INDEX_NAME = 22;
/**
* The constant TABLE_DETAILS.
*/
public static final int TABLE_DETAILS = 23;
/**
* The constant COLUMN_SPEC.
*/
public static final int COLUMN_SPEC = 24;
/**
* The constant ORA_CONFIGS.
*/
public static final int ORA_CONFIGS = 25;
/**
* The constant COMMENT_TABLE.
*/
public static final int COMMENT_TABLE = 26;
/**
* The constant COMMENT_COLUMN.
*/
public static final int COMMENT_COLUMN = 27;
/**
* The constant INVOCATION.
*/
public static final int INVOCATION = 28;
/**
* The constant ARGUMENTS.
*/
public static final int ARGUMENTS = 29;
/**
* The constant VALUE_LIST.
*/
public static final int VALUE_LIST = 30;
/**
* The constant OR.
*/
public static final int OR = 31;
/**
* The constant AND.
*/
public static final int AND = 32;
/**
* The constant XOR.
*/
public static final int XOR = 33;
/**
* The constant EQ.
*/
public static final int EQ = 34;
/**
* The constant BANGEQ.
*/
public static final int BANGEQ = 35;
/**
* The constant LTGT.
*/
public static final int LTGT = 36;
/**
* The constant GT.
*/
public static final int GT = 37;
/**
* The constant GE.
*/
public static final int GE = 38;
/**
* The constant LT.
*/
public static final int LT = 39;
/**
* The constant LE.
*/
public static final int LE = 40;
/**
* The constant LIKE.
*/
public static final int LIKE = 41;
/**
* The constant IS.
*/
public static final int IS = 42;
/**
* The constant NULL.
*/
public static final int NULL = 43;
/**
* The constant IN.
*/
public static final int IN = 44;
/**
* The constant BETWEEN.
*/
public static final int BETWEEN = 45;
/**
* The constant PLUS.
*/
public static final int PLUS = 46;
/**
* The constant SUB.
*/
public static final int SUB = 47;
/**
* The constant STAR.
*/
public static final int STAR = 48;
/**
* The constant SLASH.
*/
public static final int SLASH = 49;
/**
* The constant PERCENT.
*/
public static final int PERCENT = 50;
/**
* The constant BARBAR.
*/
public static final int BARBAR = 51;
/**
* The constant ROWID.
*/
public static final int ROWID = 52;
/**
* The constant NUMBER.
*/
public static final int NUMBER = 53;
/**
* The constant VARCHAR2.
*/
public static final int VARCHAR2 = 54;
/**
* The constant NVARCHAR2.
*/
public static final int NVARCHAR2 = 55;
/**
* The constant BYTE.
*/
public static final int BYTE = 56;
/**
* The constant CHAR.
*/
public static final int CHAR = 57;
/**
* The constant DATE.
*/
public static final int DATE = 58;
/**
* The constant TIMESTAMP.
*/
public static final int TIMESTAMP = 59;
/**
* The constant BEFORE.
*/
public static final int BEFORE = 60;
/**
* The constant WS.
*/
public static final int WS = 61;
// delegates
// delegators
/**
* Instantiates a new Sql parser.
*
* @param input the input
*/
public SQLParser(TokenStream input) {
this(input, new RecognizerSharedState());
}
/**
* Instantiates a new Sql parser.
*
* @param input the input
* @param state the state
*/
public SQLParser(TokenStream input, RecognizerSharedState state) {
super(input, state);
}
/**
* The Adaptor.
*/
protected TreeAdaptor adaptor = new CommonTreeAdaptor();
/**
* Sets tree adaptor.
*
* @param adaptor the adaptor
*/
public void setTreeAdaptor(TreeAdaptor adaptor) {
this.adaptor = adaptor;
}
/**
* Gets tree adaptor.
*
* @return the tree adaptor
*/
public TreeAdaptor getTreeAdaptor() {
return adaptor;
}
public String[] getTokenNames() {
return SQLParser.tokenNames;
}
public String getGrammarFileName() {
return "/Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g";
}
/**
* Mismatch.
*
* @param input the input
* @param ttype the ttype
* @param follow the follow
* @throws RecognitionException the recognition exception
*/
protected void mismatch(IntStream input, int ttype, BitSet follow)
throws RecognitionException {
throw new MismatchedTokenException(ttype, input);
}
public Object recoverFromMismatchedSet(IntStream input, RecognitionException e, BitSet follow)
throws RecognitionException {
throw e;
}
/**
* The type Commands return.
*/
public static class commands_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Commands sql parser . commands return.
*
* @return the sql parser . commands return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "commands"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:93:1: commands : ( command )* ;
public final SQLParser.commands_return commands() throws RecognitionException {
SQLParser.commands_return retval = new SQLParser.commands_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.command_return command1 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:93:9: ( ( command )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:93:11: ( command )*
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:93:11: ( command )*
loop1:
do {
int alt1 = 2;
int LA1_0 = input.LA(1);
if ((LA1_0 == 63 || (LA1_0 >= 123 && LA1_0 <= 124) || LA1_0 == 135)) {
alt1 = 1;
}
switch (alt1) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:93:11: command
{
pushFollow(FOLLOW_command_in_commands58);
command1 = command();
state._fsp--;
adaptor.addChild(root_0, command1.getTree());
}
break;
default:
break loop1;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "commands"
/**
* The type Command return.
*/
public static class command_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Command sql parser . command return.
*
* @return the sql parser . command return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "command"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:95:1: command : ( ( create_table ';' ) | ( comment ';' ) | ( drop_table ';' ) | ( alter_table ';' ) | ( create_index ';' ) | ( drop_index ';' ) | ( create_sequence ';' ) | ( drop_sequence ';' ) );
public final SQLParser.command_return command() throws RecognitionException {
SQLParser.command_return retval = new SQLParser.command_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal3 = null;
Token char_literal5 = null;
Token char_literal7 = null;
Token char_literal9 = null;
Token char_literal11 = null;
Token char_literal13 = null;
Token char_literal15 = null;
Token char_literal17 = null;
SQLParser.create_table_return create_table2 = null;
SQLParser.comment_return comment4 = null;
SQLParser.drop_table_return drop_table6 = null;
SQLParser.alter_table_return alter_table8 = null;
SQLParser.create_index_return create_index10 = null;
SQLParser.drop_index_return drop_index12 = null;
SQLParser.create_sequence_return create_sequence14 = null;
SQLParser.drop_sequence_return drop_sequence16 = null;
Object char_literal3_tree = null;
Object char_literal5_tree = null;
Object char_literal7_tree = null;
Object char_literal9_tree = null;
Object char_literal11_tree = null;
Object char_literal13_tree = null;
Object char_literal15_tree = null;
Object char_literal17_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:95:9: ( ( create_table ';' ) | ( comment ';' ) | ( drop_table ';' ) | ( alter_table ';' ) | ( create_index ';' ) | ( drop_index ';' ) | ( create_sequence ';' ) | ( drop_sequence ';' ) )
int alt2 = 8;
alt2 = dfa2.predict(input);
switch (alt2) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:95:11: ( create_table ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:95:11: ( create_table ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:95:12: create_table ';'
{
pushFollow(FOLLOW_create_table_in_command68);
create_table2 = create_table();
state._fsp--;
adaptor.addChild(root_0, create_table2.getTree());
char_literal3 = (Token) match(input, 62, FOLLOW_62_in_command73);
}
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:96:4: ( comment ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:96:4: ( comment ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:96:5: comment ';'
{
pushFollow(FOLLOW_comment_in_command81);
comment4 = comment();
state._fsp--;
adaptor.addChild(root_0, comment4.getTree());
char_literal5 = (Token) match(input, 62, FOLLOW_62_in_command91);
}
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:97:4: ( drop_table ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:97:4: ( drop_table ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:97:5: drop_table ';'
{
pushFollow(FOLLOW_drop_table_in_command99);
drop_table6 = drop_table();
state._fsp--;
adaptor.addChild(root_0, drop_table6.getTree());
char_literal7 = (Token) match(input, 62, FOLLOW_62_in_command106);
}
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:98:4: ( alter_table ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:98:4: ( alter_table ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:98:5: alter_table ';'
{
pushFollow(FOLLOW_alter_table_in_command114);
alter_table8 = alter_table();
state._fsp--;
adaptor.addChild(root_0, alter_table8.getTree());
char_literal9 = (Token) match(input, 62, FOLLOW_62_in_command120);
}
}
break;
case 5:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:99:4: ( create_index ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:99:4: ( create_index ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:99:5: create_index ';'
{
pushFollow(FOLLOW_create_index_in_command128);
create_index10 = create_index();
state._fsp--;
adaptor.addChild(root_0, create_index10.getTree());
char_literal11 = (Token) match(input, 62, FOLLOW_62_in_command133);
}
}
break;
case 6:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:100:4: ( drop_index ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:100:4: ( drop_index ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:100:5: drop_index ';'
{
pushFollow(FOLLOW_drop_index_in_command141);
drop_index12 = drop_index();
state._fsp--;
adaptor.addChild(root_0, drop_index12.getTree());
char_literal13 = (Token) match(input, 62, FOLLOW_62_in_command148);
}
}
break;
case 7:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:101:4: ( create_sequence ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:101:4: ( create_sequence ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:101:5: create_sequence ';'
{
pushFollow(FOLLOW_create_sequence_in_command156);
create_sequence14 = create_sequence();
state._fsp--;
adaptor.addChild(root_0, create_sequence14.getTree());
char_literal15 = (Token) match(input, 62, FOLLOW_62_in_command158);
}
}
break;
case 8:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:102:4: ( drop_sequence ';' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:102:4: ( drop_sequence ';' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:102:5: drop_sequence ';'
{
pushFollow(FOLLOW_drop_sequence_in_command166);
drop_sequence16 = drop_sequence();
state._fsp--;
adaptor.addChild(root_0, drop_sequence16.getTree());
char_literal17 = (Token) match(input, 62, FOLLOW_62_in_command170);
}
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "command"
/**
* The type Create table return.
*/
public static class create_table_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Create table sql parser . create table return.
*
* @return the sql parser . create table return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "create_table"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:1: create_table : 'CREATE' ( 'GLOBAL' )? ( 'TEMPORARY' )? 'TABLE' table_name '(' table_details ')' ora_configs -> ^( CREATE_TABLE table_name table_details ora_configs ) ;
public final SQLParser.create_table_return create_table() throws RecognitionException {
SQLParser.create_table_return retval = new SQLParser.create_table_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal18 = null;
Token string_literal19 = null;
Token string_literal20 = null;
Token string_literal21 = null;
Token char_literal23 = null;
Token char_literal25 = null;
SQLParser.table_name_return table_name22 = null;
SQLParser.table_details_return table_details24 = null;
SQLParser.ora_configs_return ora_configs26 = null;
Object string_literal18_tree = null;
Object string_literal19_tree = null;
Object string_literal20_tree = null;
Object string_literal21_tree = null;
Object char_literal23_tree = null;
Object char_literal25_tree = null;
RewriteRuleTokenStream stream_67 = new RewriteRuleTokenStream(adaptor, "token 67");
RewriteRuleTokenStream stream_66 = new RewriteRuleTokenStream(adaptor, "token 66");
RewriteRuleTokenStream stream_68 = new RewriteRuleTokenStream(adaptor, "token 68");
RewriteRuleTokenStream stream_64 = new RewriteRuleTokenStream(adaptor, "token 64");
RewriteRuleTokenStream stream_65 = new RewriteRuleTokenStream(adaptor, "token 65");
RewriteRuleTokenStream stream_63 = new RewriteRuleTokenStream(adaptor, "token 63");
RewriteRuleSubtreeStream stream_ora_configs = new RewriteRuleSubtreeStream(adaptor, "rule ora_configs");
RewriteRuleSubtreeStream stream_table_name = new RewriteRuleSubtreeStream(adaptor, "rule table_name");
RewriteRuleSubtreeStream stream_table_details = new RewriteRuleSubtreeStream(adaptor, "rule table_details");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:14: ( 'CREATE' ( 'GLOBAL' )? ( 'TEMPORARY' )? 'TABLE' table_name '(' table_details ')' ora_configs -> ^( CREATE_TABLE table_name table_details ora_configs ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:16: 'CREATE' ( 'GLOBAL' )? ( 'TEMPORARY' )? 'TABLE' table_name '(' table_details ')' ora_configs
{
string_literal18 = (Token) match(input, 63, FOLLOW_63_in_create_table184);
stream_63.add(string_literal18);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:25: ( 'GLOBAL' )?
int alt3 = 2;
int LA3_0 = input.LA(1);
if ((LA3_0 == 64)) {
alt3 = 1;
}
switch (alt3) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:25: 'GLOBAL'
{
string_literal19 = (Token) match(input, 64, FOLLOW_64_in_create_table186);
stream_64.add(string_literal19);
}
break;
}
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:35: ( 'TEMPORARY' )?
int alt4 = 2;
int LA4_0 = input.LA(1);
if ((LA4_0 == 65)) {
alt4 = 1;
}
switch (alt4) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:35: 'TEMPORARY'
{
string_literal20 = (Token) match(input, 65, FOLLOW_65_in_create_table189);
stream_65.add(string_literal20);
}
break;
}
string_literal21 = (Token) match(input, 66, FOLLOW_66_in_create_table192);
stream_66.add(string_literal21);
pushFollow(FOLLOW_table_name_in_create_table194);
table_name22 = table_name();
state._fsp--;
stream_table_name.add(table_name22.getTree());
char_literal23 = (Token) match(input, 67, FOLLOW_67_in_create_table196);
stream_67.add(char_literal23);
pushFollow(FOLLOW_table_details_in_create_table198);
table_details24 = table_details();
state._fsp--;
stream_table_details.add(table_details24.getTree());
char_literal25 = (Token) match(input, 68, FOLLOW_68_in_create_table200);
stream_68.add(char_literal25);
pushFollow(FOLLOW_ora_configs_in_create_table202);
ora_configs26 = ora_configs();
state._fsp--;
stream_ora_configs.add(ora_configs26.getTree());
// AST REWRITE
// elements: table_name, table_details, ora_configs
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 107:101: -> ^( CREATE_TABLE table_name table_details ora_configs )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:107:104: ^( CREATE_TABLE table_name table_details ora_configs )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(CREATE_TABLE, "CREATE_TABLE"), root_1);
adaptor.addChild(root_1, stream_table_name.nextTree());
adaptor.addChild(root_1, stream_table_details.nextTree());
adaptor.addChild(root_1, stream_ora_configs.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "create_table"
/**
* The type Table name return.
*/
public static class table_name_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Table name sql parser . table name return.
*
* @return the sql parser . table name return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "table_name"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:108:1: table_name : qualified_name -> ^( TABLE_NAME qualified_name ) ;
public final SQLParser.table_name_return table_name() throws RecognitionException {
SQLParser.table_name_return retval = new SQLParser.table_name_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.qualified_name_return qualified_name27 = null;
RewriteRuleSubtreeStream stream_qualified_name = new RewriteRuleSubtreeStream(adaptor, "rule qualified_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:108:12: ( qualified_name -> ^( TABLE_NAME qualified_name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:108:14: qualified_name
{
pushFollow(FOLLOW_qualified_name_in_table_name221);
qualified_name27 = qualified_name();
state._fsp--;
stream_qualified_name.add(qualified_name27.getTree());
// AST REWRITE
// elements: qualified_name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 108:29: -> ^( TABLE_NAME qualified_name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:108:32: ^( TABLE_NAME qualified_name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(TABLE_NAME, "TABLE_NAME"), root_1);
adaptor.addChild(root_1, stream_qualified_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "table_name"
/**
* The type Table details return.
*/
public static class table_details_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Table details sql parser . table details return.
*
* @return the sql parser . table details return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "table_details"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:1: table_details : table_detail ( ',' table_detail )* -> ^( TABLE_DETAILS ( table_detail )* ) ;
public final SQLParser.table_details_return table_details() throws RecognitionException {
SQLParser.table_details_return retval = new SQLParser.table_details_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal29 = null;
SQLParser.table_detail_return table_detail28 = null;
SQLParser.table_detail_return table_detail30 = null;
Object char_literal29_tree = null;
RewriteRuleTokenStream stream_69 = new RewriteRuleTokenStream(adaptor, "token 69");
RewriteRuleSubtreeStream stream_table_detail = new RewriteRuleSubtreeStream(adaptor, "rule table_detail");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:15: ( table_detail ( ',' table_detail )* -> ^( TABLE_DETAILS ( table_detail )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:17: table_detail ( ',' table_detail )*
{
pushFollow(FOLLOW_table_detail_in_table_details236);
table_detail28 = table_detail();
state._fsp--;
stream_table_detail.add(table_detail28.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:30: ( ',' table_detail )*
loop5:
do {
int alt5 = 2;
int LA5_0 = input.LA(1);
if ((LA5_0 == 69)) {
alt5 = 1;
}
switch (alt5) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:31: ',' table_detail
{
char_literal29 = (Token) match(input, 69, FOLLOW_69_in_table_details239);
stream_69.add(char_literal29);
pushFollow(FOLLOW_table_detail_in_table_details241);
table_detail30 = table_detail();
state._fsp--;
stream_table_detail.add(table_detail30.getTree());
}
break;
default:
break loop5;
}
} while (true);
// AST REWRITE
// elements: table_detail
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 109:50: -> ^( TABLE_DETAILS ( table_detail )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:53: ^( TABLE_DETAILS ( table_detail )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(TABLE_DETAILS, "TABLE_DETAILS"), root_1);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:109:69: ( table_detail )*
while (stream_table_detail.hasNext()) {
adaptor.addChild(root_1, stream_table_detail.nextTree());
}
stream_table_detail.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "table_details"
/**
* The type Table detail return.
*/
public static class table_detail_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Table detail sql parser . table detail return.
*
* @return the sql parser . table detail return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "table_detail"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:110:1: table_detail : ( column_spec | inline_constraint );
public final SQLParser.table_detail_return table_detail() throws RecognitionException {
SQLParser.table_detail_return retval = new SQLParser.table_detail_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.column_spec_return column_spec31 = null;
SQLParser.inline_constraint_return inline_constraint32 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:110:14: ( column_spec | inline_constraint )
int alt6 = 2;
switch (input.LA(1)) {
case IDENTIFIER:
case QUOTED_NAME:
case DEFAULT:
case COMMENT:
case IS:
case 63:
case 66:
case 75:
case 77:
case 78:
case 79:
case 80:
case 81:
case 87:
case 91:
case 99:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 122:
case 123:
case 124:
case 130:
case 134:
case 136:
case 138: {
alt6 = 1;
}
break;
case PRIMARY: {
int LA6_2 = input.LA(2);
if ((LA6_2 == 75)) {
alt6 = 2;
} else if (((LA6_2 >= ROWID && LA6_2 <= NVARCHAR2) || (LA6_2 >= CHAR && LA6_2 <= TIMESTAMP) || (LA6_2 >= 70 && LA6_2 <= 73))) {
alt6 = 1;
} else {
NoViableAltException nvae =
new NoViableAltException("", 6, 2, input);
throw nvae;
}
}
break;
case 74: {
alt6 = 2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:110:16: column_spec
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_column_spec_in_table_detail259);
column_spec31 = column_spec();
state._fsp--;
adaptor.addChild(root_0, column_spec31.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:110:30: inline_constraint
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_inline_constraint_in_table_detail263);
inline_constraint32 = inline_constraint();
state._fsp--;
adaptor.addChild(root_0, inline_constraint32.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "table_detail"
/**
* The type Column spec return.
*/
public static class column_spec_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Column spec sql parser . column spec return.
*
* @return the sql parser . column spec return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "column_spec"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:1: column_spec : name type ( size )? ( column_detail )* -> ^( COLUMN_SPEC name type ( size )? ( column_detail )* ) ;
public final SQLParser.column_spec_return column_spec() throws RecognitionException {
SQLParser.column_spec_return retval = new SQLParser.column_spec_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.name_return name33 = null;
SQLParser.type_return type34 = null;
SQLParser.size_return size35 = null;
SQLParser.column_detail_return column_detail36 = null;
RewriteRuleSubtreeStream stream_column_detail = new RewriteRuleSubtreeStream(adaptor, "rule column_detail");
RewriteRuleSubtreeStream stream_name = new RewriteRuleSubtreeStream(adaptor, "rule name");
RewriteRuleSubtreeStream stream_type = new RewriteRuleSubtreeStream(adaptor, "rule type");
RewriteRuleSubtreeStream stream_size = new RewriteRuleSubtreeStream(adaptor, "rule size");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:13: ( name type ( size )? ( column_detail )* -> ^( COLUMN_SPEC name type ( size )? ( column_detail )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:15: name type ( size )? ( column_detail )*
{
pushFollow(FOLLOW_name_in_column_spec270);
name33 = name();
state._fsp--;
stream_name.add(name33.getTree());
pushFollow(FOLLOW_type_in_column_spec272);
type34 = type();
state._fsp--;
stream_type.add(type34.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:25: ( size )?
int alt7 = 2;
int LA7_0 = input.LA(1);
if ((LA7_0 == 67)) {
alt7 = 1;
}
switch (alt7) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:25: size
{
pushFollow(FOLLOW_size_in_column_spec274);
size35 = size();
state._fsp--;
stream_size.add(size35.getTree());
}
break;
}
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:31: ( column_detail )*
loop8:
do {
int alt8 = 2;
int LA8_0 = input.LA(1);
if ((LA8_0 == NOT || LA8_0 == DEFAULT || LA8_0 == NULL)) {
alt8 = 1;
}
switch (alt8) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:31: column_detail
{
pushFollow(FOLLOW_column_detail_in_column_spec277);
column_detail36 = column_detail();
state._fsp--;
stream_column_detail.add(column_detail36.getTree());
}
break;
default:
break loop8;
}
} while (true);
// AST REWRITE
// elements: column_detail, name, type, size
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 111:46: -> ^( COLUMN_SPEC name type ( size )? ( column_detail )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:49: ^( COLUMN_SPEC name type ( size )? ( column_detail )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(COLUMN_SPEC, "COLUMN_SPEC"), root_1);
adaptor.addChild(root_1, stream_name.nextTree());
adaptor.addChild(root_1, stream_type.nextTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:73: ( size )?
if (stream_size.hasNext()) {
adaptor.addChild(root_1, stream_size.nextTree());
}
stream_size.reset();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:111:79: ( column_detail )*
while (stream_column_detail.hasNext()) {
adaptor.addChild(root_1, stream_column_detail.nextTree());
}
stream_column_detail.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "column_spec"
/**
* The type Type return.
*/
public static class type_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Type sql parser . type return.
*
* @return the sql parser . type return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "type"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:112:1: type : ( 'NUMBER' | 'VARCHAR2' | 'NVARCHAR2' | 'CHAR' | 'NCHAR2' | 'TIMESTAMP' | 'DATE' | 'BLOB' | 'CLOB' | 'NCLOB' | 'ROWID' );
public final SQLParser.type_return type() throws RecognitionException {
SQLParser.type_return retval = new SQLParser.type_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set37 = null;
Object set37_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:112:6: ( 'NUMBER' | 'VARCHAR2' | 'NVARCHAR2' | 'CHAR' | 'NCHAR2' | 'TIMESTAMP' | 'DATE' | 'BLOB' | 'CLOB' | 'NCLOB' | 'ROWID' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:
{
root_0 = (Object) adaptor.nil();
set37 = (Token) input.LT(1);
if ((input.LA(1) >= ROWID && input.LA(1) <= NVARCHAR2) || (input.LA(1) >= CHAR && input.LA(1) <= TIMESTAMP) ||
(input.LA(1) >= 70 && input.LA(1) <= 73)) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set37));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "type"
/**
* The type Size return.
*/
public static class size_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Size sql parser . size return.
*
* @return the sql parser . size return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "size"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:1: size : '(' INT ( size_uom )? ( fractionDigits )? ')' -> ^( SIZE INT ( size_uom )? ( fractionDigits )? ) ;
public final SQLParser.size_return size() throws RecognitionException {
SQLParser.size_return retval = new SQLParser.size_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal38 = null;
Token INT39 = null;
Token char_literal42 = null;
SQLParser.size_uom_return size_uom40 = null;
SQLParser.fractionDigits_return fractionDigits41 = null;
Object char_literal38_tree = null;
Object INT39_tree = null;
Object char_literal42_tree = null;
RewriteRuleTokenStream stream_67 = new RewriteRuleTokenStream(adaptor, "token 67");
RewriteRuleTokenStream stream_68 = new RewriteRuleTokenStream(adaptor, "token 68");
RewriteRuleTokenStream stream_INT = new RewriteRuleTokenStream(adaptor, "token INT");
RewriteRuleSubtreeStream stream_fractionDigits = new RewriteRuleSubtreeStream(adaptor, "rule fractionDigits");
RewriteRuleSubtreeStream stream_size_uom = new RewriteRuleSubtreeStream(adaptor, "rule size_uom");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:7: ( '(' INT ( size_uom )? ( fractionDigits )? ')' -> ^( SIZE INT ( size_uom )? ( fractionDigits )? ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:9: '(' INT ( size_uom )? ( fractionDigits )? ')'
{
char_literal38 = (Token) match(input, 67, FOLLOW_67_in_size370);
stream_67.add(char_literal38);
INT39 = (Token) match(input, INT, FOLLOW_INT_in_size372);
stream_INT.add(INT39);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:17: ( size_uom )?
int alt9 = 2;
int LA9_0 = input.LA(1);
if (((LA9_0 >= BYTE && LA9_0 <= CHAR))) {
alt9 = 1;
}
switch (alt9) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:17: size_uom
{
pushFollow(FOLLOW_size_uom_in_size374);
size_uom40 = size_uom();
state._fsp--;
stream_size_uom.add(size_uom40.getTree());
}
break;
}
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:27: ( fractionDigits )?
int alt10 = 2;
int LA10_0 = input.LA(1);
if ((LA10_0 == 69)) {
alt10 = 1;
}
switch (alt10) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:27: fractionDigits
{
pushFollow(FOLLOW_fractionDigits_in_size377);
fractionDigits41 = fractionDigits();
state._fsp--;
stream_fractionDigits.add(fractionDigits41.getTree());
}
break;
}
char_literal42 = (Token) match(input, 68, FOLLOW_68_in_size380);
stream_68.add(char_literal42);
// AST REWRITE
// elements: fractionDigits, INT, size_uom
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 124:47: -> ^( SIZE INT ( size_uom )? ( fractionDigits )? )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:50: ^( SIZE INT ( size_uom )? ( fractionDigits )? )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(SIZE, "SIZE"), root_1);
adaptor.addChild(root_1, stream_INT.nextNode());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:61: ( size_uom )?
if (stream_size_uom.hasNext()) {
adaptor.addChild(root_1, stream_size_uom.nextTree());
}
stream_size_uom.reset();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:124:71: ( fractionDigits )?
if (stream_fractionDigits.hasNext()) {
adaptor.addChild(root_1, stream_fractionDigits.nextTree());
}
stream_fractionDigits.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "size"
/**
* The type Fraction digits return.
*/
public static class fractionDigits_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Fraction digits sql parser . fraction digits return.
*
* @return the sql parser . fraction digits return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "fractionDigits"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:125:1: fractionDigits : ',' INT ;
public final SQLParser.fractionDigits_return fractionDigits() throws RecognitionException {
SQLParser.fractionDigits_return retval = new SQLParser.fractionDigits_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal43 = null;
Token INT44 = null;
Object char_literal43_tree = null;
Object INT44_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:125:16: ( ',' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:125:18: ',' INT
{
root_0 = (Object) adaptor.nil();
char_literal43 = (Token) match(input, 69, FOLLOW_69_in_fractionDigits401);
INT44 = (Token) match(input, INT, FOLLOW_INT_in_fractionDigits404);
INT44_tree = (Object) adaptor.create(INT44);
adaptor.addChild(root_0, INT44_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "fractionDigits"
/**
* The type Size uom return.
*/
public static class size_uom_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Size uom sql parser . size uom return.
*
* @return the sql parser . size uom return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "size_uom"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:126:1: size_uom : ( 'BYTE' | 'CHAR' );
public final SQLParser.size_uom_return size_uom() throws RecognitionException {
SQLParser.size_uom_return retval = new SQLParser.size_uom_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set45 = null;
Object set45_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:126:10: ( 'BYTE' | 'CHAR' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:
{
root_0 = (Object) adaptor.nil();
set45 = (Token) input.LT(1);
if ((input.LA(1) >= BYTE && input.LA(1) <= CHAR)) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set45));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "size_uom"
/**
* The type Column detail return.
*/
public static class column_detail_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Column detail sql parser . column detail return.
*
* @return the sql parser . column detail return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "column_detail"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:127:1: column_detail : ( nullability | default_value );
public final SQLParser.column_detail_return column_detail() throws RecognitionException {
SQLParser.column_detail_return retval = new SQLParser.column_detail_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.nullability_return nullability46 = null;
SQLParser.default_value_return default_value47 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:127:15: ( nullability | default_value )
int alt11 = 2;
int LA11_0 = input.LA(1);
if ((LA11_0 == NOT || LA11_0 == NULL)) {
alt11 = 1;
} else if ((LA11_0 == DEFAULT)) {
alt11 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 11, 0, input);
throw nvae;
}
switch (alt11) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:127:17: nullability
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_nullability_in_column_detail422);
nullability46 = nullability();
state._fsp--;
adaptor.addChild(root_0, nullability46.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:127:31: default_value
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_default_value_in_column_detail426);
default_value47 = default_value();
state._fsp--;
adaptor.addChild(root_0, default_value47.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "column_detail"
/**
* The type Nullability return.
*/
public static class nullability_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Nullability sql parser . nullability return.
*
* @return the sql parser . nullability return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "nullability"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:128:1: nullability : ( NOT )? 'NULL' ;
public final SQLParser.nullability_return nullability() throws RecognitionException {
SQLParser.nullability_return retval = new SQLParser.nullability_return();
retval.start = input.LT(1);
Object root_0 = null;
Token NOT48 = null;
Token string_literal49 = null;
Object NOT48_tree = null;
Object string_literal49_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:128:13: ( ( NOT )? 'NULL' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:128:15: ( NOT )? 'NULL'
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:128:18: ( NOT )?
int alt12 = 2;
int LA12_0 = input.LA(1);
if ((LA12_0 == NOT)) {
alt12 = 1;
}
switch (alt12) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:128:18: NOT
{
NOT48 = (Token) match(input, NOT, FOLLOW_NOT_in_nullability433);
NOT48_tree = (Object) adaptor.create(NOT48);
root_0 = (Object) adaptor.becomeRoot(NOT48_tree, root_0);
}
break;
}
string_literal49 = (Token) match(input, NULL, FOLLOW_NULL_in_nullability437);
string_literal49_tree = (Object) adaptor.create(string_literal49);
adaptor.addChild(root_0, string_literal49_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "nullability"
/**
* The type Default value return.
*/
public static class default_value_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Default value sql parser . default value return.
*
* @return the sql parser . default value return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "default_value"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:129:1: default_value : 'DEFAULT' value ;
public final SQLParser.default_value_return default_value() throws RecognitionException {
SQLParser.default_value_return retval = new SQLParser.default_value_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal50 = null;
SQLParser.value_return value51 = null;
Object string_literal50_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:129:15: ( 'DEFAULT' value )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:129:17: 'DEFAULT' value
{
root_0 = (Object) adaptor.nil();
string_literal50 = (Token) match(input, DEFAULT, FOLLOW_DEFAULT_in_default_value444);
string_literal50_tree = (Object) adaptor.create(string_literal50);
root_0 = (Object) adaptor.becomeRoot(string_literal50_tree, root_0);
pushFollow(FOLLOW_value_in_default_value447);
value51 = value();
state._fsp--;
adaptor.addChild(root_0, value51.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "default_value"
/**
* The type Inline constraint return.
*/
public static class inline_constraint_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Inline constraint sql parser . inline constraint return.
*
* @return the sql parser . inline constraint return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "inline_constraint"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:131:1: inline_constraint : ( 'CONSTRAINT' name )? 'PRIMARY' 'KEY' '(' name_list ')' ;
public final SQLParser.inline_constraint_return inline_constraint() throws RecognitionException {
SQLParser.inline_constraint_return retval = new SQLParser.inline_constraint_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal52 = null;
Token string_literal54 = null;
Token string_literal55 = null;
Token char_literal56 = null;
Token char_literal58 = null;
SQLParser.name_return name53 = null;
SQLParser.name_list_return name_list57 = null;
Object string_literal52_tree = null;
Object string_literal54_tree = null;
Object string_literal55_tree = null;
Object char_literal56_tree = null;
Object char_literal58_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:131:18: ( ( 'CONSTRAINT' name )? 'PRIMARY' 'KEY' '(' name_list ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:131:20: ( 'CONSTRAINT' name )? 'PRIMARY' 'KEY' '(' name_list ')'
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:131:20: ( 'CONSTRAINT' name )?
int alt13 = 2;
int LA13_0 = input.LA(1);
if ((LA13_0 == 74)) {
alt13 = 1;
}
switch (alt13) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:131:21: 'CONSTRAINT' name
{
string_literal52 = (Token) match(input, 74, FOLLOW_74_in_inline_constraint455);
pushFollow(FOLLOW_name_in_inline_constraint458);
name53 = name();
state._fsp--;
adaptor.addChild(root_0, name53.getTree());
}
break;
}
string_literal54 = (Token) match(input, PRIMARY, FOLLOW_PRIMARY_in_inline_constraint462);
string_literal54_tree = (Object) adaptor.create(string_literal54);
root_0 = (Object) adaptor.becomeRoot(string_literal54_tree, root_0);
string_literal55 = (Token) match(input, 75, FOLLOW_75_in_inline_constraint465);
char_literal56 = (Token) match(input, 67, FOLLOW_67_in_inline_constraint468);
pushFollow(FOLLOW_name_list_in_inline_constraint471);
name_list57 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list57.getTree());
char_literal58 = (Token) match(input, 68, FOLLOW_68_in_inline_constraint473);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "inline_constraint"
/**
* The type Ora configs return.
*/
public static class ora_configs_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora configs sql parser . ora configs return.
*
* @return the sql parser . ora configs return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_configs"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:1: ora_configs : ( ora_config )* -> ^( ORA_CONFIGS ( ora_config )* ) ;
public final SQLParser.ora_configs_return ora_configs() throws RecognitionException {
SQLParser.ora_configs_return retval = new SQLParser.ora_configs_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.ora_config_return ora_config59 = null;
RewriteRuleSubtreeStream stream_ora_config = new RewriteRuleSubtreeStream(adaptor, "rule ora_config");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:13: ( ( ora_config )* -> ^( ORA_CONFIGS ( ora_config )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:15: ( ora_config )*
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:15: ( ora_config )*
loop14:
do {
int alt14 = 2;
int LA14_0 = input.LA(1);
if (((LA14_0 >= 76 && LA14_0 <= 83) || (LA14_0 >= 86 && LA14_0 <= 87) || LA14_0 == 91 || LA14_0 == 98 ||
(LA14_0 >= 110 && LA14_0 <= 118))) {
alt14 = 1;
}
switch (alt14) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:15: ora_config
{
pushFollow(FOLLOW_ora_config_in_ora_configs483);
ora_config59 = ora_config();
state._fsp--;
stream_ora_config.add(ora_config59.getTree());
}
break;
default:
break loop14;
}
} while (true);
// AST REWRITE
// elements: ora_config
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 133:27: -> ^( ORA_CONFIGS ( ora_config )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:30: ^( ORA_CONFIGS ( ora_config )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(ORA_CONFIGS, "ORA_CONFIGS"), root_1);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:133:44: ( ora_config )*
while (stream_ora_config.hasNext()) {
adaptor.addChild(root_1, stream_ora_config.nextTree());
}
stream_ora_config.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_configs"
/**
* The type Ora config return.
*/
public static class ora_config_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora config sql parser . ora config return.
*
* @return the sql parser . ora config return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_config"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:134:1: ora_config : ( ( 'ORGANIZATION' name ) | ( 'TABLESPACE' name ) | ( 'PCTUSED' INT ) | ( 'PCTFREE' INT ) | ( 'INITRANS' INT ) | ( 'MAXTRANS' INT ) | ( 'COMPRESS' INT ) | ora_storage_spec | ora_partition_spec | ora_flag | ora_lob | ( 'ENABLE' 'ROW' 'MOVEMENT' ) | ( 'DISABLE' 'ROW' 'MOVEMENT' ) | ( 'ON' 'COMMIT' 'DELETE' 'ROWS' ) );
public final SQLParser.ora_config_return ora_config() throws RecognitionException {
SQLParser.ora_config_return retval = new SQLParser.ora_config_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal60 = null;
Token string_literal62 = null;
Token string_literal64 = null;
Token INT65 = null;
Token string_literal66 = null;
Token INT67 = null;
Token string_literal68 = null;
Token INT69 = null;
Token string_literal70 = null;
Token INT71 = null;
Token string_literal72 = null;
Token INT73 = null;
Token string_literal78 = null;
Token string_literal79 = null;
Token string_literal80 = null;
Token string_literal81 = null;
Token string_literal82 = null;
Token string_literal83 = null;
Token string_literal84 = null;
Token string_literal85 = null;
Token string_literal86 = null;
Token string_literal87 = null;
SQLParser.name_return name61 = null;
SQLParser.name_return name63 = null;
SQLParser.ora_storage_spec_return ora_storage_spec74 = null;
SQLParser.ora_partition_spec_return ora_partition_spec75 = null;
SQLParser.ora_flag_return ora_flag76 = null;
SQLParser.ora_lob_return ora_lob77 = null;
Object string_literal60_tree = null;
Object string_literal62_tree = null;
Object string_literal64_tree = null;
Object INT65_tree = null;
Object string_literal66_tree = null;
Object INT67_tree = null;
Object string_literal68_tree = null;
Object INT69_tree = null;
Object string_literal70_tree = null;
Object INT71_tree = null;
Object string_literal72_tree = null;
Object INT73_tree = null;
Object string_literal78_tree = null;
Object string_literal79_tree = null;
Object string_literal80_tree = null;
Object string_literal81_tree = null;
Object string_literal82_tree = null;
Object string_literal83_tree = null;
Object string_literal84_tree = null;
Object string_literal85_tree = null;
Object string_literal86_tree = null;
Object string_literal87_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:135:2: ( ( 'ORGANIZATION' name ) | ( 'TABLESPACE' name ) | ( 'PCTUSED' INT ) | ( 'PCTFREE' INT ) | ( 'INITRANS' INT ) | ( 'MAXTRANS' INT ) | ( 'COMPRESS' INT ) | ora_storage_spec | ora_partition_spec | ora_flag | ora_lob | ( 'ENABLE' 'ROW' 'MOVEMENT' ) | ( 'DISABLE' 'ROW' 'MOVEMENT' ) | ( 'ON' 'COMMIT' 'DELETE' 'ROWS' ) )
int alt15 = 14;
switch (input.LA(1)) {
case 76: {
alt15 = 1;
}
break;
case 77: {
alt15 = 2;
}
break;
case 78: {
alt15 = 3;
}
break;
case 79: {
alt15 = 4;
}
break;
case 80: {
alt15 = 5;
}
break;
case 81: {
alt15 = 6;
}
break;
case 82: {
alt15 = 7;
}
break;
case 91: {
alt15 = 8;
}
break;
case 98: {
alt15 = 9;
}
break;
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117: {
alt15 = 10;
}
break;
case 118: {
alt15 = 11;
}
break;
case 83: {
alt15 = 12;
}
break;
case 86: {
alt15 = 13;
}
break;
case 87: {
alt15 = 14;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 15, 0, input);
throw nvae;
}
switch (alt15) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:135:4: ( 'ORGANIZATION' name )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:135:4: ( 'ORGANIZATION' name )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:135:5: 'ORGANIZATION' name
{
string_literal60 = (Token) match(input, 76, FOLLOW_76_in_ora_config502);
string_literal60_tree = (Object) adaptor.create(string_literal60);
root_0 = (Object) adaptor.becomeRoot(string_literal60_tree, root_0);
pushFollow(FOLLOW_name_in_ora_config505);
name61 = name();
state._fsp--;
adaptor.addChild(root_0, name61.getTree());
}
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:136:4: ( 'TABLESPACE' name )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:136:4: ( 'TABLESPACE' name )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:136:5: 'TABLESPACE' name
{
string_literal62 = (Token) match(input, 77, FOLLOW_77_in_ora_config512);
string_literal62_tree = (Object) adaptor.create(string_literal62);
root_0 = (Object) adaptor.becomeRoot(string_literal62_tree, root_0);
pushFollow(FOLLOW_name_in_ora_config515);
name63 = name();
state._fsp--;
adaptor.addChild(root_0, name63.getTree());
}
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:137:4: ( 'PCTUSED' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:137:4: ( 'PCTUSED' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:137:5: 'PCTUSED' INT
{
string_literal64 = (Token) match(input, 78, FOLLOW_78_in_ora_config522);
string_literal64_tree = (Object) adaptor.create(string_literal64);
root_0 = (Object) adaptor.becomeRoot(string_literal64_tree, root_0);
INT65 = (Token) match(input, INT, FOLLOW_INT_in_ora_config525);
INT65_tree = (Object) adaptor.create(INT65);
adaptor.addChild(root_0, INT65_tree);
}
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:138:4: ( 'PCTFREE' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:138:4: ( 'PCTFREE' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:138:5: 'PCTFREE' INT
{
string_literal66 = (Token) match(input, 79, FOLLOW_79_in_ora_config532);
string_literal66_tree = (Object) adaptor.create(string_literal66);
root_0 = (Object) adaptor.becomeRoot(string_literal66_tree, root_0);
INT67 = (Token) match(input, INT, FOLLOW_INT_in_ora_config535);
INT67_tree = (Object) adaptor.create(INT67);
adaptor.addChild(root_0, INT67_tree);
}
}
break;
case 5:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:139:4: ( 'INITRANS' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:139:4: ( 'INITRANS' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:139:5: 'INITRANS' INT
{
string_literal68 = (Token) match(input, 80, FOLLOW_80_in_ora_config542);
string_literal68_tree = (Object) adaptor.create(string_literal68);
root_0 = (Object) adaptor.becomeRoot(string_literal68_tree, root_0);
INT69 = (Token) match(input, INT, FOLLOW_INT_in_ora_config545);
INT69_tree = (Object) adaptor.create(INT69);
adaptor.addChild(root_0, INT69_tree);
}
}
break;
case 6:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:140:4: ( 'MAXTRANS' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:140:4: ( 'MAXTRANS' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:140:5: 'MAXTRANS' INT
{
string_literal70 = (Token) match(input, 81, FOLLOW_81_in_ora_config552);
string_literal70_tree = (Object) adaptor.create(string_literal70);
root_0 = (Object) adaptor.becomeRoot(string_literal70_tree, root_0);
INT71 = (Token) match(input, INT, FOLLOW_INT_in_ora_config555);
INT71_tree = (Object) adaptor.create(INT71);
adaptor.addChild(root_0, INT71_tree);
}
}
break;
case 7:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:141:4: ( 'COMPRESS' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:141:4: ( 'COMPRESS' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:141:5: 'COMPRESS' INT
{
string_literal72 = (Token) match(input, 82, FOLLOW_82_in_ora_config562);
string_literal72_tree = (Object) adaptor.create(string_literal72);
root_0 = (Object) adaptor.becomeRoot(string_literal72_tree, root_0);
INT73 = (Token) match(input, INT, FOLLOW_INT_in_ora_config565);
INT73_tree = (Object) adaptor.create(INT73);
adaptor.addChild(root_0, INT73_tree);
}
}
break;
case 8:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:142:4: ora_storage_spec
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_storage_spec_in_ora_config571);
ora_storage_spec74 = ora_storage_spec();
state._fsp--;
adaptor.addChild(root_0, ora_storage_spec74.getTree());
}
break;
case 9:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:143:4: ora_partition_spec
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_partition_spec_in_ora_config576);
ora_partition_spec75 = ora_partition_spec();
state._fsp--;
adaptor.addChild(root_0, ora_partition_spec75.getTree());
}
break;
case 10:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:144:4: ora_flag
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_flag_in_ora_config581);
ora_flag76 = ora_flag();
state._fsp--;
adaptor.addChild(root_0, ora_flag76.getTree());
}
break;
case 11:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:145:4: ora_lob
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_lob_in_ora_config586);
ora_lob77 = ora_lob();
state._fsp--;
adaptor.addChild(root_0, ora_lob77.getTree());
}
break;
case 12:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:146:4: ( 'ENABLE' 'ROW' 'MOVEMENT' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:146:4: ( 'ENABLE' 'ROW' 'MOVEMENT' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:146:5: 'ENABLE' 'ROW' 'MOVEMENT'
{
string_literal78 = (Token) match(input, 83, FOLLOW_83_in_ora_config592);
string_literal78_tree = (Object) adaptor.create(string_literal78);
adaptor.addChild(root_0, string_literal78_tree);
string_literal79 = (Token) match(input, 84, FOLLOW_84_in_ora_config594);
string_literal79_tree = (Object) adaptor.create(string_literal79);
root_0 = (Object) adaptor.becomeRoot(string_literal79_tree, root_0);
string_literal80 = (Token) match(input, 85, FOLLOW_85_in_ora_config597);
}
}
break;
case 13:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:147:4: ( 'DISABLE' 'ROW' 'MOVEMENT' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:147:4: ( 'DISABLE' 'ROW' 'MOVEMENT' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:147:5: 'DISABLE' 'ROW' 'MOVEMENT'
{
string_literal81 = (Token) match(input, 86, FOLLOW_86_in_ora_config605);
string_literal81_tree = (Object) adaptor.create(string_literal81);
adaptor.addChild(root_0, string_literal81_tree);
string_literal82 = (Token) match(input, 84, FOLLOW_84_in_ora_config607);
string_literal82_tree = (Object) adaptor.create(string_literal82);
root_0 = (Object) adaptor.becomeRoot(string_literal82_tree, root_0);
string_literal83 = (Token) match(input, 85, FOLLOW_85_in_ora_config610);
}
}
break;
case 14:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:148:4: ( 'ON' 'COMMIT' 'DELETE' 'ROWS' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:148:4: ( 'ON' 'COMMIT' 'DELETE' 'ROWS' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:148:5: 'ON' 'COMMIT' 'DELETE' 'ROWS'
{
string_literal84 = (Token) match(input, 87, FOLLOW_87_in_ora_config618);
string_literal84_tree = (Object) adaptor.create(string_literal84);
adaptor.addChild(root_0, string_literal84_tree);
string_literal85 = (Token) match(input, 88, FOLLOW_88_in_ora_config620);
string_literal85_tree = (Object) adaptor.create(string_literal85);
adaptor.addChild(root_0, string_literal85_tree);
string_literal86 = (Token) match(input, 89, FOLLOW_89_in_ora_config622);
string_literal86_tree = (Object) adaptor.create(string_literal86);
adaptor.addChild(root_0, string_literal86_tree);
string_literal87 = (Token) match(input, 90, FOLLOW_90_in_ora_config624);
string_literal87_tree = (Object) adaptor.create(string_literal87);
adaptor.addChild(root_0, string_literal87_tree);
}
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_config"
/**
* The type Ora key return.
*/
public static class ora_key_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora key sql parser . ora key return.
*
* @return the sql parser . ora key return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_key"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:1: ora_key : ( 'TABLESPACE' | 'PCTUSED' | 'PCTFREE' | 'INITRANS' | 'MAXTRANS' | 'STORAGE' | ora_flag );
public final SQLParser.ora_key_return ora_key() throws RecognitionException {
SQLParser.ora_key_return retval = new SQLParser.ora_key_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal88 = null;
Token string_literal89 = null;
Token string_literal90 = null;
Token string_literal91 = null;
Token string_literal92 = null;
Token string_literal93 = null;
SQLParser.ora_flag_return ora_flag94 = null;
Object string_literal88_tree = null;
Object string_literal89_tree = null;
Object string_literal90_tree = null;
Object string_literal91_tree = null;
Object string_literal92_tree = null;
Object string_literal93_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:10: ( 'TABLESPACE' | 'PCTUSED' | 'PCTFREE' | 'INITRANS' | 'MAXTRANS' | 'STORAGE' | ora_flag )
int alt16 = 7;
switch (input.LA(1)) {
case 77: {
alt16 = 1;
}
break;
case 78: {
alt16 = 2;
}
break;
case 79: {
alt16 = 3;
}
break;
case 80: {
alt16 = 4;
}
break;
case 81: {
alt16 = 5;
}
break;
case 91: {
alt16 = 6;
}
break;
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117: {
alt16 = 7;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 16, 0, input);
throw nvae;
}
switch (alt16) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:12: 'TABLESPACE'
{
root_0 = (Object) adaptor.nil();
string_literal88 = (Token) match(input, 77, FOLLOW_77_in_ora_key636);
string_literal88_tree = (Object) adaptor.create(string_literal88);
adaptor.addChild(root_0, string_literal88_tree);
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:27: 'PCTUSED'
{
root_0 = (Object) adaptor.nil();
string_literal89 = (Token) match(input, 78, FOLLOW_78_in_ora_key640);
string_literal89_tree = (Object) adaptor.create(string_literal89);
adaptor.addChild(root_0, string_literal89_tree);
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:39: 'PCTFREE'
{
root_0 = (Object) adaptor.nil();
string_literal90 = (Token) match(input, 79, FOLLOW_79_in_ora_key644);
string_literal90_tree = (Object) adaptor.create(string_literal90);
adaptor.addChild(root_0, string_literal90_tree);
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:51: 'INITRANS'
{
root_0 = (Object) adaptor.nil();
string_literal91 = (Token) match(input, 80, FOLLOW_80_in_ora_key648);
string_literal91_tree = (Object) adaptor.create(string_literal91);
adaptor.addChild(root_0, string_literal91_tree);
}
break;
case 5:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:64: 'MAXTRANS'
{
root_0 = (Object) adaptor.nil();
string_literal92 = (Token) match(input, 81, FOLLOW_81_in_ora_key652);
string_literal92_tree = (Object) adaptor.create(string_literal92);
adaptor.addChild(root_0, string_literal92_tree);
}
break;
case 6:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:77: 'STORAGE'
{
root_0 = (Object) adaptor.nil();
string_literal93 = (Token) match(input, 91, FOLLOW_91_in_ora_key656);
string_literal93_tree = (Object) adaptor.create(string_literal93);
adaptor.addChild(root_0, string_literal93_tree);
}
break;
case 7:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:151:89: ora_flag
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_flag_in_ora_key660);
ora_flag94 = ora_flag();
state._fsp--;
adaptor.addChild(root_0, ora_flag94.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_key"
/**
* The type Ora storage spec return.
*/
public static class ora_storage_spec_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora storage spec sql parser . ora storage spec return.
*
* @return the sql parser . ora storage spec return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_storage_spec"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:152:1: ora_storage_spec : 'STORAGE' '(' ( ora_storage_opt )* ')' ;
public final SQLParser.ora_storage_spec_return ora_storage_spec() throws RecognitionException {
SQLParser.ora_storage_spec_return retval = new SQLParser.ora_storage_spec_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal95 = null;
Token char_literal96 = null;
Token char_literal98 = null;
SQLParser.ora_storage_opt_return ora_storage_opt97 = null;
Object string_literal95_tree = null;
Object char_literal96_tree = null;
Object char_literal98_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:152:18: ( 'STORAGE' '(' ( ora_storage_opt )* ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:152:20: 'STORAGE' '(' ( ora_storage_opt )* ')'
{
root_0 = (Object) adaptor.nil();
string_literal95 = (Token) match(input, 91, FOLLOW_91_in_ora_storage_spec667);
string_literal95_tree = (Object) adaptor.create(string_literal95);
root_0 = (Object) adaptor.becomeRoot(string_literal95_tree, root_0);
char_literal96 = (Token) match(input, 67, FOLLOW_67_in_ora_storage_spec670);
char_literal96_tree = (Object) adaptor.create(char_literal96);
adaptor.addChild(root_0, char_literal96_tree);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:152:35: ( ora_storage_opt )*
loop17:
do {
int alt17 = 2;
int LA17_0 = input.LA(1);
if (((LA17_0 >= 92 && LA17_0 <= 97))) {
alt17 = 1;
}
switch (alt17) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:152:35: ora_storage_opt
{
pushFollow(FOLLOW_ora_storage_opt_in_ora_storage_spec672);
ora_storage_opt97 = ora_storage_opt();
state._fsp--;
adaptor.addChild(root_0, ora_storage_opt97.getTree());
}
break;
default:
break loop17;
}
} while (true);
char_literal98 = (Token) match(input, 68, FOLLOW_68_in_ora_storage_spec675);
char_literal98_tree = (Object) adaptor.create(char_literal98);
adaptor.addChild(root_0, char_literal98_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_storage_spec"
/**
* The type Ora storage opt return.
*/
public static class ora_storage_opt_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora storage opt sql parser . ora storage opt return.
*
* @return the sql parser . ora storage opt return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_storage_opt"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:153:1: ora_storage_opt : ( ( 'INITIAL' INT IDENTIFIER ) | ( 'NEXT' INT ) | ( 'MINEXTENTS' INT ) | ( 'MAXEXTENTS' IDENTIFIER ) | ( 'PCTINCREASE' INT ) | ( 'BUFFER_POOL' name ) );
public final SQLParser.ora_storage_opt_return ora_storage_opt() throws RecognitionException {
SQLParser.ora_storage_opt_return retval = new SQLParser.ora_storage_opt_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal99 = null;
Token INT100 = null;
Token IDENTIFIER101 = null;
Token string_literal102 = null;
Token INT103 = null;
Token string_literal104 = null;
Token INT105 = null;
Token string_literal106 = null;
Token IDENTIFIER107 = null;
Token string_literal108 = null;
Token INT109 = null;
Token string_literal110 = null;
SQLParser.name_return name111 = null;
Object string_literal99_tree = null;
Object INT100_tree = null;
Object IDENTIFIER101_tree = null;
Object string_literal102_tree = null;
Object INT103_tree = null;
Object string_literal104_tree = null;
Object INT105_tree = null;
Object string_literal106_tree = null;
Object IDENTIFIER107_tree = null;
Object string_literal108_tree = null;
Object INT109_tree = null;
Object string_literal110_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:154:2: ( ( 'INITIAL' INT IDENTIFIER ) | ( 'NEXT' INT ) | ( 'MINEXTENTS' INT ) | ( 'MAXEXTENTS' IDENTIFIER ) | ( 'PCTINCREASE' INT ) | ( 'BUFFER_POOL' name ) )
int alt18 = 6;
switch (input.LA(1)) {
case 92: {
alt18 = 1;
}
break;
case 93: {
alt18 = 2;
}
break;
case 94: {
alt18 = 3;
}
break;
case 95: {
alt18 = 4;
}
break;
case 96: {
alt18 = 5;
}
break;
case 97: {
alt18 = 6;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:154:4: ( 'INITIAL' INT IDENTIFIER )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:154:4: ( 'INITIAL' INT IDENTIFIER )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:154:5: 'INITIAL' INT IDENTIFIER
{
string_literal99 = (Token) match(input, 92, FOLLOW_92_in_ora_storage_opt684);
string_literal99_tree = (Object) adaptor.create(string_literal99);
root_0 = (Object) adaptor.becomeRoot(string_literal99_tree, root_0);
INT100 = (Token) match(input, INT, FOLLOW_INT_in_ora_storage_opt691);
INT100_tree = (Object) adaptor.create(INT100);
adaptor.addChild(root_0, INT100_tree);
IDENTIFIER101 = (Token) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_ora_storage_opt693);
IDENTIFIER101_tree = (Object) adaptor.create(IDENTIFIER101);
adaptor.addChild(root_0, IDENTIFIER101_tree);
}
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:155:4: ( 'NEXT' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:155:4: ( 'NEXT' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:155:5: 'NEXT' INT
{
string_literal102 = (Token) match(input, 93, FOLLOW_93_in_ora_storage_opt700);
string_literal102_tree = (Object) adaptor.create(string_literal102);
root_0 = (Object) adaptor.becomeRoot(string_literal102_tree, root_0);
INT103 = (Token) match(input, INT, FOLLOW_INT_in_ora_storage_opt710);
INT103_tree = (Object) adaptor.create(INT103);
adaptor.addChild(root_0, INT103_tree);
}
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:156:4: ( 'MINEXTENTS' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:156:4: ( 'MINEXTENTS' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:156:5: 'MINEXTENTS' INT
{
string_literal104 = (Token) match(input, 94, FOLLOW_94_in_ora_storage_opt717);
string_literal104_tree = (Object) adaptor.create(string_literal104);
root_0 = (Object) adaptor.becomeRoot(string_literal104_tree, root_0);
INT105 = (Token) match(input, INT, FOLLOW_INT_in_ora_storage_opt721);
INT105_tree = (Object) adaptor.create(INT105);
adaptor.addChild(root_0, INT105_tree);
}
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:157:4: ( 'MAXEXTENTS' IDENTIFIER )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:157:4: ( 'MAXEXTENTS' IDENTIFIER )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:157:5: 'MAXEXTENTS' IDENTIFIER
{
string_literal106 = (Token) match(input, 95, FOLLOW_95_in_ora_storage_opt728);
string_literal106_tree = (Object) adaptor.create(string_literal106);
root_0 = (Object) adaptor.becomeRoot(string_literal106_tree, root_0);
IDENTIFIER107 = (Token) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_ora_storage_opt732);
IDENTIFIER107_tree = (Object) adaptor.create(IDENTIFIER107);
adaptor.addChild(root_0, IDENTIFIER107_tree);
}
}
break;
case 5:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:158:4: ( 'PCTINCREASE' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:158:4: ( 'PCTINCREASE' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:158:5: 'PCTINCREASE' INT
{
string_literal108 = (Token) match(input, 96, FOLLOW_96_in_ora_storage_opt739);
string_literal108_tree = (Object) adaptor.create(string_literal108);
root_0 = (Object) adaptor.becomeRoot(string_literal108_tree, root_0);
INT109 = (Token) match(input, INT, FOLLOW_INT_in_ora_storage_opt742);
INT109_tree = (Object) adaptor.create(INT109);
adaptor.addChild(root_0, INT109_tree);
}
}
break;
case 6:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:159:4: ( 'BUFFER_POOL' name )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:159:4: ( 'BUFFER_POOL' name )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:159:5: 'BUFFER_POOL' name
{
string_literal110 = (Token) match(input, 97, FOLLOW_97_in_ora_storage_opt749);
string_literal110_tree = (Object) adaptor.create(string_literal110);
root_0 = (Object) adaptor.becomeRoot(string_literal110_tree, root_0);
pushFollow(FOLLOW_name_in_ora_storage_opt752);
name111 = name();
state._fsp--;
adaptor.addChild(root_0, name111.getTree());
}
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_storage_opt"
/**
* The type Ora partition spec return.
*/
public static class ora_partition_spec_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora partition spec sql parser . ora partition spec return.
*
* @return the sql parser . ora partition spec return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_partition_spec"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:162:1: ora_partition_spec : 'PARTITION' 'BY' ( 'RANGE' | 'HASH' | 'LIST' ) '(' name ')' ( 'SUBPARTITION' 'BY' ( 'RANGE' | 'HASH' ) '(' name ')' )? partition_part_config ;
public final SQLParser.ora_partition_spec_return ora_partition_spec() throws RecognitionException {
SQLParser.ora_partition_spec_return retval = new SQLParser.ora_partition_spec_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal112 = null;
Token string_literal113 = null;
Token set114 = null;
Token char_literal115 = null;
Token char_literal117 = null;
Token string_literal118 = null;
Token string_literal119 = null;
Token set120 = null;
Token char_literal121 = null;
Token char_literal123 = null;
SQLParser.name_return name116 = null;
SQLParser.name_return name122 = null;
SQLParser.partition_part_config_return partition_part_config124 = null;
Object string_literal112_tree = null;
Object string_literal113_tree = null;
Object set114_tree = null;
Object char_literal115_tree = null;
Object char_literal117_tree = null;
Object string_literal118_tree = null;
Object string_literal119_tree = null;
Object set120_tree = null;
Object char_literal121_tree = null;
Object char_literal123_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:162:20: ( 'PARTITION' 'BY' ( 'RANGE' | 'HASH' | 'LIST' ) '(' name ')' ( 'SUBPARTITION' 'BY' ( 'RANGE' | 'HASH' ) '(' name ')' )? partition_part_config )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:162:22: 'PARTITION' 'BY' ( 'RANGE' | 'HASH' | 'LIST' ) '(' name ')' ( 'SUBPARTITION' 'BY' ( 'RANGE' | 'HASH' ) '(' name ')' )? partition_part_config
{
root_0 = (Object) adaptor.nil();
string_literal112 = (Token) match(input, 98, FOLLOW_98_in_ora_partition_spec764);
string_literal112_tree = (Object) adaptor.create(string_literal112);
root_0 = (Object) adaptor.becomeRoot(string_literal112_tree, root_0);
string_literal113 = (Token) match(input, 99, FOLLOW_99_in_ora_partition_spec767);
set114 = (Token) input.LT(1);
if ((input.LA(1) >= 100 && input.LA(1) <= 102)) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set114));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
char_literal115 = (Token) match(input, 67, FOLLOW_67_in_ora_partition_spec782);
pushFollow(FOLLOW_name_in_ora_partition_spec785);
name116 = name();
state._fsp--;
adaptor.addChild(root_0, name116.getTree());
char_literal117 = (Token) match(input, 68, FOLLOW_68_in_ora_partition_spec787);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:162:84: ( 'SUBPARTITION' 'BY' ( 'RANGE' | 'HASH' ) '(' name ')' )?
int alt19 = 2;
int LA19_0 = input.LA(1);
if ((LA19_0 == 103)) {
alt19 = 1;
}
switch (alt19) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:162:85: 'SUBPARTITION' 'BY' ( 'RANGE' | 'HASH' ) '(' name ')'
{
string_literal118 = (Token) match(input, 103, FOLLOW_103_in_ora_partition_spec791);
string_literal118_tree = (Object) adaptor.create(string_literal118);
adaptor.addChild(root_0, string_literal118_tree);
string_literal119 = (Token) match(input, 99, FOLLOW_99_in_ora_partition_spec793);
set120 = (Token) input.LT(1);
if ((input.LA(1) >= 100 && input.LA(1) <= 101)) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set120));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
char_literal121 = (Token) match(input, 67, FOLLOW_67_in_ora_partition_spec804);
pushFollow(FOLLOW_name_in_ora_partition_spec807);
name122 = name();
state._fsp--;
adaptor.addChild(root_0, name122.getTree());
char_literal123 = (Token) match(input, 68, FOLLOW_68_in_ora_partition_spec809);
}
break;
}
pushFollow(FOLLOW_partition_part_config_in_ora_partition_spec814);
partition_part_config124 = partition_part_config();
state._fsp--;
adaptor.addChild(root_0, partition_part_config124.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_partition_spec"
/**
* The type Partition part config return.
*/
public static class partition_part_config_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Partition part config sql parser . partition part config return.
*
* @return the sql parser . partition part config return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "partition_part_config"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:163:1: partition_part_config : ( '(' partition_parts ')' | 'PARTITIONS' INT 'STORE' 'IN' '(' name_list ')' );
public final SQLParser.partition_part_config_return partition_part_config() throws RecognitionException {
SQLParser.partition_part_config_return retval = new SQLParser.partition_part_config_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal125 = null;
Token char_literal127 = null;
Token string_literal128 = null;
Token INT129 = null;
Token string_literal130 = null;
Token string_literal131 = null;
Token char_literal132 = null;
Token char_literal134 = null;
SQLParser.partition_parts_return partition_parts126 = null;
SQLParser.name_list_return name_list133 = null;
Object char_literal125_tree = null;
Object char_literal127_tree = null;
Object string_literal128_tree = null;
Object INT129_tree = null;
Object string_literal130_tree = null;
Object string_literal131_tree = null;
Object char_literal132_tree = null;
Object char_literal134_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:163:23: ( '(' partition_parts ')' | 'PARTITIONS' INT 'STORE' 'IN' '(' name_list ')' )
int alt20 = 2;
int LA20_0 = input.LA(1);
if ((LA20_0 == 67)) {
alt20 = 1;
} else if ((LA20_0 == 104)) {
alt20 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 20, 0, input);
throw nvae;
}
switch (alt20) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:163:25: '(' partition_parts ')'
{
root_0 = (Object) adaptor.nil();
char_literal125 = (Token) match(input, 67, FOLLOW_67_in_partition_part_config821);
pushFollow(FOLLOW_partition_parts_in_partition_part_config824);
partition_parts126 = partition_parts();
state._fsp--;
adaptor.addChild(root_0, partition_parts126.getTree());
char_literal127 = (Token) match(input, 68, FOLLOW_68_in_partition_part_config826);
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:164:6: 'PARTITIONS' INT 'STORE' 'IN' '(' name_list ')'
{
root_0 = (Object) adaptor.nil();
string_literal128 = (Token) match(input, 104, FOLLOW_104_in_partition_part_config834);
string_literal128_tree = (Object) adaptor.create(string_literal128);
adaptor.addChild(root_0, string_literal128_tree);
INT129 = (Token) match(input, INT, FOLLOW_INT_in_partition_part_config836);
INT129_tree = (Object) adaptor.create(INT129);
adaptor.addChild(root_0, INT129_tree);
string_literal130 = (Token) match(input, 105, FOLLOW_105_in_partition_part_config838);
string_literal130_tree = (Object) adaptor.create(string_literal130);
adaptor.addChild(root_0, string_literal130_tree);
string_literal131 = (Token) match(input, IN, FOLLOW_IN_in_partition_part_config840);
string_literal131_tree = (Object) adaptor.create(string_literal131);
adaptor.addChild(root_0, string_literal131_tree);
char_literal132 = (Token) match(input, 67, FOLLOW_67_in_partition_part_config842);
char_literal132_tree = (Object) adaptor.create(char_literal132);
adaptor.addChild(root_0, char_literal132_tree);
pushFollow(FOLLOW_name_list_in_partition_part_config844);
name_list133 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list133.getTree());
char_literal134 = (Token) match(input, 68, FOLLOW_68_in_partition_part_config846);
char_literal134_tree = (Object) adaptor.create(char_literal134);
adaptor.addChild(root_0, char_literal134_tree);
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "partition_part_config"
/**
* The type Partition parts return.
*/
public static class partition_parts_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Partition parts sql parser . partition parts return.
*
* @return the sql parser . partition parts return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "partition_parts"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:165:1: partition_parts : partition_part ( ',' partition_part )* ;
public final SQLParser.partition_parts_return partition_parts() throws RecognitionException {
SQLParser.partition_parts_return retval = new SQLParser.partition_parts_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal136 = null;
SQLParser.partition_part_return partition_part135 = null;
SQLParser.partition_part_return partition_part137 = null;
Object char_literal136_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:165:17: ( partition_part ( ',' partition_part )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:165:19: partition_part ( ',' partition_part )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_partition_part_in_partition_parts853);
partition_part135 = partition_part();
state._fsp--;
adaptor.addChild(root_0, partition_part135.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:165:34: ( ',' partition_part )*
loop21:
do {
int alt21 = 2;
int LA21_0 = input.LA(1);
if ((LA21_0 == 69)) {
alt21 = 1;
}
switch (alt21) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:165:35: ',' partition_part
{
char_literal136 = (Token) match(input, 69, FOLLOW_69_in_partition_parts856);
char_literal136_tree = (Object) adaptor.create(char_literal136);
adaptor.addChild(root_0, char_literal136_tree);
pushFollow(FOLLOW_partition_part_in_partition_parts858);
partition_part137 = partition_part();
state._fsp--;
adaptor.addChild(root_0, partition_part137.getTree());
}
break;
default:
break loop21;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "partition_parts"
/**
* The type Partition part return.
*/
public static class partition_part_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Partition part sql parser . partition part return.
*
* @return the sql parser . partition part return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "partition_part"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:166:1: partition_part : 'PARTITION' name 'VALUES' partition_value_spec ora_configs ;
public final SQLParser.partition_part_return partition_part() throws RecognitionException {
SQLParser.partition_part_return retval = new SQLParser.partition_part_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal138 = null;
Token string_literal140 = null;
SQLParser.name_return name139 = null;
SQLParser.partition_value_spec_return partition_value_spec141 = null;
SQLParser.ora_configs_return ora_configs142 = null;
Object string_literal138_tree = null;
Object string_literal140_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:166:16: ( 'PARTITION' name 'VALUES' partition_value_spec ora_configs )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:166:18: 'PARTITION' name 'VALUES' partition_value_spec ora_configs
{
root_0 = (Object) adaptor.nil();
string_literal138 = (Token) match(input, 98, FOLLOW_98_in_partition_part867);
string_literal138_tree = (Object) adaptor.create(string_literal138);
root_0 = (Object) adaptor.becomeRoot(string_literal138_tree, root_0);
pushFollow(FOLLOW_name_in_partition_part870);
name139 = name();
state._fsp--;
adaptor.addChild(root_0, name139.getTree());
string_literal140 = (Token) match(input, 106, FOLLOW_106_in_partition_part872);
string_literal140_tree = (Object) adaptor.create(string_literal140);
adaptor.addChild(root_0, string_literal140_tree);
pushFollow(FOLLOW_partition_value_spec_in_partition_part874);
partition_value_spec141 = partition_value_spec();
state._fsp--;
adaptor.addChild(root_0, partition_value_spec141.getTree());
pushFollow(FOLLOW_ora_configs_in_partition_part876);
ora_configs142 = ora_configs();
state._fsp--;
adaptor.addChild(root_0, ora_configs142.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "partition_part"
/**
* The type Partition value spec return.
*/
public static class partition_value_spec_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Partition value spec sql parser . partition value spec return.
*
* @return the sql parser . partition value spec return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "partition_value_spec"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:167:1: partition_value_spec : ( ( 'LESS' 'THAN' expression ora_configs sub_partition_config ) | ( '(' value_list ')' ) );
public final SQLParser.partition_value_spec_return partition_value_spec() throws RecognitionException {
SQLParser.partition_value_spec_return retval = new SQLParser.partition_value_spec_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal143 = null;
Token string_literal144 = null;
Token char_literal148 = null;
Token char_literal150 = null;
SQLParser.expression_return expression145 = null;
SQLParser.ora_configs_return ora_configs146 = null;
SQLParser.sub_partition_config_return sub_partition_config147 = null;
SQLParser.value_list_return value_list149 = null;
Object string_literal143_tree = null;
Object string_literal144_tree = null;
Object char_literal148_tree = null;
Object char_literal150_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:167:22: ( ( 'LESS' 'THAN' expression ora_configs sub_partition_config ) | ( '(' value_list ')' ) )
int alt22 = 2;
int LA22_0 = input.LA(1);
if ((LA22_0 == 107)) {
alt22 = 1;
} else if ((LA22_0 == 67)) {
alt22 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 22, 0, input);
throw nvae;
}
switch (alt22) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:167:24: ( 'LESS' 'THAN' expression ora_configs sub_partition_config )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:167:24: ( 'LESS' 'THAN' expression ora_configs sub_partition_config )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:167:25: 'LESS' 'THAN' expression ora_configs sub_partition_config
{
string_literal143 = (Token) match(input, 107, FOLLOW_107_in_partition_value_spec884);
string_literal143_tree = (Object) adaptor.create(string_literal143);
adaptor.addChild(root_0, string_literal143_tree);
string_literal144 = (Token) match(input, 108, FOLLOW_108_in_partition_value_spec886);
string_literal144_tree = (Object) adaptor.create(string_literal144);
adaptor.addChild(root_0, string_literal144_tree);
pushFollow(FOLLOW_expression_in_partition_value_spec888);
expression145 = expression();
state._fsp--;
adaptor.addChild(root_0, expression145.getTree());
pushFollow(FOLLOW_ora_configs_in_partition_value_spec890);
ora_configs146 = ora_configs();
state._fsp--;
adaptor.addChild(root_0, ora_configs146.getTree());
pushFollow(FOLLOW_sub_partition_config_in_partition_value_spec892);
sub_partition_config147 = sub_partition_config();
state._fsp--;
adaptor.addChild(root_0, sub_partition_config147.getTree());
}
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:168:6: ( '(' value_list ')' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:168:6: ( '(' value_list ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:168:7: '(' value_list ')'
{
char_literal148 = (Token) match(input, 67, FOLLOW_67_in_partition_value_spec901);
char_literal148_tree = (Object) adaptor.create(char_literal148);
adaptor.addChild(root_0, char_literal148_tree);
pushFollow(FOLLOW_value_list_in_partition_value_spec903);
value_list149 = value_list();
state._fsp--;
adaptor.addChild(root_0, value_list149.getTree());
char_literal150 = (Token) match(input, 68, FOLLOW_68_in_partition_value_spec905);
char_literal150_tree = (Object) adaptor.create(char_literal150);
adaptor.addChild(root_0, char_literal150_tree);
}
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "partition_value_spec"
/**
* The type Sub partition config return.
*/
public static class sub_partition_config_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Sub partition config sql parser . sub partition config return.
*
* @return the sql parser . sub partition config return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "sub_partition_config"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:169:1: sub_partition_config : 'SUBPARTITIONS' INT 'STORE' 'IN' '(' name_list ')' ;
public final SQLParser.sub_partition_config_return sub_partition_config() throws RecognitionException {
SQLParser.sub_partition_config_return retval = new SQLParser.sub_partition_config_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal151 = null;
Token INT152 = null;
Token string_literal153 = null;
Token string_literal154 = null;
Token char_literal155 = null;
Token char_literal157 = null;
SQLParser.name_list_return name_list156 = null;
Object string_literal151_tree = null;
Object INT152_tree = null;
Object string_literal153_tree = null;
Object string_literal154_tree = null;
Object char_literal155_tree = null;
Object char_literal157_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:169:22: ( 'SUBPARTITIONS' INT 'STORE' 'IN' '(' name_list ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:169:24: 'SUBPARTITIONS' INT 'STORE' 'IN' '(' name_list ')'
{
root_0 = (Object) adaptor.nil();
string_literal151 = (Token) match(input, 109, FOLLOW_109_in_sub_partition_config913);
string_literal151_tree = (Object) adaptor.create(string_literal151);
root_0 = (Object) adaptor.becomeRoot(string_literal151_tree, root_0);
INT152 = (Token) match(input, INT, FOLLOW_INT_in_sub_partition_config916);
INT152_tree = (Object) adaptor.create(INT152);
adaptor.addChild(root_0, INT152_tree);
string_literal153 = (Token) match(input, 105, FOLLOW_105_in_sub_partition_config918);
string_literal153_tree = (Object) adaptor.create(string_literal153);
adaptor.addChild(root_0, string_literal153_tree);
string_literal154 = (Token) match(input, IN, FOLLOW_IN_in_sub_partition_config920);
string_literal154_tree = (Object) adaptor.create(string_literal154);
adaptor.addChild(root_0, string_literal154_tree);
char_literal155 = (Token) match(input, 67, FOLLOW_67_in_sub_partition_config922);
char_literal155_tree = (Object) adaptor.create(char_literal155);
adaptor.addChild(root_0, char_literal155_tree);
pushFollow(FOLLOW_name_list_in_sub_partition_config924);
name_list156 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list156.getTree());
char_literal157 = (Token) match(input, 68, FOLLOW_68_in_sub_partition_config926);
char_literal157_tree = (Object) adaptor.create(char_literal157);
adaptor.addChild(root_0, char_literal157_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "sub_partition_config"
/**
* The type Ora flag return.
*/
public static class ora_flag_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora flag sql parser . ora flag return.
*
* @return the sql parser . ora flag return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_flag"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:170:1: ora_flag : ( 'LOGGING' | 'NOLOGGING' | 'NOCOMPRESS' | 'CACHE' | 'NOCACHE' | 'NOPARALLEL' | 'MONITORING' | 'RETENTION' );
public final SQLParser.ora_flag_return ora_flag() throws RecognitionException {
SQLParser.ora_flag_return retval = new SQLParser.ora_flag_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set158 = null;
Object set158_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:170:9: ( 'LOGGING' | 'NOLOGGING' | 'NOCOMPRESS' | 'CACHE' | 'NOCACHE' | 'NOPARALLEL' | 'MONITORING' | 'RETENTION' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:
{
root_0 = (Object) adaptor.nil();
set158 = (Token) input.LT(1);
if ((input.LA(1) >= 110 && input.LA(1) <= 117)) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set158));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_flag"
/**
* The type Ora lob return.
*/
public static class ora_lob_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora lob sql parser . ora lob return.
*
* @return the sql parser . ora lob return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_lob"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:179:1: ora_lob : 'LOB' '(' column_name ')' 'STORE' 'AS' '(' ( ora_lob_config )* ')' ;
public final SQLParser.ora_lob_return ora_lob() throws RecognitionException {
SQLParser.ora_lob_return retval = new SQLParser.ora_lob_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal159 = null;
Token char_literal160 = null;
Token char_literal162 = null;
Token string_literal163 = null;
Token string_literal164 = null;
Token char_literal165 = null;
Token char_literal167 = null;
SQLParser.column_name_return column_name161 = null;
SQLParser.ora_lob_config_return ora_lob_config166 = null;
Object string_literal159_tree = null;
Object char_literal160_tree = null;
Object char_literal162_tree = null;
Object string_literal163_tree = null;
Object string_literal164_tree = null;
Object char_literal165_tree = null;
Object char_literal167_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:179:9: ( 'LOB' '(' column_name ')' 'STORE' 'AS' '(' ( ora_lob_config )* ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:179:11: 'LOB' '(' column_name ')' 'STORE' 'AS' '(' ( ora_lob_config )* ')'
{
root_0 = (Object) adaptor.nil();
string_literal159 = (Token) match(input, 118, FOLLOW_118_in_ora_lob981);
string_literal159_tree = (Object) adaptor.create(string_literal159);
adaptor.addChild(root_0, string_literal159_tree);
char_literal160 = (Token) match(input, 67, FOLLOW_67_in_ora_lob983);
char_literal160_tree = (Object) adaptor.create(char_literal160);
adaptor.addChild(root_0, char_literal160_tree);
pushFollow(FOLLOW_column_name_in_ora_lob985);
column_name161 = column_name();
state._fsp--;
adaptor.addChild(root_0, column_name161.getTree());
char_literal162 = (Token) match(input, 68, FOLLOW_68_in_ora_lob987);
char_literal162_tree = (Object) adaptor.create(char_literal162);
adaptor.addChild(root_0, char_literal162_tree);
string_literal163 = (Token) match(input, 105, FOLLOW_105_in_ora_lob989);
string_literal163_tree = (Object) adaptor.create(string_literal163);
adaptor.addChild(root_0, string_literal163_tree);
string_literal164 = (Token) match(input, 119, FOLLOW_119_in_ora_lob991);
string_literal164_tree = (Object) adaptor.create(string_literal164);
adaptor.addChild(root_0, string_literal164_tree);
char_literal165 = (Token) match(input, 67, FOLLOW_67_in_ora_lob993);
char_literal165_tree = (Object) adaptor.create(char_literal165);
adaptor.addChild(root_0, char_literal165_tree);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:179:54: ( ora_lob_config )*
loop23:
do {
int alt23 = 2;
int LA23_0 = input.LA(1);
if ((LA23_0 == 77 || LA23_0 == 83 || LA23_0 == 91 || (LA23_0 >= 110 && LA23_0 <= 117) || (LA23_0 >= 120 && LA23_0 <= 122))) {
alt23 = 1;
}
switch (alt23) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:179:54: ora_lob_config
{
pushFollow(FOLLOW_ora_lob_config_in_ora_lob995);
ora_lob_config166 = ora_lob_config();
state._fsp--;
adaptor.addChild(root_0, ora_lob_config166.getTree());
}
break;
default:
break loop23;
}
} while (true);
char_literal167 = (Token) match(input, 68, FOLLOW_68_in_ora_lob998);
char_literal167_tree = (Object) adaptor.create(char_literal167);
adaptor.addChild(root_0, char_literal167_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_lob"
/**
* The type Ora lob config return.
*/
public static class ora_lob_config_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora lob config sql parser . ora lob config return.
*
* @return the sql parser . ora lob config return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_lob_config"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:180:1: ora_lob_config : ( ( 'TABLESPACE' name ) | ( 'ENABLE' 'STORAGE' 'IN' 'ROW' ) | ( 'CHUNK' INT ) | ( 'PCTVERSION' INT ) | ora_flag | ora_lob_index | ora_storage_spec );
public final SQLParser.ora_lob_config_return ora_lob_config() throws RecognitionException {
SQLParser.ora_lob_config_return retval = new SQLParser.ora_lob_config_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal168 = null;
Token string_literal170 = null;
Token string_literal171 = null;
Token string_literal172 = null;
Token string_literal173 = null;
Token string_literal174 = null;
Token INT175 = null;
Token string_literal176 = null;
Token INT177 = null;
SQLParser.name_return name169 = null;
SQLParser.ora_flag_return ora_flag178 = null;
SQLParser.ora_lob_index_return ora_lob_index179 = null;
SQLParser.ora_storage_spec_return ora_storage_spec180 = null;
Object string_literal168_tree = null;
Object string_literal170_tree = null;
Object string_literal171_tree = null;
Object string_literal172_tree = null;
Object string_literal173_tree = null;
Object string_literal174_tree = null;
Object INT175_tree = null;
Object string_literal176_tree = null;
Object INT177_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:181:2: ( ( 'TABLESPACE' name ) | ( 'ENABLE' 'STORAGE' 'IN' 'ROW' ) | ( 'CHUNK' INT ) | ( 'PCTVERSION' INT ) | ora_flag | ora_lob_index | ora_storage_spec )
int alt24 = 7;
switch (input.LA(1)) {
case 77: {
alt24 = 1;
}
break;
case 83: {
alt24 = 2;
}
break;
case 120: {
alt24 = 3;
}
break;
case 121: {
alt24 = 4;
}
break;
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117: {
alt24 = 5;
}
break;
case 122: {
alt24 = 6;
}
break;
case 91: {
alt24 = 7;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 24, 0, input);
throw nvae;
}
switch (alt24) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:181:4: ( 'TABLESPACE' name )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:181:4: ( 'TABLESPACE' name )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:181:5: 'TABLESPACE' name
{
string_literal168 = (Token) match(input, 77, FOLLOW_77_in_ora_lob_config1007);
string_literal168_tree = (Object) adaptor.create(string_literal168);
root_0 = (Object) adaptor.becomeRoot(string_literal168_tree, root_0);
pushFollow(FOLLOW_name_in_ora_lob_config1010);
name169 = name();
state._fsp--;
adaptor.addChild(root_0, name169.getTree());
}
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:182:4: ( 'ENABLE' 'STORAGE' 'IN' 'ROW' )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:182:4: ( 'ENABLE' 'STORAGE' 'IN' 'ROW' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:182:5: 'ENABLE' 'STORAGE' 'IN' 'ROW'
{
string_literal170 = (Token) match(input, 83, FOLLOW_83_in_ora_lob_config1017);
string_literal170_tree = (Object) adaptor.create(string_literal170);
adaptor.addChild(root_0, string_literal170_tree);
string_literal171 = (Token) match(input, 91, FOLLOW_91_in_ora_lob_config1019);
string_literal171_tree = (Object) adaptor.create(string_literal171);
adaptor.addChild(root_0, string_literal171_tree);
string_literal172 = (Token) match(input, IN, FOLLOW_IN_in_ora_lob_config1021);
string_literal172_tree = (Object) adaptor.create(string_literal172);
adaptor.addChild(root_0, string_literal172_tree);
string_literal173 = (Token) match(input, 84, FOLLOW_84_in_ora_lob_config1023);
string_literal173_tree = (Object) adaptor.create(string_literal173);
adaptor.addChild(root_0, string_literal173_tree);
}
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:183:4: ( 'CHUNK' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:183:4: ( 'CHUNK' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:183:5: 'CHUNK' INT
{
string_literal174 = (Token) match(input, 120, FOLLOW_120_in_ora_lob_config1030);
string_literal174_tree = (Object) adaptor.create(string_literal174);
root_0 = (Object) adaptor.becomeRoot(string_literal174_tree, root_0);
INT175 = (Token) match(input, INT, FOLLOW_INT_in_ora_lob_config1033);
INT175_tree = (Object) adaptor.create(INT175);
adaptor.addChild(root_0, INT175_tree);
}
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:184:4: ( 'PCTVERSION' INT )
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:184:4: ( 'PCTVERSION' INT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:184:5: 'PCTVERSION' INT
{
string_literal176 = (Token) match(input, 121, FOLLOW_121_in_ora_lob_config1040);
string_literal176_tree = (Object) adaptor.create(string_literal176);
root_0 = (Object) adaptor.becomeRoot(string_literal176_tree, root_0);
INT177 = (Token) match(input, INT, FOLLOW_INT_in_ora_lob_config1043);
INT177_tree = (Object) adaptor.create(INT177);
adaptor.addChild(root_0, INT177_tree);
}
}
break;
case 5:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:185:4: ora_flag
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_flag_in_ora_lob_config1049);
ora_flag178 = ora_flag();
state._fsp--;
adaptor.addChild(root_0, ora_flag178.getTree());
}
break;
case 6:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:186:4: ora_lob_index
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_lob_index_in_ora_lob_config1054);
ora_lob_index179 = ora_lob_index();
state._fsp--;
adaptor.addChild(root_0, ora_lob_index179.getTree());
}
break;
case 7:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:187:4: ora_storage_spec
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_storage_spec_in_ora_lob_config1059);
ora_storage_spec180 = ora_storage_spec();
state._fsp--;
adaptor.addChild(root_0, ora_storage_spec180.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_lob_config"
/**
* The type Ora lob index return.
*/
public static class ora_lob_index_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Ora lob index sql parser . ora lob index return.
*
* @return the sql parser . ora lob index return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "ora_lob_index"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:189:1: ora_lob_index : 'INDEX' '(' ora_configs ')' ;
public final SQLParser.ora_lob_index_return ora_lob_index() throws RecognitionException {
SQLParser.ora_lob_index_return retval = new SQLParser.ora_lob_index_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal181 = null;
Token char_literal182 = null;
Token char_literal184 = null;
SQLParser.ora_configs_return ora_configs183 = null;
Object string_literal181_tree = null;
Object char_literal182_tree = null;
Object char_literal184_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:190:2: ( 'INDEX' '(' ora_configs ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:190:4: 'INDEX' '(' ora_configs ')'
{
root_0 = (Object) adaptor.nil();
string_literal181 = (Token) match(input, 122, FOLLOW_122_in_ora_lob_index1070);
string_literal181_tree = (Object) adaptor.create(string_literal181);
adaptor.addChild(root_0, string_literal181_tree);
char_literal182 = (Token) match(input, 67, FOLLOW_67_in_ora_lob_index1072);
char_literal182_tree = (Object) adaptor.create(char_literal182);
adaptor.addChild(root_0, char_literal182_tree);
pushFollow(FOLLOW_ora_configs_in_ora_lob_index1074);
ora_configs183 = ora_configs();
state._fsp--;
adaptor.addChild(root_0, ora_configs183.getTree());
char_literal184 = (Token) match(input, 68, FOLLOW_68_in_ora_lob_index1076);
char_literal184_tree = (Object) adaptor.create(char_literal184);
adaptor.addChild(root_0, char_literal184_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "ora_lob_index"
/**
* The type Alter table return.
*/
public static class alter_table_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Alter table sql parser . alter table return.
*
* @return the sql parser . alter table return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "alter_table"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:192:1: alter_table : 'ALTER' 'TABLE' table_name table_mutation -> ^( ALTER_TABLE table_name table_mutation ) ;
public final SQLParser.alter_table_return alter_table() throws RecognitionException {
SQLParser.alter_table_return retval = new SQLParser.alter_table_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal185 = null;
Token string_literal186 = null;
SQLParser.table_name_return table_name187 = null;
SQLParser.table_mutation_return table_mutation188 = null;
Object string_literal185_tree = null;
Object string_literal186_tree = null;
RewriteRuleTokenStream stream_66 = new RewriteRuleTokenStream(adaptor, "token 66");
RewriteRuleTokenStream stream_123 = new RewriteRuleTokenStream(adaptor, "token 123");
RewriteRuleSubtreeStream stream_table_mutation = new RewriteRuleSubtreeStream(adaptor, "rule table_mutation");
RewriteRuleSubtreeStream stream_table_name = new RewriteRuleSubtreeStream(adaptor, "rule table_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:192:13: ( 'ALTER' 'TABLE' table_name table_mutation -> ^( ALTER_TABLE table_name table_mutation ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:192:15: 'ALTER' 'TABLE' table_name table_mutation
{
string_literal185 = (Token) match(input, 123, FOLLOW_123_in_alter_table1085);
stream_123.add(string_literal185);
string_literal186 = (Token) match(input, 66, FOLLOW_66_in_alter_table1087);
stream_66.add(string_literal186);
pushFollow(FOLLOW_table_name_in_alter_table1089);
table_name187 = table_name();
state._fsp--;
stream_table_name.add(table_name187.getTree());
pushFollow(FOLLOW_table_mutation_in_alter_table1091);
table_mutation188 = table_mutation();
state._fsp--;
stream_table_mutation.add(table_mutation188.getTree());
// AST REWRITE
// elements: table_name, table_mutation
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 192:57: -> ^( ALTER_TABLE table_name table_mutation )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:192:60: ^( ALTER_TABLE table_name table_mutation )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(ALTER_TABLE, "ALTER_TABLE"), root_1);
adaptor.addChild(root_1, stream_table_name.nextTree());
adaptor.addChild(root_1, stream_table_mutation.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "alter_table"
/**
* The type Table mutation return.
*/
public static class table_mutation_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Table mutation sql parser . table mutation return.
*
* @return the sql parser . table mutation return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "table_mutation"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:193:1: table_mutation : ( drop_pk | add_constraints );
public final SQLParser.table_mutation_return table_mutation() throws RecognitionException {
SQLParser.table_mutation_return retval = new SQLParser.table_mutation_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.drop_pk_return drop_pk189 = null;
SQLParser.add_constraints_return add_constraints190 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:194:2: ( drop_pk | add_constraints )
int alt25 = 2;
int LA25_0 = input.LA(1);
if ((LA25_0 == 124)) {
alt25 = 1;
} else if ((LA25_0 == 126)) {
alt25 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 25, 0, input);
throw nvae;
}
switch (alt25) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:194:4: drop_pk
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_drop_pk_in_table_mutation1109);
drop_pk189 = drop_pk();
state._fsp--;
adaptor.addChild(root_0, drop_pk189.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:195:4: add_constraints
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_add_constraints_in_table_mutation1114);
add_constraints190 = add_constraints();
state._fsp--;
adaptor.addChild(root_0, add_constraints190.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "table_mutation"
/**
* The type Drop pk return.
*/
public static class drop_pk_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Drop pk sql parser . drop pk return.
*
* @return the sql parser . drop pk return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "drop_pk"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:197:1: drop_pk : 'DROP' 'PRIMARY' 'KEY' ( 'CASCADE' )? ;
public final SQLParser.drop_pk_return drop_pk() throws RecognitionException {
SQLParser.drop_pk_return retval = new SQLParser.drop_pk_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal191 = null;
Token string_literal192 = null;
Token string_literal193 = null;
Token string_literal194 = null;
Object string_literal191_tree = null;
Object string_literal192_tree = null;
Object string_literal193_tree = null;
Object string_literal194_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:197:10: ( 'DROP' 'PRIMARY' 'KEY' ( 'CASCADE' )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:197:12: 'DROP' 'PRIMARY' 'KEY' ( 'CASCADE' )?
{
root_0 = (Object) adaptor.nil();
string_literal191 = (Token) match(input, 124, FOLLOW_124_in_drop_pk1124);
string_literal191_tree = (Object) adaptor.create(string_literal191);
adaptor.addChild(root_0, string_literal191_tree);
string_literal192 = (Token) match(input, PRIMARY, FOLLOW_PRIMARY_in_drop_pk1126);
string_literal192_tree = (Object) adaptor.create(string_literal192);
adaptor.addChild(root_0, string_literal192_tree);
string_literal193 = (Token) match(input, 75, FOLLOW_75_in_drop_pk1128);
string_literal193_tree = (Object) adaptor.create(string_literal193);
adaptor.addChild(root_0, string_literal193_tree);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:197:35: ( 'CASCADE' )?
int alt26 = 2;
int LA26_0 = input.LA(1);
if ((LA26_0 == 125)) {
alt26 = 1;
}
switch (alt26) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:197:35: 'CASCADE'
{
string_literal194 = (Token) match(input, 125, FOLLOW_125_in_drop_pk1130);
string_literal194_tree = (Object) adaptor.create(string_literal194);
adaptor.addChild(root_0, string_literal194_tree);
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "drop_pk"
/**
* The type Add constraints return.
*/
public static class add_constraints_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Add constraints sql parser . add constraints return.
*
* @return the sql parser . add constraints return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "add_constraints"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:198:1: add_constraints : 'ADD' '(' constraint_spec ( ',' constraint_spec )* ')' ;
public final SQLParser.add_constraints_return add_constraints() throws RecognitionException {
SQLParser.add_constraints_return retval = new SQLParser.add_constraints_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal195 = null;
Token char_literal196 = null;
Token char_literal198 = null;
Token char_literal200 = null;
SQLParser.constraint_spec_return constraint_spec197 = null;
SQLParser.constraint_spec_return constraint_spec199 = null;
Object string_literal195_tree = null;
Object char_literal196_tree = null;
Object char_literal198_tree = null;
Object char_literal200_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:198:17: ( 'ADD' '(' constraint_spec ( ',' constraint_spec )* ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:198:19: 'ADD' '(' constraint_spec ( ',' constraint_spec )* ')'
{
root_0 = (Object) adaptor.nil();
string_literal195 = (Token) match(input, 126, FOLLOW_126_in_add_constraints1138);
string_literal195_tree = (Object) adaptor.create(string_literal195);
adaptor.addChild(root_0, string_literal195_tree);
char_literal196 = (Token) match(input, 67, FOLLOW_67_in_add_constraints1140);
char_literal196_tree = (Object) adaptor.create(char_literal196);
adaptor.addChild(root_0, char_literal196_tree);
pushFollow(FOLLOW_constraint_spec_in_add_constraints1142);
constraint_spec197 = constraint_spec();
state._fsp--;
adaptor.addChild(root_0, constraint_spec197.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:198:45: ( ',' constraint_spec )*
loop27:
do {
int alt27 = 2;
int LA27_0 = input.LA(1);
if ((LA27_0 == 69)) {
alt27 = 1;
}
switch (alt27) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:198:46: ',' constraint_spec
{
char_literal198 = (Token) match(input, 69, FOLLOW_69_in_add_constraints1145);
char_literal198_tree = (Object) adaptor.create(char_literal198);
adaptor.addChild(root_0, char_literal198_tree);
pushFollow(FOLLOW_constraint_spec_in_add_constraints1147);
constraint_spec199 = constraint_spec();
state._fsp--;
adaptor.addChild(root_0, constraint_spec199.getTree());
}
break;
default:
break loop27;
}
} while (true);
char_literal200 = (Token) match(input, 68, FOLLOW_68_in_add_constraints1151);
char_literal200_tree = (Object) adaptor.create(char_literal200);
adaptor.addChild(root_0, char_literal200_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "add_constraints"
/**
* The type Constraint spec return.
*/
public static class constraint_spec_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Constraint spec sql parser . constraint spec return.
*
* @return the sql parser . constraint spec return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "constraint_spec"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:199:1: constraint_spec : ( 'CONSTRAINT' name )? constraint_detail ;
public final SQLParser.constraint_spec_return constraint_spec() throws RecognitionException {
SQLParser.constraint_spec_return retval = new SQLParser.constraint_spec_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal201 = null;
SQLParser.name_return name202 = null;
SQLParser.constraint_detail_return constraint_detail203 = null;
Object string_literal201_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:199:17: ( ( 'CONSTRAINT' name )? constraint_detail )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:199:19: ( 'CONSTRAINT' name )? constraint_detail
{
root_0 = (Object) adaptor.nil();
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:199:19: ( 'CONSTRAINT' name )?
int alt28 = 2;
int LA28_0 = input.LA(1);
if ((LA28_0 == 74)) {
alt28 = 1;
}
switch (alt28) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:199:20: 'CONSTRAINT' name
{
string_literal201 = (Token) match(input, 74, FOLLOW_74_in_constraint_spec1159);
string_literal201_tree = (Object) adaptor.create(string_literal201);
adaptor.addChild(root_0, string_literal201_tree);
pushFollow(FOLLOW_name_in_constraint_spec1161);
name202 = name();
state._fsp--;
adaptor.addChild(root_0, name202.getTree());
}
break;
}
pushFollow(FOLLOW_constraint_detail_in_constraint_spec1165);
constraint_detail203 = constraint_detail();
state._fsp--;
adaptor.addChild(root_0, constraint_detail203.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "constraint_spec"
/**
* The type Constraint detail return.
*/
public static class constraint_detail_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Constraint detail sql parser . constraint detail return.
*
* @return the sql parser . constraint detail return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "constraint_detail"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:200:1: constraint_detail : ( primary_key_constraint | foreign_key_constraint | unique_constraint | check_constraint );
public final SQLParser.constraint_detail_return constraint_detail() throws RecognitionException {
SQLParser.constraint_detail_return retval = new SQLParser.constraint_detail_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.primary_key_constraint_return primary_key_constraint204 = null;
SQLParser.foreign_key_constraint_return foreign_key_constraint205 = null;
SQLParser.unique_constraint_return unique_constraint206 = null;
SQLParser.check_constraint_return check_constraint207 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:201:2: ( primary_key_constraint | foreign_key_constraint | unique_constraint | check_constraint )
int alt29 = 4;
switch (input.LA(1)) {
case PRIMARY: {
alt29 = 1;
}
break;
case 128: {
alt29 = 2;
}
break;
case 130: {
alt29 = 3;
}
break;
case 131: {
alt29 = 4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 29, 0, input);
throw nvae;
}
switch (alt29) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:201:4: primary_key_constraint
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_primary_key_constraint_in_constraint_detail1173);
primary_key_constraint204 = primary_key_constraint();
state._fsp--;
adaptor.addChild(root_0, primary_key_constraint204.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:202:4: foreign_key_constraint
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_foreign_key_constraint_in_constraint_detail1178);
foreign_key_constraint205 = foreign_key_constraint();
state._fsp--;
adaptor.addChild(root_0, foreign_key_constraint205.getTree());
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:203:4: unique_constraint
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_unique_constraint_in_constraint_detail1183);
unique_constraint206 = unique_constraint();
state._fsp--;
adaptor.addChild(root_0, unique_constraint206.getTree());
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:204:4: check_constraint
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_check_constraint_in_constraint_detail1188);
check_constraint207 = check_constraint();
state._fsp--;
adaptor.addChild(root_0, check_constraint207.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "constraint_detail"
/**
* The type Primary key constraint return.
*/
public static class primary_key_constraint_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Primary key constraint sql parser . primary key constraint return.
*
* @return the sql parser . primary key constraint return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "primary_key_constraint"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:205:1: primary_key_constraint : 'PRIMARY' 'KEY' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )? ;
public final SQLParser.primary_key_constraint_return primary_key_constraint() throws RecognitionException {
SQLParser.primary_key_constraint_return retval = new SQLParser.primary_key_constraint_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal208 = null;
Token string_literal209 = null;
Token char_literal210 = null;
Token char_literal212 = null;
Token string_literal213 = null;
Token string_literal214 = null;
SQLParser.name_list_return name_list211 = null;
SQLParser.ora_configs_return ora_configs215 = null;
Object string_literal208_tree = null;
Object string_literal209_tree = null;
Object char_literal210_tree = null;
Object char_literal212_tree = null;
Object string_literal213_tree = null;
Object string_literal214_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:205:24: ( 'PRIMARY' 'KEY' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:205:26: 'PRIMARY' 'KEY' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )?
{
root_0 = (Object) adaptor.nil();
string_literal208 = (Token) match(input, PRIMARY, FOLLOW_PRIMARY_in_primary_key_constraint1195);
string_literal208_tree = (Object) adaptor.create(string_literal208);
adaptor.addChild(root_0, string_literal208_tree);
string_literal209 = (Token) match(input, 75, FOLLOW_75_in_primary_key_constraint1197);
string_literal209_tree = (Object) adaptor.create(string_literal209);
adaptor.addChild(root_0, string_literal209_tree);
char_literal210 = (Token) match(input, 67, FOLLOW_67_in_primary_key_constraint1199);
char_literal210_tree = (Object) adaptor.create(char_literal210);
adaptor.addChild(root_0, char_literal210_tree);
pushFollow(FOLLOW_name_list_in_primary_key_constraint1201);
name_list211 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list211.getTree());
char_literal212 = (Token) match(input, 68, FOLLOW_68_in_primary_key_constraint1203);
char_literal212_tree = (Object) adaptor.create(char_literal212);
adaptor.addChild(root_0, char_literal212_tree);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:205:60: ( 'USING' 'INDEX' ora_configs )?
int alt30 = 2;
int LA30_0 = input.LA(1);
if ((LA30_0 == 127)) {
alt30 = 1;
}
switch (alt30) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:205:61: 'USING' 'INDEX' ora_configs
{
string_literal213 = (Token) match(input, 127, FOLLOW_127_in_primary_key_constraint1206);
string_literal213_tree = (Object) adaptor.create(string_literal213);
adaptor.addChild(root_0, string_literal213_tree);
string_literal214 = (Token) match(input, 122, FOLLOW_122_in_primary_key_constraint1208);
string_literal214_tree = (Object) adaptor.create(string_literal214);
adaptor.addChild(root_0, string_literal214_tree);
pushFollow(FOLLOW_ora_configs_in_primary_key_constraint1210);
ora_configs215 = ora_configs();
state._fsp--;
adaptor.addChild(root_0, ora_configs215.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "primary_key_constraint"
/**
* The type Foreign key constraint return.
*/
public static class foreign_key_constraint_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Foreign key constraint sql parser . foreign key constraint return.
*
* @return the sql parser . foreign key constraint return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "foreign_key_constraint"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:1: foreign_key_constraint : 'FOREIGN' 'KEY' '(' name_list ')' 'REFERENCES' table_name ( '(' )+ ( name_list )+ ')' ;
public final SQLParser.foreign_key_constraint_return foreign_key_constraint() throws RecognitionException {
SQLParser.foreign_key_constraint_return retval = new SQLParser.foreign_key_constraint_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal216 = null;
Token string_literal217 = null;
Token char_literal218 = null;
Token char_literal220 = null;
Token string_literal221 = null;
Token char_literal223 = null;
Token char_literal225 = null;
SQLParser.name_list_return name_list219 = null;
SQLParser.table_name_return table_name222 = null;
SQLParser.name_list_return name_list224 = null;
Object string_literal216_tree = null;
Object string_literal217_tree = null;
Object char_literal218_tree = null;
Object char_literal220_tree = null;
Object string_literal221_tree = null;
Object char_literal223_tree = null;
Object char_literal225_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:24: ( 'FOREIGN' 'KEY' '(' name_list ')' 'REFERENCES' table_name ( '(' )+ ( name_list )+ ')' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:26: 'FOREIGN' 'KEY' '(' name_list ')' 'REFERENCES' table_name ( '(' )+ ( name_list )+ ')'
{
root_0 = (Object) adaptor.nil();
string_literal216 = (Token) match(input, 128, FOLLOW_128_in_foreign_key_constraint1219);
string_literal216_tree = (Object) adaptor.create(string_literal216);
adaptor.addChild(root_0, string_literal216_tree);
string_literal217 = (Token) match(input, 75, FOLLOW_75_in_foreign_key_constraint1221);
string_literal217_tree = (Object) adaptor.create(string_literal217);
adaptor.addChild(root_0, string_literal217_tree);
char_literal218 = (Token) match(input, 67, FOLLOW_67_in_foreign_key_constraint1223);
char_literal218_tree = (Object) adaptor.create(char_literal218);
adaptor.addChild(root_0, char_literal218_tree);
pushFollow(FOLLOW_name_list_in_foreign_key_constraint1225);
name_list219 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list219.getTree());
char_literal220 = (Token) match(input, 68, FOLLOW_68_in_foreign_key_constraint1227);
char_literal220_tree = (Object) adaptor.create(char_literal220);
adaptor.addChild(root_0, char_literal220_tree);
string_literal221 = (Token) match(input, 129, FOLLOW_129_in_foreign_key_constraint1229);
string_literal221_tree = (Object) adaptor.create(string_literal221);
adaptor.addChild(root_0, string_literal221_tree);
pushFollow(FOLLOW_table_name_in_foreign_key_constraint1231);
table_name222 = table_name();
state._fsp--;
adaptor.addChild(root_0, table_name222.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:84: ( '(' )+
int cnt31 = 0;
loop31:
do {
int alt31 = 2;
int LA31_0 = input.LA(1);
if ((LA31_0 == 67)) {
alt31 = 1;
}
switch (alt31) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:84: '('
{
char_literal223 = (Token) match(input, 67, FOLLOW_67_in_foreign_key_constraint1233);
char_literal223_tree = (Object) adaptor.create(char_literal223);
adaptor.addChild(root_0, char_literal223_tree);
}
break;
default:
if (cnt31 >= 1) {
break loop31;
}
EarlyExitException eee =
new EarlyExitException(31, input);
throw eee;
}
cnt31++;
} while (true);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:90: ( name_list )+
int cnt32 = 0;
loop32:
do {
int alt32 = 2;
int LA32_0 = input.LA(1);
if ((LA32_0 == IDENTIFIER || (LA32_0 >= QUOTED_NAME && LA32_0 <= COMMENT) || LA32_0 == IS || LA32_0 == 63 || LA32_0 == 66 || LA32_0 == 75 ||
(LA32_0 >= 77 && LA32_0 <= 81) || LA32_0 == 87 || LA32_0 == 91 || LA32_0 == 99 || (LA32_0 >= 110 && LA32_0 <= 117) ||
(LA32_0 >= 122 && LA32_0 <= 124) || LA32_0 == 130 || LA32_0 == 134 || LA32_0 == 136 || LA32_0 == 138)) {
alt32 = 1;
}
switch (alt32) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:206:90: name_list
{
pushFollow(FOLLOW_name_list_in_foreign_key_constraint1237);
name_list224 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list224.getTree());
}
break;
default:
if (cnt32 >= 1) {
break loop32;
}
EarlyExitException eee =
new EarlyExitException(32, input);
throw eee;
}
cnt32++;
} while (true);
char_literal225 = (Token) match(input, 68, FOLLOW_68_in_foreign_key_constraint1241);
char_literal225_tree = (Object) adaptor.create(char_literal225);
adaptor.addChild(root_0, char_literal225_tree);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "foreign_key_constraint"
/**
* The type Unique constraint return.
*/
public static class unique_constraint_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Unique constraint sql parser . unique constraint return.
*
* @return the sql parser . unique constraint return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "unique_constraint"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:207:1: unique_constraint : 'UNIQUE' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )? ;
public final SQLParser.unique_constraint_return unique_constraint() throws RecognitionException {
SQLParser.unique_constraint_return retval = new SQLParser.unique_constraint_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal226 = null;
Token char_literal227 = null;
Token char_literal229 = null;
Token string_literal230 = null;
Token string_literal231 = null;
SQLParser.name_list_return name_list228 = null;
SQLParser.ora_configs_return ora_configs232 = null;
Object string_literal226_tree = null;
Object char_literal227_tree = null;
Object char_literal229_tree = null;
Object string_literal230_tree = null;
Object string_literal231_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:207:19: ( 'UNIQUE' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:207:21: 'UNIQUE' '(' name_list ')' ( 'USING' 'INDEX' ora_configs )?
{
root_0 = (Object) adaptor.nil();
string_literal226 = (Token) match(input, 130, FOLLOW_130_in_unique_constraint1248);
string_literal226_tree = (Object) adaptor.create(string_literal226);
adaptor.addChild(root_0, string_literal226_tree);
char_literal227 = (Token) match(input, 67, FOLLOW_67_in_unique_constraint1250);
char_literal227_tree = (Object) adaptor.create(char_literal227);
adaptor.addChild(root_0, char_literal227_tree);
pushFollow(FOLLOW_name_list_in_unique_constraint1252);
name_list228 = name_list();
state._fsp--;
adaptor.addChild(root_0, name_list228.getTree());
char_literal229 = (Token) match(input, 68, FOLLOW_68_in_unique_constraint1254);
char_literal229_tree = (Object) adaptor.create(char_literal229);
adaptor.addChild(root_0, char_literal229_tree);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:207:48: ( 'USING' 'INDEX' ora_configs )?
int alt33 = 2;
int LA33_0 = input.LA(1);
if ((LA33_0 == 127)) {
alt33 = 1;
}
switch (alt33) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:207:49: 'USING' 'INDEX' ora_configs
{
string_literal230 = (Token) match(input, 127, FOLLOW_127_in_unique_constraint1257);
string_literal230_tree = (Object) adaptor.create(string_literal230);
adaptor.addChild(root_0, string_literal230_tree);
string_literal231 = (Token) match(input, 122, FOLLOW_122_in_unique_constraint1259);
string_literal231_tree = (Object) adaptor.create(string_literal231);
adaptor.addChild(root_0, string_literal231_tree);
pushFollow(FOLLOW_ora_configs_in_unique_constraint1261);
ora_configs232 = ora_configs();
state._fsp--;
adaptor.addChild(root_0, ora_configs232.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "unique_constraint"
/**
* The type Check constraint return.
*/
public static class check_constraint_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Check constraint sql parser . check constraint return.
*
* @return the sql parser . check constraint return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "check_constraint"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:208:1: check_constraint : 'CHECK' expression ;
public final SQLParser.check_constraint_return check_constraint() throws RecognitionException {
SQLParser.check_constraint_return retval = new SQLParser.check_constraint_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal233 = null;
SQLParser.expression_return expression234 = null;
Object string_literal233_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:208:18: ( 'CHECK' expression )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:208:20: 'CHECK' expression
{
root_0 = (Object) adaptor.nil();
string_literal233 = (Token) match(input, 131, FOLLOW_131_in_check_constraint1270);
string_literal233_tree = (Object) adaptor.create(string_literal233);
adaptor.addChild(root_0, string_literal233_tree);
pushFollow(FOLLOW_expression_in_check_constraint1272);
expression234 = expression();
state._fsp--;
adaptor.addChild(root_0, expression234.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "check_constraint"
/**
* The type Drop table return.
*/
public static class drop_table_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Drop table sql parser . drop table return.
*
* @return the sql parser . drop table return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "drop_table"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:1: drop_table : 'DROP' 'TABLE' table_name ( 'CASCADE' 'CONSTRAINTS' )? -> ^( DROP_TABLE table_name ) ;
public final SQLParser.drop_table_return drop_table() throws RecognitionException {
SQLParser.drop_table_return retval = new SQLParser.drop_table_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal235 = null;
Token string_literal236 = null;
Token string_literal238 = null;
Token string_literal239 = null;
SQLParser.table_name_return table_name237 = null;
Object string_literal235_tree = null;
Object string_literal236_tree = null;
Object string_literal238_tree = null;
Object string_literal239_tree = null;
RewriteRuleTokenStream stream_125 = new RewriteRuleTokenStream(adaptor, "token 125");
RewriteRuleTokenStream stream_66 = new RewriteRuleTokenStream(adaptor, "token 66");
RewriteRuleTokenStream stream_132 = new RewriteRuleTokenStream(adaptor, "token 132");
RewriteRuleTokenStream stream_124 = new RewriteRuleTokenStream(adaptor, "token 124");
RewriteRuleSubtreeStream stream_table_name = new RewriteRuleSubtreeStream(adaptor, "rule table_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:12: ( 'DROP' 'TABLE' table_name ( 'CASCADE' 'CONSTRAINTS' )? -> ^( DROP_TABLE table_name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:14: 'DROP' 'TABLE' table_name ( 'CASCADE' 'CONSTRAINTS' )?
{
string_literal235 = (Token) match(input, 124, FOLLOW_124_in_drop_table1283);
stream_124.add(string_literal235);
string_literal236 = (Token) match(input, 66, FOLLOW_66_in_drop_table1285);
stream_66.add(string_literal236);
pushFollow(FOLLOW_table_name_in_drop_table1287);
table_name237 = table_name();
state._fsp--;
stream_table_name.add(table_name237.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:40: ( 'CASCADE' 'CONSTRAINTS' )?
int alt34 = 2;
int LA34_0 = input.LA(1);
if ((LA34_0 == 125)) {
alt34 = 1;
}
switch (alt34) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:41: 'CASCADE' 'CONSTRAINTS'
{
string_literal238 = (Token) match(input, 125, FOLLOW_125_in_drop_table1290);
stream_125.add(string_literal238);
string_literal239 = (Token) match(input, 132, FOLLOW_132_in_drop_table1292);
stream_132.add(string_literal239);
}
break;
}
// AST REWRITE
// elements: table_name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 212:67: -> ^( DROP_TABLE table_name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:212:70: ^( DROP_TABLE table_name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(DROP_TABLE, "DROP_TABLE"), root_1);
adaptor.addChild(root_1, stream_table_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "drop_table"
/**
* The type Create index return.
*/
public static class create_index_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Create index sql parser . create index return.
*
* @return the sql parser . create index return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "create_index"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:1: create_index : 'CREATE' ( 'UNIQUE' )? 'INDEX' index_name 'ON' table_name '(' name_list ')' ( 'INDEXTYPE' 'IS' qualified_name )? ora_configs -> ^( CREATE_INDEX index_name ) ;
public final SQLParser.create_index_return create_index() throws RecognitionException {
SQLParser.create_index_return retval = new SQLParser.create_index_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal240 = null;
Token string_literal241 = null;
Token string_literal242 = null;
Token string_literal244 = null;
Token char_literal246 = null;
Token char_literal248 = null;
Token string_literal249 = null;
Token string_literal250 = null;
SQLParser.index_name_return index_name243 = null;
SQLParser.table_name_return table_name245 = null;
SQLParser.name_list_return name_list247 = null;
SQLParser.qualified_name_return qualified_name251 = null;
SQLParser.ora_configs_return ora_configs252 = null;
Object string_literal240_tree = null;
Object string_literal241_tree = null;
Object string_literal242_tree = null;
Object string_literal244_tree = null;
Object char_literal246_tree = null;
Object char_literal248_tree = null;
Object string_literal249_tree = null;
Object string_literal250_tree = null;
RewriteRuleTokenStream stream_67 = new RewriteRuleTokenStream(adaptor, "token 67");
RewriteRuleTokenStream stream_133 = new RewriteRuleTokenStream(adaptor, "token 133");
RewriteRuleTokenStream stream_68 = new RewriteRuleTokenStream(adaptor, "token 68");
RewriteRuleTokenStream stream_122 = new RewriteRuleTokenStream(adaptor, "token 122");
RewriteRuleTokenStream stream_IS = new RewriteRuleTokenStream(adaptor, "token IS");
RewriteRuleTokenStream stream_63 = new RewriteRuleTokenStream(adaptor, "token 63");
RewriteRuleTokenStream stream_87 = new RewriteRuleTokenStream(adaptor, "token 87");
RewriteRuleTokenStream stream_130 = new RewriteRuleTokenStream(adaptor, "token 130");
RewriteRuleSubtreeStream stream_index_name = new RewriteRuleSubtreeStream(adaptor, "rule index_name");
RewriteRuleSubtreeStream stream_ora_configs = new RewriteRuleSubtreeStream(adaptor, "rule ora_configs");
RewriteRuleSubtreeStream stream_table_name = new RewriteRuleSubtreeStream(adaptor, "rule table_name");
RewriteRuleSubtreeStream stream_name_list = new RewriteRuleSubtreeStream(adaptor, "rule name_list");
RewriteRuleSubtreeStream stream_qualified_name = new RewriteRuleSubtreeStream(adaptor, "rule qualified_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:14: ( 'CREATE' ( 'UNIQUE' )? 'INDEX' index_name 'ON' table_name '(' name_list ')' ( 'INDEXTYPE' 'IS' qualified_name )? ora_configs -> ^( CREATE_INDEX index_name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:16: 'CREATE' ( 'UNIQUE' )? 'INDEX' index_name 'ON' table_name '(' name_list ')' ( 'INDEXTYPE' 'IS' qualified_name )? ora_configs
{
string_literal240 = (Token) match(input, 63, FOLLOW_63_in_create_index1312);
stream_63.add(string_literal240);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:25: ( 'UNIQUE' )?
int alt35 = 2;
int LA35_0 = input.LA(1);
if ((LA35_0 == 130)) {
alt35 = 1;
}
switch (alt35) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:25: 'UNIQUE'
{
string_literal241 = (Token) match(input, 130, FOLLOW_130_in_create_index1314);
stream_130.add(string_literal241);
}
break;
}
string_literal242 = (Token) match(input, 122, FOLLOW_122_in_create_index1317);
stream_122.add(string_literal242);
pushFollow(FOLLOW_index_name_in_create_index1319);
index_name243 = index_name();
state._fsp--;
stream_index_name.add(index_name243.getTree());
string_literal244 = (Token) match(input, 87, FOLLOW_87_in_create_index1321);
stream_87.add(string_literal244);
pushFollow(FOLLOW_table_name_in_create_index1323);
table_name245 = table_name();
state._fsp--;
stream_table_name.add(table_name245.getTree());
char_literal246 = (Token) match(input, 67, FOLLOW_67_in_create_index1325);
stream_67.add(char_literal246);
pushFollow(FOLLOW_name_list_in_create_index1327);
name_list247 = name_list();
state._fsp--;
stream_name_list.add(name_list247.getTree());
char_literal248 = (Token) match(input, 68, FOLLOW_68_in_create_index1329);
stream_68.add(char_literal248);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:88: ( 'INDEXTYPE' 'IS' qualified_name )?
int alt36 = 2;
int LA36_0 = input.LA(1);
if ((LA36_0 == 133)) {
alt36 = 1;
}
switch (alt36) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:89: 'INDEXTYPE' 'IS' qualified_name
{
string_literal249 = (Token) match(input, 133, FOLLOW_133_in_create_index1332);
stream_133.add(string_literal249);
string_literal250 = (Token) match(input, IS, FOLLOW_IS_in_create_index1334);
stream_IS.add(string_literal250);
pushFollow(FOLLOW_qualified_name_in_create_index1336);
qualified_name251 = qualified_name();
state._fsp--;
stream_qualified_name.add(qualified_name251.getTree());
}
break;
}
pushFollow(FOLLOW_ora_configs_in_create_index1340);
ora_configs252 = ora_configs();
state._fsp--;
stream_ora_configs.add(ora_configs252.getTree());
// AST REWRITE
// elements: index_name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 216:135: -> ^( CREATE_INDEX index_name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:216:138: ^( CREATE_INDEX index_name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(CREATE_INDEX, "CREATE_INDEX"), root_1);
adaptor.addChild(root_1, stream_index_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "create_index"
/**
* The type Index name return.
*/
public static class index_name_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Index name sql parser . index name return.
*
* @return the sql parser . index name return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "index_name"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:217:1: index_name : qualified_name -> ^( INDEX_NAME qualified_name ) ;
public final SQLParser.index_name_return index_name() throws RecognitionException {
SQLParser.index_name_return retval = new SQLParser.index_name_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.qualified_name_return qualified_name253 = null;
RewriteRuleSubtreeStream stream_qualified_name = new RewriteRuleSubtreeStream(adaptor, "rule qualified_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:217:12: ( qualified_name -> ^( INDEX_NAME qualified_name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:217:14: qualified_name
{
pushFollow(FOLLOW_qualified_name_in_index_name1355);
qualified_name253 = qualified_name();
state._fsp--;
stream_qualified_name.add(qualified_name253.getTree());
// AST REWRITE
// elements: qualified_name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 217:29: -> ^( INDEX_NAME qualified_name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:217:32: ^( INDEX_NAME qualified_name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(INDEX_NAME, "INDEX_NAME"), root_1);
adaptor.addChild(root_1, stream_qualified_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "index_name"
/**
* The type Drop index return.
*/
public static class drop_index_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Drop index sql parser . drop index return.
*
* @return the sql parser . drop index return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "drop_index"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:221:1: drop_index : 'DROP' 'INDEX' index_name ;
public final SQLParser.drop_index_return drop_index() throws RecognitionException {
SQLParser.drop_index_return retval = new SQLParser.drop_index_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal254 = null;
Token string_literal255 = null;
SQLParser.index_name_return index_name256 = null;
Object string_literal254_tree = null;
Object string_literal255_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:221:12: ( 'DROP' 'INDEX' index_name )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:221:14: 'DROP' 'INDEX' index_name
{
root_0 = (Object) adaptor.nil();
string_literal254 = (Token) match(input, 124, FOLLOW_124_in_drop_index1373);
string_literal254_tree = (Object) adaptor.create(string_literal254);
adaptor.addChild(root_0, string_literal254_tree);
string_literal255 = (Token) match(input, 122, FOLLOW_122_in_drop_index1375);
string_literal255_tree = (Object) adaptor.create(string_literal255);
adaptor.addChild(root_0, string_literal255_tree);
pushFollow(FOLLOW_index_name_in_drop_index1377);
index_name256 = index_name();
state._fsp--;
adaptor.addChild(root_0, index_name256.getTree());
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "drop_index"
/**
* The type Create sequence return.
*/
public static class create_sequence_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Create sequence sql parser . create sequence return.
*
* @return the sql parser . create sequence return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "create_sequence"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:224:1: create_sequence : 'CREATE' 'SEQUENCE' name -> ^( CREATE_SEQUENCE name ) ;
public final SQLParser.create_sequence_return create_sequence() throws RecognitionException {
SQLParser.create_sequence_return retval = new SQLParser.create_sequence_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal257 = null;
Token string_literal258 = null;
SQLParser.name_return name259 = null;
Object string_literal257_tree = null;
Object string_literal258_tree = null;
RewriteRuleTokenStream stream_134 = new RewriteRuleTokenStream(adaptor, "token 134");
RewriteRuleTokenStream stream_63 = new RewriteRuleTokenStream(adaptor, "token 63");
RewriteRuleSubtreeStream stream_name = new RewriteRuleSubtreeStream(adaptor, "rule name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:224:17: ( 'CREATE' 'SEQUENCE' name -> ^( CREATE_SEQUENCE name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:224:19: 'CREATE' 'SEQUENCE' name
{
string_literal257 = (Token) match(input, 63, FOLLOW_63_in_create_sequence1386);
stream_63.add(string_literal257);
string_literal258 = (Token) match(input, 134, FOLLOW_134_in_create_sequence1388);
stream_134.add(string_literal258);
pushFollow(FOLLOW_name_in_create_sequence1390);
name259 = name();
state._fsp--;
stream_name.add(name259.getTree());
// AST REWRITE
// elements: name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 224:44: -> ^( CREATE_SEQUENCE name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:224:47: ^( CREATE_SEQUENCE name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(CREATE_SEQUENCE, "CREATE_SEQUENCE"), root_1);
adaptor.addChild(root_1, stream_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "create_sequence"
/**
* The type Drop sequence return.
*/
public static class drop_sequence_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Drop sequence sql parser . drop sequence return.
*
* @return the sql parser . drop sequence return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "drop_sequence"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:225:1: drop_sequence : 'DROP' 'SEQUENCE' name -> ^( DROP_SEQUENCE name ) ;
public final SQLParser.drop_sequence_return drop_sequence() throws RecognitionException {
SQLParser.drop_sequence_return retval = new SQLParser.drop_sequence_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal260 = null;
Token string_literal261 = null;
SQLParser.name_return name262 = null;
Object string_literal260_tree = null;
Object string_literal261_tree = null;
RewriteRuleTokenStream stream_134 = new RewriteRuleTokenStream(adaptor, "token 134");
RewriteRuleTokenStream stream_124 = new RewriteRuleTokenStream(adaptor, "token 124");
RewriteRuleSubtreeStream stream_name = new RewriteRuleSubtreeStream(adaptor, "rule name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:225:15: ( 'DROP' 'SEQUENCE' name -> ^( DROP_SEQUENCE name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:225:17: 'DROP' 'SEQUENCE' name
{
string_literal260 = (Token) match(input, 124, FOLLOW_124_in_drop_sequence1405);
stream_124.add(string_literal260);
string_literal261 = (Token) match(input, 134, FOLLOW_134_in_drop_sequence1407);
stream_134.add(string_literal261);
pushFollow(FOLLOW_name_in_drop_sequence1409);
name262 = name();
state._fsp--;
stream_name.add(name262.getTree());
// AST REWRITE
// elements: name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 225:40: -> ^( DROP_SEQUENCE name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:225:43: ^( DROP_SEQUENCE name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(DROP_SEQUENCE, "DROP_SEQUENCE"), root_1);
adaptor.addChild(root_1, stream_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "drop_sequence"
/**
* The type Comment return.
*/
public static class comment_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Comment sql parser . comment return.
*
* @return the sql parser . comment return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "comment"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:1: comment : 'COMMENT' 'ON' ( table_comment_details | column_comment_details ) ;
public final SQLParser.comment_return comment() throws RecognitionException {
SQLParser.comment_return retval = new SQLParser.comment_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal263 = null;
Token string_literal264 = null;
SQLParser.table_comment_details_return table_comment_details265 = null;
SQLParser.column_comment_details_return column_comment_details266 = null;
Object string_literal263_tree = null;
Object string_literal264_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:10: ( 'COMMENT' 'ON' ( table_comment_details | column_comment_details ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:12: 'COMMENT' 'ON' ( table_comment_details | column_comment_details )
{
root_0 = (Object) adaptor.nil();
string_literal263 = (Token) match(input, 135, FOLLOW_135_in_comment1427);
string_literal264 = (Token) match(input, 87, FOLLOW_87_in_comment1430);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:29: ( table_comment_details | column_comment_details )
int alt37 = 2;
int LA37_0 = input.LA(1);
if ((LA37_0 == 66)) {
alt37 = 1;
} else if ((LA37_0 == 136)) {
alt37 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 37, 0, input);
throw nvae;
}
switch (alt37) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:30: table_comment_details
{
pushFollow(FOLLOW_table_comment_details_in_comment1434);
table_comment_details265 = table_comment_details();
state._fsp--;
adaptor.addChild(root_0, table_comment_details265.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:228:54: column_comment_details
{
pushFollow(FOLLOW_column_comment_details_in_comment1438);
column_comment_details266 = column_comment_details();
state._fsp--;
adaptor.addChild(root_0, column_comment_details266.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "comment"
/**
* The type Table comment details return.
*/
public static class table_comment_details_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Table comment details sql parser . table comment details return.
*
* @return the sql parser . table comment details return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "table_comment_details"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:229:1: table_comment_details : 'TABLE' table_name 'IS' STRING -> ^( COMMENT_TABLE table_name STRING ) ;
public final SQLParser.table_comment_details_return table_comment_details() throws RecognitionException {
SQLParser.table_comment_details_return retval = new SQLParser.table_comment_details_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal267 = null;
Token string_literal269 = null;
Token STRING270 = null;
SQLParser.table_name_return table_name268 = null;
Object string_literal267_tree = null;
Object string_literal269_tree = null;
Object STRING270_tree = null;
RewriteRuleTokenStream stream_66 = new RewriteRuleTokenStream(adaptor, "token 66");
RewriteRuleTokenStream stream_IS = new RewriteRuleTokenStream(adaptor, "token IS");
RewriteRuleTokenStream stream_STRING = new RewriteRuleTokenStream(adaptor, "token STRING");
RewriteRuleSubtreeStream stream_table_name = new RewriteRuleSubtreeStream(adaptor, "rule table_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:230:3: ( 'TABLE' table_name 'IS' STRING -> ^( COMMENT_TABLE table_name STRING ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:230:5: 'TABLE' table_name 'IS' STRING
{
string_literal267 = (Token) match(input, 66, FOLLOW_66_in_table_comment_details1448);
stream_66.add(string_literal267);
pushFollow(FOLLOW_table_name_in_table_comment_details1450);
table_name268 = table_name();
state._fsp--;
stream_table_name.add(table_name268.getTree());
string_literal269 = (Token) match(input, IS, FOLLOW_IS_in_table_comment_details1452);
stream_IS.add(string_literal269);
STRING270 = (Token) match(input, STRING, FOLLOW_STRING_in_table_comment_details1454);
stream_STRING.add(STRING270);
// AST REWRITE
// elements: table_name, STRING
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 230:36: -> ^( COMMENT_TABLE table_name STRING )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:230:39: ^( COMMENT_TABLE table_name STRING )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(COMMENT_TABLE, "COMMENT_TABLE"), root_1);
adaptor.addChild(root_1, stream_table_name.nextTree());
adaptor.addChild(root_1, stream_STRING.nextNode());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "table_comment_details"
/**
* The type Column comment details return.
*/
public static class column_comment_details_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Column comment details sql parser . column comment details return.
*
* @return the sql parser . column comment details return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "column_comment_details"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:231:1: column_comment_details : 'COLUMN' column_name 'IS' STRING -> ^( COMMENT_COLUMN column_name STRING ) ;
public final SQLParser.column_comment_details_return column_comment_details() throws RecognitionException {
SQLParser.column_comment_details_return retval = new SQLParser.column_comment_details_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal271 = null;
Token string_literal273 = null;
Token STRING274 = null;
SQLParser.column_name_return column_name272 = null;
Object string_literal271_tree = null;
Object string_literal273_tree = null;
Object STRING274_tree = null;
RewriteRuleTokenStream stream_136 = new RewriteRuleTokenStream(adaptor, "token 136");
RewriteRuleTokenStream stream_IS = new RewriteRuleTokenStream(adaptor, "token IS");
RewriteRuleTokenStream stream_STRING = new RewriteRuleTokenStream(adaptor, "token STRING");
RewriteRuleSubtreeStream stream_column_name = new RewriteRuleSubtreeStream(adaptor, "rule column_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:232:3: ( 'COLUMN' column_name 'IS' STRING -> ^( COMMENT_COLUMN column_name STRING ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:232:5: 'COLUMN' column_name 'IS' STRING
{
string_literal271 = (Token) match(input, 136, FOLLOW_136_in_column_comment_details1473);
stream_136.add(string_literal271);
pushFollow(FOLLOW_column_name_in_column_comment_details1475);
column_name272 = column_name();
state._fsp--;
stream_column_name.add(column_name272.getTree());
string_literal273 = (Token) match(input, IS, FOLLOW_IS_in_column_comment_details1477);
stream_IS.add(string_literal273);
STRING274 = (Token) match(input, STRING, FOLLOW_STRING_in_column_comment_details1479);
stream_STRING.add(STRING274);
// AST REWRITE
// elements: column_name, STRING
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 232:38: -> ^( COMMENT_COLUMN column_name STRING )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:232:41: ^( COMMENT_COLUMN column_name STRING )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(COMMENT_COLUMN, "COMMENT_COLUMN"), root_1);
adaptor.addChild(root_1, stream_column_name.nextTree());
adaptor.addChild(root_1, stream_STRING.nextNode());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "column_comment_details"
/**
* The type Column name return.
*/
public static class column_name_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Column name sql parser . column name return.
*
* @return the sql parser . column name return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "column_name"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:233:1: column_name : qualified_name -> ^( COLUMN_NAME qualified_name ) ;
public final SQLParser.column_name_return column_name() throws RecognitionException {
SQLParser.column_name_return retval = new SQLParser.column_name_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.qualified_name_return qualified_name275 = null;
RewriteRuleSubtreeStream stream_qualified_name = new RewriteRuleSubtreeStream(adaptor, "rule qualified_name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:233:13: ( qualified_name -> ^( COLUMN_NAME qualified_name ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:233:15: qualified_name
{
pushFollow(FOLLOW_qualified_name_in_column_name1496);
qualified_name275 = qualified_name();
state._fsp--;
stream_qualified_name.add(qualified_name275.getTree());
// AST REWRITE
// elements: qualified_name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 233:30: -> ^( COLUMN_NAME qualified_name )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:233:33: ^( COLUMN_NAME qualified_name )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(COLUMN_NAME, "COLUMN_NAME"), root_1);
adaptor.addChild(root_1, stream_qualified_name.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "column_name"
/**
* The type Expression return.
*/
public static class expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Expression sql parser . expression return.
*
* @return the sql parser . expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:236:1: expression : and_expression ( 'OR' and_expression )* ;
public final SQLParser.expression_return expression() throws RecognitionException {
SQLParser.expression_return retval = new SQLParser.expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal277 = null;
SQLParser.and_expression_return and_expression276 = null;
SQLParser.and_expression_return and_expression278 = null;
Object string_literal277_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:236:13: ( and_expression ( 'OR' and_expression )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:236:15: and_expression ( 'OR' and_expression )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_and_expression_in_expression1514);
and_expression276 = and_expression();
state._fsp--;
adaptor.addChild(root_0, and_expression276.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:236:30: ( 'OR' and_expression )*
loop38:
do {
int alt38 = 2;
int LA38_0 = input.LA(1);
if ((LA38_0 == OR)) {
alt38 = 1;
}
switch (alt38) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:236:31: 'OR' and_expression
{
string_literal277 = (Token) match(input, OR, FOLLOW_OR_in_expression1517);
string_literal277_tree = (Object) adaptor.create(string_literal277);
root_0 = (Object) adaptor.becomeRoot(string_literal277_tree, root_0);
pushFollow(FOLLOW_and_expression_in_expression1520);
and_expression278 = and_expression();
state._fsp--;
adaptor.addChild(root_0, and_expression278.getTree());
}
break;
default:
break loop38;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "expression"
/**
* The type And expression return.
*/
public static class and_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* And expression sql parser . and expression return.
*
* @return the sql parser . and expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "and_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:237:1: and_expression : exclusive_or_expression ( 'AND' exclusive_or_expression )* ;
public final SQLParser.and_expression_return and_expression() throws RecognitionException {
SQLParser.and_expression_return retval = new SQLParser.and_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal280 = null;
SQLParser.exclusive_or_expression_return exclusive_or_expression279 = null;
SQLParser.exclusive_or_expression_return exclusive_or_expression281 = null;
Object string_literal280_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:237:17: ( exclusive_or_expression ( 'AND' exclusive_or_expression )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:237:19: exclusive_or_expression ( 'AND' exclusive_or_expression )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_exclusive_or_expression_in_and_expression1531);
exclusive_or_expression279 = exclusive_or_expression();
state._fsp--;
adaptor.addChild(root_0, exclusive_or_expression279.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:237:43: ( 'AND' exclusive_or_expression )*
loop39:
do {
int alt39 = 2;
int LA39_0 = input.LA(1);
if ((LA39_0 == AND)) {
alt39 = 1;
}
switch (alt39) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:237:44: 'AND' exclusive_or_expression
{
string_literal280 = (Token) match(input, AND, FOLLOW_AND_in_and_expression1534);
string_literal280_tree = (Object) adaptor.create(string_literal280);
root_0 = (Object) adaptor.becomeRoot(string_literal280_tree, root_0);
pushFollow(FOLLOW_exclusive_or_expression_in_and_expression1537);
exclusive_or_expression281 = exclusive_or_expression();
state._fsp--;
adaptor.addChild(root_0, exclusive_or_expression281.getTree());
}
break;
default:
break loop39;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "and_expression"
/**
* The type Exclusive or expression return.
*/
public static class exclusive_or_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Exclusive or expression sql parser . exclusive or expression return.
*
* @return the sql parser . exclusive or expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "exclusive_or_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:238:1: exclusive_or_expression : equality_expression ( 'XOR' equality_expression )? ;
public final SQLParser.exclusive_or_expression_return exclusive_or_expression() throws RecognitionException {
SQLParser.exclusive_or_expression_return retval = new SQLParser.exclusive_or_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal283 = null;
SQLParser.equality_expression_return equality_expression282 = null;
SQLParser.equality_expression_return equality_expression284 = null;
Object string_literal283_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:238:25: ( equality_expression ( 'XOR' equality_expression )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:238:27: equality_expression ( 'XOR' equality_expression )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_equality_expression_in_exclusive_or_expression1546);
equality_expression282 = equality_expression();
state._fsp--;
adaptor.addChild(root_0, equality_expression282.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:238:47: ( 'XOR' equality_expression )?
int alt40 = 2;
int LA40_0 = input.LA(1);
if ((LA40_0 == XOR)) {
alt40 = 1;
}
switch (alt40) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:238:48: 'XOR' equality_expression
{
string_literal283 = (Token) match(input, XOR, FOLLOW_XOR_in_exclusive_or_expression1549);
string_literal283_tree = (Object) adaptor.create(string_literal283);
root_0 = (Object) adaptor.becomeRoot(string_literal283_tree, root_0);
pushFollow(FOLLOW_equality_expression_in_exclusive_or_expression1552);
equality_expression284 = equality_expression();
state._fsp--;
adaptor.addChild(root_0, equality_expression284.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "exclusive_or_expression"
/**
* The type Equality expression return.
*/
public static class equality_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Equality expression sql parser . equality expression return.
*
* @return the sql parser . equality expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "equality_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:239:1: equality_expression : null_comparison ( ( '=' | '!=' | '<>' ) null_comparison )? ;
public final SQLParser.equality_expression_return equality_expression() throws RecognitionException {
SQLParser.equality_expression_return retval = new SQLParser.equality_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set286 = null;
SQLParser.null_comparison_return null_comparison285 = null;
SQLParser.null_comparison_return null_comparison287 = null;
Object set286_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:239:21: ( null_comparison ( ( '=' | '!=' | '<>' ) null_comparison )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:239:23: null_comparison ( ( '=' | '!=' | '<>' ) null_comparison )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_null_comparison_in_equality_expression1561);
null_comparison285 = null_comparison();
state._fsp--;
adaptor.addChild(root_0, null_comparison285.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:239:39: ( ( '=' | '!=' | '<>' ) null_comparison )?
int alt41 = 2;
int LA41_0 = input.LA(1);
if (((LA41_0 >= EQ && LA41_0 <= LTGT))) {
alt41 = 1;
}
switch (alt41) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:239:40: ( '=' | '!=' | '<>' ) null_comparison
{
set286 = (Token) input.LT(1);
set286 = (Token) input.LT(1);
if ((input.LA(1) >= EQ && input.LA(1) <= LTGT)) {
input.consume();
root_0 = (Object) adaptor.becomeRoot((Object) adaptor.create(set286), root_0);
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
pushFollow(FOLLOW_null_comparison_in_equality_expression1577);
null_comparison287 = null_comparison();
state._fsp--;
adaptor.addChild(root_0, null_comparison287.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "equality_expression"
/**
* The type Null comparison return.
*/
public static class null_comparison_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Null comparison sql parser . null comparison return.
*
* @return the sql parser . null comparison return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "null_comparison"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:1: null_comparison : relational_expression ( 'IS' ( 'NOT' )? 'NULL' )? ;
public final SQLParser.null_comparison_return null_comparison() throws RecognitionException {
SQLParser.null_comparison_return retval = new SQLParser.null_comparison_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal289 = null;
Token string_literal290 = null;
Token string_literal291 = null;
SQLParser.relational_expression_return relational_expression288 = null;
Object string_literal289_tree = null;
Object string_literal290_tree = null;
Object string_literal291_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:18: ( relational_expression ( 'IS' ( 'NOT' )? 'NULL' )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:20: relational_expression ( 'IS' ( 'NOT' )? 'NULL' )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_relational_expression_in_null_comparison1587);
relational_expression288 = relational_expression();
state._fsp--;
adaptor.addChild(root_0, relational_expression288.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:42: ( 'IS' ( 'NOT' )? 'NULL' )?
int alt43 = 2;
int LA43_0 = input.LA(1);
if ((LA43_0 == IS)) {
alt43 = 1;
}
switch (alt43) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:43: 'IS' ( 'NOT' )? 'NULL'
{
string_literal289 = (Token) match(input, IS, FOLLOW_IS_in_null_comparison1590);
string_literal289_tree = (Object) adaptor.create(string_literal289);
root_0 = (Object) adaptor.becomeRoot(string_literal289_tree, root_0);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:49: ( 'NOT' )?
int alt42 = 2;
int LA42_0 = input.LA(1);
if ((LA42_0 == NOT)) {
alt42 = 1;
}
switch (alt42) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:240:49: 'NOT'
{
string_literal290 = (Token) match(input, NOT, FOLLOW_NOT_in_null_comparison1593);
string_literal290_tree = (Object) adaptor.create(string_literal290);
adaptor.addChild(root_0, string_literal290_tree);
}
break;
}
string_literal291 = (Token) match(input, NULL, FOLLOW_NULL_in_null_comparison1596);
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "null_comparison"
/**
* The type Relational expression return.
*/
public static class relational_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Relational expression sql parser . relational expression return.
*
* @return the sql parser . relational expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "relational_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:241:1: relational_expression : like_expression ( ( '<=' | '>=' | '<' | '>' ) like_expression )? ;
public final SQLParser.relational_expression_return relational_expression() throws RecognitionException {
SQLParser.relational_expression_return retval = new SQLParser.relational_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set293 = null;
SQLParser.like_expression_return like_expression292 = null;
SQLParser.like_expression_return like_expression294 = null;
Object set293_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:241:23: ( like_expression ( ( '<=' | '>=' | '<' | '>' ) like_expression )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:241:25: like_expression ( ( '<=' | '>=' | '<' | '>' ) like_expression )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_like_expression_in_relational_expression1606);
like_expression292 = like_expression();
state._fsp--;
adaptor.addChild(root_0, like_expression292.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:241:41: ( ( '<=' | '>=' | '<' | '>' ) like_expression )?
int alt44 = 2;
int LA44_0 = input.LA(1);
if (((LA44_0 >= GT && LA44_0 <= LE))) {
alt44 = 1;
}
switch (alt44) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:241:42: ( '<=' | '>=' | '<' | '>' ) like_expression
{
set293 = (Token) input.LT(1);
set293 = (Token) input.LT(1);
if ((input.LA(1) >= GT && input.LA(1) <= LE)) {
input.consume();
root_0 = (Object) adaptor.becomeRoot((Object) adaptor.create(set293), root_0);
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
pushFollow(FOLLOW_like_expression_in_relational_expression1626);
like_expression294 = like_expression();
state._fsp--;
adaptor.addChild(root_0, like_expression294.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "relational_expression"
/**
* The type Like expression return.
*/
public static class like_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Like expression sql parser . like expression return.
*
* @return the sql parser . like expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "like_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:1: like_expression : in_expression ( ( 'NOT' )? 'LIKE' unary_expression )? ;
public final SQLParser.like_expression_return like_expression() throws RecognitionException {
SQLParser.like_expression_return retval = new SQLParser.like_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal296 = null;
Token string_literal297 = null;
SQLParser.in_expression_return in_expression295 = null;
SQLParser.unary_expression_return unary_expression298 = null;
Object string_literal296_tree = null;
Object string_literal297_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:18: ( in_expression ( ( 'NOT' )? 'LIKE' unary_expression )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:20: in_expression ( ( 'NOT' )? 'LIKE' unary_expression )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_in_expression_in_like_expression1636);
in_expression295 = in_expression();
state._fsp--;
adaptor.addChild(root_0, in_expression295.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:34: ( ( 'NOT' )? 'LIKE' unary_expression )?
int alt46 = 2;
int LA46_0 = input.LA(1);
if ((LA46_0 == NOT || LA46_0 == LIKE)) {
alt46 = 1;
}
switch (alt46) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:35: ( 'NOT' )? 'LIKE' unary_expression
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:35: ( 'NOT' )?
int alt45 = 2;
int LA45_0 = input.LA(1);
if ((LA45_0 == NOT)) {
alt45 = 1;
}
switch (alt45) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:242:35: 'NOT'
{
string_literal296 = (Token) match(input, NOT, FOLLOW_NOT_in_like_expression1639);
string_literal296_tree = (Object) adaptor.create(string_literal296);
adaptor.addChild(root_0, string_literal296_tree);
}
break;
}
string_literal297 = (Token) match(input, LIKE, FOLLOW_LIKE_in_like_expression1642);
string_literal297_tree = (Object) adaptor.create(string_literal297);
root_0 = (Object) adaptor.becomeRoot(string_literal297_tree, root_0);
pushFollow(FOLLOW_unary_expression_in_like_expression1645);
unary_expression298 = unary_expression();
state._fsp--;
adaptor.addChild(root_0, unary_expression298.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "like_expression"
/**
* The type In expression return.
*/
public static class in_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* In expression sql parser . in expression return.
*
* @return the sql parser . in expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "in_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:1: in_expression : between_expression ( ( 'NOT' )? 'IN' '(' value_list ')' )? ;
public final SQLParser.in_expression_return in_expression() throws RecognitionException {
SQLParser.in_expression_return retval = new SQLParser.in_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal300 = null;
Token string_literal301 = null;
Token char_literal302 = null;
Token char_literal304 = null;
SQLParser.between_expression_return between_expression299 = null;
SQLParser.value_list_return value_list303 = null;
Object string_literal300_tree = null;
Object string_literal301_tree = null;
Object char_literal302_tree = null;
Object char_literal304_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:16: ( between_expression ( ( 'NOT' )? 'IN' '(' value_list ')' )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:18: between_expression ( ( 'NOT' )? 'IN' '(' value_list ')' )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_between_expression_in_in_expression1655);
between_expression299 = between_expression();
state._fsp--;
adaptor.addChild(root_0, between_expression299.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:37: ( ( 'NOT' )? 'IN' '(' value_list ')' )?
int alt48 = 2;
int LA48_0 = input.LA(1);
if ((LA48_0 == NOT)) {
int LA48_1 = input.LA(2);
if ((LA48_1 == IN)) {
alt48 = 1;
}
} else if ((LA48_0 == IN)) {
alt48 = 1;
}
switch (alt48) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:38: ( 'NOT' )? 'IN' '(' value_list ')'
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:38: ( 'NOT' )?
int alt47 = 2;
int LA47_0 = input.LA(1);
if ((LA47_0 == NOT)) {
alt47 = 1;
}
switch (alt47) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:243:38: 'NOT'
{
string_literal300 = (Token) match(input, NOT, FOLLOW_NOT_in_in_expression1658);
string_literal300_tree = (Object) adaptor.create(string_literal300);
adaptor.addChild(root_0, string_literal300_tree);
}
break;
}
string_literal301 = (Token) match(input, IN, FOLLOW_IN_in_in_expression1661);
string_literal301_tree = (Object) adaptor.create(string_literal301);
root_0 = (Object) adaptor.becomeRoot(string_literal301_tree, root_0);
char_literal302 = (Token) match(input, 67, FOLLOW_67_in_in_expression1664);
pushFollow(FOLLOW_value_list_in_in_expression1667);
value_list303 = value_list();
state._fsp--;
adaptor.addChild(root_0, value_list303.getTree());
char_literal304 = (Token) match(input, 68, FOLLOW_68_in_in_expression1669);
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "in_expression"
/**
* The type Between expression return.
*/
public static class between_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Between expression sql parser . between expression return.
*
* @return the sql parser . between expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "between_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:244:1: between_expression : additive_expression ( 'BETWEEN' additive_expression 'AND' additive_expression )? ;
public final SQLParser.between_expression_return between_expression() throws RecognitionException {
SQLParser.between_expression_return retval = new SQLParser.between_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token string_literal306 = null;
Token string_literal308 = null;
SQLParser.additive_expression_return additive_expression305 = null;
SQLParser.additive_expression_return additive_expression307 = null;
SQLParser.additive_expression_return additive_expression309 = null;
Object string_literal306_tree = null;
Object string_literal308_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:244:20: ( additive_expression ( 'BETWEEN' additive_expression 'AND' additive_expression )? )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:244:22: additive_expression ( 'BETWEEN' additive_expression 'AND' additive_expression )?
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_additive_expression_in_between_expression1679);
additive_expression305 = additive_expression();
state._fsp--;
adaptor.addChild(root_0, additive_expression305.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:244:42: ( 'BETWEEN' additive_expression 'AND' additive_expression )?
int alt49 = 2;
int LA49_0 = input.LA(1);
if ((LA49_0 == BETWEEN)) {
alt49 = 1;
}
switch (alt49) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:244:43: 'BETWEEN' additive_expression 'AND' additive_expression
{
string_literal306 = (Token) match(input, BETWEEN, FOLLOW_BETWEEN_in_between_expression1682);
string_literal306_tree = (Object) adaptor.create(string_literal306);
root_0 = (Object) adaptor.becomeRoot(string_literal306_tree, root_0);
pushFollow(FOLLOW_additive_expression_in_between_expression1685);
additive_expression307 = additive_expression();
state._fsp--;
adaptor.addChild(root_0, additive_expression307.getTree());
string_literal308 = (Token) match(input, AND, FOLLOW_AND_in_between_expression1687);
pushFollow(FOLLOW_additive_expression_in_between_expression1690);
additive_expression309 = additive_expression();
state._fsp--;
adaptor.addChild(root_0, additive_expression309.getTree());
}
break;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "between_expression"
/**
* The type Additive expression return.
*/
public static class additive_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Additive expression sql parser . additive expression return.
*
* @return the sql parser . additive expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "additive_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:245:1: additive_expression : multiplicative_expression ( ( '+' | '-' | '||' ) multiplicative_expression )* ;
public final SQLParser.additive_expression_return additive_expression() throws RecognitionException {
SQLParser.additive_expression_return retval = new SQLParser.additive_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set311 = null;
SQLParser.multiplicative_expression_return multiplicative_expression310 = null;
SQLParser.multiplicative_expression_return multiplicative_expression312 = null;
Object set311_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:245:21: ( multiplicative_expression ( ( '+' | '-' | '||' ) multiplicative_expression )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:245:23: multiplicative_expression ( ( '+' | '-' | '||' ) multiplicative_expression )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_multiplicative_expression_in_additive_expression1699);
multiplicative_expression310 = multiplicative_expression();
state._fsp--;
adaptor.addChild(root_0, multiplicative_expression310.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:245:49: ( ( '+' | '-' | '||' ) multiplicative_expression )*
loop50:
do {
int alt50 = 2;
int LA50_0 = input.LA(1);
if (((LA50_0 >= PLUS && LA50_0 <= SUB) || LA50_0 == BARBAR)) {
alt50 = 1;
}
switch (alt50) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:245:50: ( '+' | '-' | '||' ) multiplicative_expression
{
set311 = (Token) input.LT(1);
set311 = (Token) input.LT(1);
if ((input.LA(1) >= PLUS && input.LA(1) <= SUB) || input.LA(1) == BARBAR) {
input.consume();
root_0 = (Object) adaptor.becomeRoot((Object) adaptor.create(set311), root_0);
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
pushFollow(FOLLOW_multiplicative_expression_in_additive_expression1715);
multiplicative_expression312 = multiplicative_expression();
state._fsp--;
adaptor.addChild(root_0, multiplicative_expression312.getTree());
}
break;
default:
break loop50;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "additive_expression"
/**
* The type Multiplicative expression return.
*/
public static class multiplicative_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Multiplicative expression sql parser . multiplicative expression return.
*
* @return the sql parser . multiplicative expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "multiplicative_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:246:1: multiplicative_expression : unary_expression ( ( '*' | '/' | '%' ) unary_expression )* ;
public final SQLParser.multiplicative_expression_return multiplicative_expression() throws RecognitionException {
SQLParser.multiplicative_expression_return retval = new SQLParser.multiplicative_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set314 = null;
SQLParser.unary_expression_return unary_expression313 = null;
SQLParser.unary_expression_return unary_expression315 = null;
Object set314_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:246:26: ( unary_expression ( ( '*' | '/' | '%' ) unary_expression )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:246:28: unary_expression ( ( '*' | '/' | '%' ) unary_expression )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_unary_expression_in_multiplicative_expression1723);
unary_expression313 = unary_expression();
state._fsp--;
adaptor.addChild(root_0, unary_expression313.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:246:45: ( ( '*' | '/' | '%' ) unary_expression )*
loop51:
do {
int alt51 = 2;
int LA51_0 = input.LA(1);
if (((LA51_0 >= STAR && LA51_0 <= PERCENT))) {
alt51 = 1;
}
switch (alt51) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:246:46: ( '*' | '/' | '%' ) unary_expression
{
set314 = (Token) input.LT(1);
set314 = (Token) input.LT(1);
if ((input.LA(1) >= STAR && input.LA(1) <= PERCENT)) {
input.consume();
root_0 = (Object) adaptor.becomeRoot((Object) adaptor.create(set314), root_0);
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
pushFollow(FOLLOW_unary_expression_in_multiplicative_expression1739);
unary_expression315 = unary_expression();
state._fsp--;
adaptor.addChild(root_0, unary_expression315.getTree());
}
break;
default:
break loop51;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "multiplicative_expression"
/**
* The type Unary expression return.
*/
public static class unary_expression_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Unary expression sql parser . unary expression return.
*
* @return the sql parser . unary expression return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "unary_expression"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:247:1: unary_expression : ( '-' primary | 'NOT' primary | primary );
public final SQLParser.unary_expression_return unary_expression() throws RecognitionException {
SQLParser.unary_expression_return retval = new SQLParser.unary_expression_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal316 = null;
Token string_literal318 = null;
SQLParser.primary_return primary317 = null;
SQLParser.primary_return primary319 = null;
SQLParser.primary_return primary320 = null;
Object char_literal316_tree = null;
Object string_literal318_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:248:5: ( '-' primary | 'NOT' primary | primary )
int alt52 = 3;
switch (input.LA(1)) {
case SUB: {
alt52 = 1;
}
break;
case NOT: {
alt52 = 2;
}
break;
case INT:
case IDENTIFIER:
case STRING:
case QUOTED_NAME:
case PRIMARY:
case DEFAULT:
case COMMENT:
case IS:
case NULL:
case 63:
case 66:
case 67:
case 75:
case 77:
case 78:
case 79:
case 80:
case 81:
case 87:
case 91:
case 99:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 122:
case 123:
case 124:
case 130:
case 134:
case 136:
case 138: {
alt52 = 3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:248:9: '-' primary
{
root_0 = (Object) adaptor.nil();
char_literal316 = (Token) match(input, SUB, FOLLOW_SUB_in_unary_expression1755);
char_literal316_tree = (Object) adaptor.create(char_literal316);
root_0 = (Object) adaptor.becomeRoot(char_literal316_tree, root_0);
pushFollow(FOLLOW_primary_in_unary_expression1758);
primary317 = primary();
state._fsp--;
adaptor.addChild(root_0, primary317.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:249:9: 'NOT' primary
{
root_0 = (Object) adaptor.nil();
string_literal318 = (Token) match(input, NOT, FOLLOW_NOT_in_unary_expression1768);
string_literal318_tree = (Object) adaptor.create(string_literal318);
root_0 = (Object) adaptor.becomeRoot(string_literal318_tree, root_0);
pushFollow(FOLLOW_primary_in_unary_expression1771);
primary319 = primary();
state._fsp--;
adaptor.addChild(root_0, primary319.getTree());
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:250:9: primary
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_primary_in_unary_expression1781);
primary320 = primary();
state._fsp--;
adaptor.addChild(root_0, primary320.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "unary_expression"
/**
* The type Primary return.
*/
public static class primary_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Primary sql parser . primary return.
*
* @return the sql parser . primary return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "primary"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:253:1: primary : ( '(' expression ')' | IDENTIFIER arguments -> ^( INVOCATION IDENTIFIER arguments ) | value );
public final SQLParser.primary_return primary() throws RecognitionException {
SQLParser.primary_return retval = new SQLParser.primary_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal321 = null;
Token char_literal323 = null;
Token IDENTIFIER324 = null;
SQLParser.expression_return expression322 = null;
SQLParser.arguments_return arguments325 = null;
SQLParser.value_return value326 = null;
Object char_literal321_tree = null;
Object char_literal323_tree = null;
Object IDENTIFIER324_tree = null;
RewriteRuleTokenStream stream_IDENTIFIER = new RewriteRuleTokenStream(adaptor, "token IDENTIFIER");
RewriteRuleSubtreeStream stream_arguments = new RewriteRuleSubtreeStream(adaptor, "rule arguments");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:254:5: ( '(' expression ')' | IDENTIFIER arguments -> ^( INVOCATION IDENTIFIER arguments ) | value )
int alt53 = 3;
switch (input.LA(1)) {
case 67: {
alt53 = 1;
}
break;
case IDENTIFIER: {
int LA53_2 = input.LA(2);
if ((LA53_2 == 67)) {
alt53 = 2;
} else if ((LA53_2 == EOF || LA53_2 == NOT || (LA53_2 >= OR && LA53_2 <= IS) || (LA53_2 >= IN && LA53_2 <= BARBAR) ||
(LA53_2 >= 68 && LA53_2 <= 69) || (LA53_2 >= 76 && LA53_2 <= 83) || (LA53_2 >= 86 && LA53_2 <= 87) || LA53_2 == 91 || LA53_2 == 98 ||
(LA53_2 >= 109 && LA53_2 <= 118))) {
alt53 = 3;
} else {
NoViableAltException nvae =
new NoViableAltException("", 53, 2, input);
throw nvae;
}
}
break;
case INT:
case STRING:
case QUOTED_NAME:
case PRIMARY:
case DEFAULT:
case COMMENT:
case IS:
case NULL:
case 63:
case 66:
case 75:
case 77:
case 78:
case 79:
case 80:
case 81:
case 87:
case 91:
case 99:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 122:
case 123:
case 124:
case 130:
case 134:
case 136:
case 138: {
alt53 = 3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 53, 0, input);
throw nvae;
}
switch (alt53) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:254:9: '(' expression ')'
{
root_0 = (Object) adaptor.nil();
char_literal321 = (Token) match(input, 67, FOLLOW_67_in_primary1801);
pushFollow(FOLLOW_expression_in_primary1804);
expression322 = expression();
state._fsp--;
adaptor.addChild(root_0, expression322.getTree());
char_literal323 = (Token) match(input, 68, FOLLOW_68_in_primary1806);
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:255:9: IDENTIFIER arguments
{
IDENTIFIER324 = (Token) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_primary1817);
stream_IDENTIFIER.add(IDENTIFIER324);
pushFollow(FOLLOW_arguments_in_primary1819);
arguments325 = arguments();
state._fsp--;
stream_arguments.add(arguments325.getTree());
// AST REWRITE
// elements: arguments, IDENTIFIER
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 255:30: -> ^( INVOCATION IDENTIFIER arguments )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:255:33: ^( INVOCATION IDENTIFIER arguments )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(INVOCATION, "INVOCATION"), root_1);
adaptor.addChild(root_1, stream_IDENTIFIER.nextNode());
adaptor.addChild(root_1, stream_arguments.nextTree());
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:256:9: value
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_value_in_primary1839);
value326 = value();
state._fsp--;
adaptor.addChild(root_0, value326.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "primary"
/**
* The type Arguments return.
*/
public static class arguments_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Arguments sql parser . arguments return.
*
* @return the sql parser . arguments return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "arguments"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:1: arguments : '(' ( expression ( ',' expression )* )? ')' -> ^( ARGUMENTS ( expression )* ) ;
public final SQLParser.arguments_return arguments() throws RecognitionException {
SQLParser.arguments_return retval = new SQLParser.arguments_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal327 = null;
Token char_literal329 = null;
Token char_literal331 = null;
SQLParser.expression_return expression328 = null;
SQLParser.expression_return expression330 = null;
Object char_literal327_tree = null;
Object char_literal329_tree = null;
Object char_literal331_tree = null;
RewriteRuleTokenStream stream_67 = new RewriteRuleTokenStream(adaptor, "token 67");
RewriteRuleTokenStream stream_69 = new RewriteRuleTokenStream(adaptor, "token 69");
RewriteRuleTokenStream stream_68 = new RewriteRuleTokenStream(adaptor, "token 68");
RewriteRuleSubtreeStream stream_expression = new RewriteRuleSubtreeStream(adaptor, "rule expression");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:11: ( '(' ( expression ( ',' expression )* )? ')' -> ^( ARGUMENTS ( expression )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:13: '(' ( expression ( ',' expression )* )? ')'
{
char_literal327 = (Token) match(input, 67, FOLLOW_67_in_arguments1852);
stream_67.add(char_literal327);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:17: ( expression ( ',' expression )* )?
int alt55 = 2;
int LA55_0 = input.LA(1);
if (((LA55_0 >= INT && LA55_0 <= COMMENT) || (LA55_0 >= IS && LA55_0 <= NULL) || LA55_0 == SUB || LA55_0 == 63 ||
(LA55_0 >= 66 && LA55_0 <= 67) || LA55_0 == 75 || (LA55_0 >= 77 && LA55_0 <= 81) || LA55_0 == 87 || LA55_0 == 91 || LA55_0 == 99 ||
(LA55_0 >= 110 && LA55_0 <= 117) || (LA55_0 >= 122 && LA55_0 <= 124) || LA55_0 == 130 || LA55_0 == 134 || LA55_0 == 136 ||
LA55_0 == 138)) {
alt55 = 1;
}
switch (alt55) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:18: expression ( ',' expression )*
{
pushFollow(FOLLOW_expression_in_arguments1855);
expression328 = expression();
state._fsp--;
stream_expression.add(expression328.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:29: ( ',' expression )*
loop54:
do {
int alt54 = 2;
int LA54_0 = input.LA(1);
if ((LA54_0 == 69)) {
alt54 = 1;
}
switch (alt54) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:30: ',' expression
{
char_literal329 = (Token) match(input, 69, FOLLOW_69_in_arguments1858);
stream_69.add(char_literal329);
pushFollow(FOLLOW_expression_in_arguments1860);
expression330 = expression();
state._fsp--;
stream_expression.add(expression330.getTree());
}
break;
default:
break loop54;
}
} while (true);
}
break;
}
char_literal331 = (Token) match(input, 68, FOLLOW_68_in_arguments1866);
stream_68.add(char_literal331);
// AST REWRITE
// elements: expression
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 259:53: -> ^( ARGUMENTS ( expression )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:56: ^( ARGUMENTS ( expression )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(ARGUMENTS, "ARGUMENTS"), root_1);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:259:68: ( expression )*
while (stream_expression.hasNext()) {
adaptor.addChild(root_1, stream_expression.nextTree());
}
stream_expression.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "arguments"
/**
* The type Expression list return.
*/
public static class expression_list_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Expression list sql parser . expression list return.
*
* @return the sql parser . expression list return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "expression_list"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:260:1: expression_list : expression ( ',' expression )* ;
public final SQLParser.expression_list_return expression_list() throws RecognitionException {
SQLParser.expression_list_return retval = new SQLParser.expression_list_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal333 = null;
SQLParser.expression_return expression332 = null;
SQLParser.expression_return expression334 = null;
Object char_literal333_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:260:17: ( expression ( ',' expression )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:260:19: expression ( ',' expression )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_expression_in_expression_list1882);
expression332 = expression();
state._fsp--;
adaptor.addChild(root_0, expression332.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:260:30: ( ',' expression )*
loop56:
do {
int alt56 = 2;
int LA56_0 = input.LA(1);
if ((LA56_0 == 69)) {
alt56 = 1;
}
switch (alt56) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:260:31: ',' expression
{
char_literal333 = (Token) match(input, 69, FOLLOW_69_in_expression_list1885);
pushFollow(FOLLOW_expression_in_expression_list1888);
expression334 = expression();
state._fsp--;
adaptor.addChild(root_0, expression334.getTree());
}
break;
default:
break loop56;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "expression_list"
/**
* The type Qualified name return.
*/
public static class qualified_name_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Qualified name sql parser . qualified name return.
*
* @return the sql parser . qualified name return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "qualified_name"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:261:1: qualified_name : name ( '.' name )* ;
public final SQLParser.qualified_name_return qualified_name() throws RecognitionException {
SQLParser.qualified_name_return retval = new SQLParser.qualified_name_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal336 = null;
SQLParser.name_return name335 = null;
SQLParser.name_return name337 = null;
Object char_literal336_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:261:16: ( name ( '.' name )* )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:261:18: name ( '.' name )*
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_name_in_qualified_name1897);
name335 = name();
state._fsp--;
adaptor.addChild(root_0, name335.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:261:23: ( '.' name )*
loop57:
do {
int alt57 = 2;
int LA57_0 = input.LA(1);
if ((LA57_0 == 137)) {
alt57 = 1;
}
switch (alt57) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:261:24: '.' name
{
char_literal336 = (Token) match(input, 137, FOLLOW_137_in_qualified_name1900);
pushFollow(FOLLOW_name_in_qualified_name1903);
name337 = name();
state._fsp--;
adaptor.addChild(root_0, name337.getTree());
}
break;
default:
break loop57;
}
} while (true);
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "qualified_name"
/**
* The type Value list return.
*/
public static class value_list_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Value list sql parser . value list return.
*
* @return the sql parser . value list return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "value_list"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:1: value_list : value ( ',' value )* -> ^( VALUE_LIST ( value )* ) ;
public final SQLParser.value_list_return value_list() throws RecognitionException {
SQLParser.value_list_return retval = new SQLParser.value_list_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal339 = null;
SQLParser.value_return value338 = null;
SQLParser.value_return value340 = null;
Object char_literal339_tree = null;
RewriteRuleTokenStream stream_69 = new RewriteRuleTokenStream(adaptor, "token 69");
RewriteRuleSubtreeStream stream_value = new RewriteRuleSubtreeStream(adaptor, "rule value");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:12: ( value ( ',' value )* -> ^( VALUE_LIST ( value )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:14: value ( ',' value )*
{
pushFollow(FOLLOW_value_in_value_list1912);
value338 = value();
state._fsp--;
stream_value.add(value338.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:20: ( ',' value )*
loop58:
do {
int alt58 = 2;
int LA58_0 = input.LA(1);
if ((LA58_0 == 69)) {
alt58 = 1;
}
switch (alt58) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:21: ',' value
{
char_literal339 = (Token) match(input, 69, FOLLOW_69_in_value_list1915);
stream_69.add(char_literal339);
pushFollow(FOLLOW_value_in_value_list1917);
value340 = value();
state._fsp--;
stream_value.add(value340.getTree());
}
break;
default:
break loop58;
}
} while (true);
// AST REWRITE
// elements: value
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 262:33: -> ^( VALUE_LIST ( value )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:36: ^( VALUE_LIST ( value )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(VALUE_LIST, "VALUE_LIST"), root_1);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:262:49: ( value )*
while (stream_value.hasNext()) {
adaptor.addChild(root_1, stream_value.nextTree());
}
stream_value.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "value_list"
/**
* The type Value return.
*/
public static class value_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Value sql parser . value return.
*
* @return the sql parser . value return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "value"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:263:1: value : ( name | literal );
public final SQLParser.value_return value() throws RecognitionException {
SQLParser.value_return retval = new SQLParser.value_return();
retval.start = input.LT(1);
Object root_0 = null;
SQLParser.name_return name341 = null;
SQLParser.literal_return literal342 = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:263:8: ( name | literal )
int alt59 = 2;
int LA59_0 = input.LA(1);
if ((LA59_0 == IDENTIFIER || (LA59_0 >= QUOTED_NAME && LA59_0 <= COMMENT) || LA59_0 == IS || LA59_0 == 63 || LA59_0 == 66 || LA59_0 == 75 ||
(LA59_0 >= 77 && LA59_0 <= 81) || LA59_0 == 87 || LA59_0 == 91 || LA59_0 == 99 || (LA59_0 >= 110 && LA59_0 <= 117) ||
(LA59_0 >= 122 && LA59_0 <= 124) || LA59_0 == 130 || LA59_0 == 134 || LA59_0 == 136 || LA59_0 == 138)) {
alt59 = 1;
} else if ((LA59_0 == INT || LA59_0 == STRING || LA59_0 == NULL)) {
alt59 = 2;
} else {
NoViableAltException nvae =
new NoViableAltException("", 59, 0, input);
throw nvae;
}
switch (alt59) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:263:10: name
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_name_in_value1936);
name341 = name();
state._fsp--;
adaptor.addChild(root_0, name341.getTree());
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:263:17: literal
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_literal_in_value1940);
literal342 = literal();
state._fsp--;
adaptor.addChild(root_0, literal342.getTree());
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "value"
/**
* The type Name list return.
*/
public static class name_list_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Name list sql parser . name list return.
*
* @return the sql parser . name list return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "name_list"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:1: name_list : name ( ',' name )* -> ^( NAME_LIST ( name )* ) ;
public final SQLParser.name_list_return name_list() throws RecognitionException {
SQLParser.name_list_return retval = new SQLParser.name_list_return();
retval.start = input.LT(1);
Object root_0 = null;
Token char_literal344 = null;
SQLParser.name_return name343 = null;
SQLParser.name_return name345 = null;
Object char_literal344_tree = null;
RewriteRuleTokenStream stream_69 = new RewriteRuleTokenStream(adaptor, "token 69");
RewriteRuleSubtreeStream stream_name = new RewriteRuleSubtreeStream(adaptor, "rule name");
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:11: ( name ( ',' name )* -> ^( NAME_LIST ( name )* ) )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:13: name ( ',' name )*
{
pushFollow(FOLLOW_name_in_name_list1947);
name343 = name();
state._fsp--;
stream_name.add(name343.getTree());
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:18: ( ',' name )*
loop60:
do {
int alt60 = 2;
int LA60_0 = input.LA(1);
if ((LA60_0 == 69)) {
alt60 = 1;
}
switch (alt60) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:19: ',' name
{
char_literal344 = (Token) match(input, 69, FOLLOW_69_in_name_list1950);
stream_69.add(char_literal344);
pushFollow(FOLLOW_name_in_name_list1952);
name345 = name();
state._fsp--;
stream_name.add(name345.getTree());
}
break;
default:
break loop60;
}
} while (true);
// AST REWRITE
// elements: name
// token labels:
// rule labels: retval
// token list labels:
// rule list labels:
// wildcard labels:
retval.tree = root_0;
RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);
root_0 = (Object) adaptor.nil();
// 264:30: -> ^( NAME_LIST ( name )* )
{
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:33: ^( NAME_LIST ( name )* )
{
Object root_1 = (Object) adaptor.nil();
root_1 = (Object) adaptor.becomeRoot((Object) adaptor.create(NAME_LIST, "NAME_LIST"), root_1);
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:264:45: ( name )*
while (stream_name.hasNext()) {
adaptor.addChild(root_1, stream_name.nextTree());
}
stream_name.reset();
adaptor.addChild(root_0, root_1);
}
}
retval.tree = root_0;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "name_list"
/**
* The type Name return.
*/
public static class name_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Name sql parser . name return.
*
* @return the sql parser . name return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "name"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:1: name : ( IDENTIFIER | ora_key | keyword | QUOTED_NAME );
public final SQLParser.name_return name() throws RecognitionException {
SQLParser.name_return retval = new SQLParser.name_return();
retval.start = input.LT(1);
Object root_0 = null;
Token IDENTIFIER346 = null;
Token QUOTED_NAME349 = null;
SQLParser.ora_key_return ora_key347 = null;
SQLParser.keyword_return keyword348 = null;
Object IDENTIFIER346_tree = null;
Object QUOTED_NAME349_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:7: ( IDENTIFIER | ora_key | keyword | QUOTED_NAME )
int alt61 = 4;
switch (input.LA(1)) {
case IDENTIFIER: {
alt61 = 1;
}
break;
case 77:
case 78:
case 79:
case 80:
case 81:
case 91:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117: {
alt61 = 2;
}
break;
case PRIMARY:
case DEFAULT:
case COMMENT:
case IS:
case 63:
case 66:
case 75:
case 87:
case 99:
case 122:
case 123:
case 124:
case 130:
case 134:
case 136:
case 138: {
alt61 = 3;
}
break;
case QUOTED_NAME: {
alt61 = 4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 61, 0, input);
throw nvae;
}
switch (alt61) {
case 1:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:9: IDENTIFIER
{
root_0 = (Object) adaptor.nil();
IDENTIFIER346 = (Token) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_name1971);
IDENTIFIER346_tree = (Object) adaptor.create(IDENTIFIER346);
adaptor.addChild(root_0, IDENTIFIER346_tree);
}
break;
case 2:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:22: ora_key
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_ora_key_in_name1975);
ora_key347 = ora_key();
state._fsp--;
adaptor.addChild(root_0, ora_key347.getTree());
}
break;
case 3:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:32: keyword
{
root_0 = (Object) adaptor.nil();
pushFollow(FOLLOW_keyword_in_name1979);
keyword348 = keyword();
state._fsp--;
adaptor.addChild(root_0, keyword348.getTree());
}
break;
case 4:
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:265:42: QUOTED_NAME
{
root_0 = (Object) adaptor.nil();
QUOTED_NAME349 = (Token) match(input, QUOTED_NAME, FOLLOW_QUOTED_NAME_in_name1983);
QUOTED_NAME349_tree = (Object) adaptor.create(QUOTED_NAME349);
adaptor.addChild(root_0, QUOTED_NAME349_tree);
}
break;
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "name"
/**
* The type Literal return.
*/
public static class literal_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Literal sql parser . literal return.
*
* @return the sql parser . literal return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "literal"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:267:1: literal : ( INT | STRING | 'NULL' );
public final SQLParser.literal_return literal() throws RecognitionException {
SQLParser.literal_return retval = new SQLParser.literal_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set350 = null;
Object set350_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:267:10: ( INT | STRING | 'NULL' )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:
{
root_0 = (Object) adaptor.nil();
set350 = (Token) input.LT(1);
if (input.LA(1) == INT || input.LA(1) == STRING || input.LA(1) == NULL) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set350));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "literal"
/**
* The type Keyword return.
*/
public static class keyword_return extends ParserRuleReturnScope {
/**
* The Tree.
*/
Object tree;
public Object getTree() {
return tree;
}
}
;
/**
* Keyword sql parser . keyword return.
*
* @return the sql parser . keyword return
* @throws RecognitionException the recognition exception
*/
// $ANTLR start "keyword"
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:269:1: keyword : ( 'CREATE' | 'DROP' | 'ALTER' | 'TABLE' | 'INDEX' | 'SEQUENCE' | 'TRIGGER' | 'UNIQUE' | 'BY' | 'ON' | 'IS' | 'COLUMN' | PRIMARY | 'KEY' | DEFAULT | COMMENT );
public final SQLParser.keyword_return keyword() throws RecognitionException {
SQLParser.keyword_return retval = new SQLParser.keyword_return();
retval.start = input.LT(1);
Object root_0 = null;
Token set351 = null;
Object set351_tree = null;
try {
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:269:9: ( 'CREATE' | 'DROP' | 'ALTER' | 'TABLE' | 'INDEX' | 'SEQUENCE' | 'TRIGGER' | 'UNIQUE' | 'BY' | 'ON' | 'IS' | 'COLUMN' | PRIMARY | 'KEY' | DEFAULT | COMMENT )
// /Users/volker/Documents/databene/jdbacl/src/main/g/SQL.g:
{
root_0 = (Object) adaptor.nil();
set351 = (Token) input.LT(1);
if ((input.LA(1) >= PRIMARY && input.LA(1) <= COMMENT) || input.LA(1) == IS || input.LA(1) == 63 || input.LA(1) == 66 || input.LA(1) == 75 ||
input.LA(1) == 87 || input.LA(1) == 99 || (input.LA(1) >= 122 && input.LA(1) <= 124) || input.LA(1) == 130 || input.LA(1) == 134 ||
input.LA(1) == 136 || input.LA(1) == 138) {
input.consume();
adaptor.addChild(root_0, (Object) adaptor.create(set351));
state.errorRecovery = false;
} else {
MismatchedSetException mse = new MismatchedSetException(null, input);
throw mse;
}
}
retval.stop = input.LT(-1);
retval.tree = (Object) adaptor.rulePostProcessing(root_0);
adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
} catch (RecognitionException e) {
throw e;
} finally {
}
return retval;
}
// $ANTLR end "keyword"
// Delegated rules
/**
* The Dfa 2.
*/
protected DFA2 dfa2 = new DFA2(this);
/**
* The Dfa 2 eot s.
*/
static final String DFA2_eotS =
"\13\uffff";
/**
* The Dfa 2 eof s.
*/
static final String DFA2_eofS =
"\13\uffff";
/**
* The Dfa 2 min s.
*/
static final String DFA2_minS =
"\1\77\1\100\1\uffff\1\102\7\uffff";
/**
* The Dfa 2 max s.
*/
static final String DFA2_maxS =
"\1\u0087\1\u0086\1\uffff\1\u0086\7\uffff";
/**
* The Dfa 2 accept s.
*/
static final String DFA2_acceptS =
"\2\uffff\1\2\1\uffff\1\4\1\7\1\1\1\5\1\3\1\6\1\10";
/**
* The Dfa 2 special s.
*/
static final String DFA2_specialS =
"\13\uffff}>";
/**
* The Dfa 2 transition s.
*/
static final String[] DFA2_transitionS = {
"\1\1\73\uffff\1\4\1\3\12\uffff\1\2",
"\3\6\67\uffff\1\7\7\uffff\1\7\3\uffff\1\5",
"",
"\1\10\67\uffff\1\11\13\uffff\1\12",
"",
"",
"",
"",
"",
"",
""
};
/**
* The Dfa 2 eot.
*/
static final short[] DFA2_eot = DFA.unpackEncodedString(DFA2_eotS);
/**
* The Dfa 2 eof.
*/
static final short[] DFA2_eof = DFA.unpackEncodedString(DFA2_eofS);
/**
* The Dfa 2 min.
*/
static final char[] DFA2_min = DFA.unpackEncodedStringToUnsignedChars(DFA2_minS);
/**
* The Dfa 2 max.
*/
static final char[] DFA2_max = DFA.unpackEncodedStringToUnsignedChars(DFA2_maxS);
/**
* The Dfa 2 accept.
*/
static final short[] DFA2_accept = DFA.unpackEncodedString(DFA2_acceptS);
/**
* The Dfa 2 special.
*/
static final short[] DFA2_special = DFA.unpackEncodedString(DFA2_specialS);
/**
* The Dfa 2 transition.
*/
static final short[][] DFA2_transition;
static {
int numStates = DFA2_transitionS.length;
DFA2_transition = new short[numStates][];
for (int i = 0; i < numStates; i++) {
DFA2_transition[i] = DFA.unpackEncodedString(DFA2_transitionS[i]);
}
}
/**
* The type Dfa 2.
*/
class DFA2 extends DFA {
/**
* Instantiates a new Dfa 2.
*
* @param recognizer the recognizer
*/
public DFA2(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 2;
this.eot = DFA2_eot;
this.eof = DFA2_eof;
this.min = DFA2_min;
this.max = DFA2_max;
this.accept = DFA2_accept;
this.special = DFA2_special;
this.transition = DFA2_transition;
}
public String getDescription() {
return "95:1: command : ( ( create_table ';' ) | ( comment ';' ) | ( drop_table ';' ) | ( alter_table ';' ) | ( create_index ';' ) | ( drop_index ';' ) | ( create_sequence ';' ) | ( drop_sequence ';' ) );";
}
}
/**
* The constant FOLLOW_command_in_commands58.
*/
public static final BitSet FOLLOW_command_in_commands58 = new BitSet(new long[] {0x8000000000000002L, 0x1800000000000000L, 0x0000000000000080L});
/**
* The constant FOLLOW_create_table_in_command68.
*/
public static final BitSet FOLLOW_create_table_in_command68 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command73.
*/
public static final BitSet FOLLOW_62_in_command73 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_comment_in_command81.
*/
public static final BitSet FOLLOW_comment_in_command81 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command91.
*/
public static final BitSet FOLLOW_62_in_command91 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_drop_table_in_command99.
*/
public static final BitSet FOLLOW_drop_table_in_command99 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command106.
*/
public static final BitSet FOLLOW_62_in_command106 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_alter_table_in_command114.
*/
public static final BitSet FOLLOW_alter_table_in_command114 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command120.
*/
public static final BitSet FOLLOW_62_in_command120 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_create_index_in_command128.
*/
public static final BitSet FOLLOW_create_index_in_command128 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command133.
*/
public static final BitSet FOLLOW_62_in_command133 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_drop_index_in_command141.
*/
public static final BitSet FOLLOW_drop_index_in_command141 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command148.
*/
public static final BitSet FOLLOW_62_in_command148 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_create_sequence_in_command156.
*/
public static final BitSet FOLLOW_create_sequence_in_command156 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command158.
*/
public static final BitSet FOLLOW_62_in_command158 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_drop_sequence_in_command166.
*/
public static final BitSet FOLLOW_drop_sequence_in_command166 = new BitSet(new long[] {0x4000000000000000L});
/**
* The constant FOLLOW_62_in_command170.
*/
public static final BitSet FOLLOW_62_in_command170 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_63_in_create_table184.
*/
public static final BitSet FOLLOW_63_in_create_table184 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000007L});
/**
* The constant FOLLOW_64_in_create_table186.
*/
public static final BitSet FOLLOW_64_in_create_table186 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000006L});
/**
* The constant FOLLOW_65_in_create_table189.
*/
public static final BitSet FOLLOW_65_in_create_table189 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000004L});
/**
* The constant FOLLOW_66_in_create_table192.
*/
public static final BitSet FOLLOW_66_in_create_table192 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_create_table194.
*/
public static final BitSet FOLLOW_table_name_in_create_table194 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_create_table196.
*/
public static final BitSet FOLLOW_67_in_create_table196 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883EC04L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_details_in_create_table198.
*/
public static final BitSet FOLLOW_table_details_in_create_table198 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_create_table200.
*/
public static final BitSet FOLLOW_68_in_create_table200 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_create_table202.
*/
public static final BitSet FOLLOW_ora_configs_in_create_table202 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_qualified_name_in_table_name221.
*/
public static final BitSet FOLLOW_qualified_name_in_table_name221 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_table_detail_in_table_details236.
*/
public static final BitSet FOLLOW_table_detail_in_table_details236 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_69_in_table_details239.
*/
public static final BitSet FOLLOW_69_in_table_details239 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883EC04L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_detail_in_table_details241.
*/
public static final BitSet FOLLOW_table_detail_in_table_details241 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_column_spec_in_table_detail259.
*/
public static final BitSet FOLLOW_column_spec_in_table_detail259 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_inline_constraint_in_table_detail263.
*/
public static final BitSet FOLLOW_inline_constraint_in_table_detail263 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_name_in_column_spec270.
*/
public static final BitSet FOLLOW_name_in_column_spec270 = new BitSet(new long[] {0x0EF0000000000000L, 0x00000000000003C0L});
/**
* The constant FOLLOW_type_in_column_spec272.
*/
public static final BitSet FOLLOW_type_in_column_spec272 = new BitSet(new long[] {0x0000080000000422L, 0x0000000000000008L});
/**
* The constant FOLLOW_size_in_column_spec274.
*/
public static final BitSet FOLLOW_size_in_column_spec274 = new BitSet(new long[] {0x0000080000000422L});
/**
* The constant FOLLOW_column_detail_in_column_spec277.
*/
public static final BitSet FOLLOW_column_detail_in_column_spec277 = new BitSet(new long[] {0x0000080000000422L});
/**
* The constant FOLLOW_set_in_type0.
*/
public static final BitSet FOLLOW_set_in_type0 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_67_in_size370.
*/
public static final BitSet FOLLOW_67_in_size370 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_size372.
*/
public static final BitSet FOLLOW_INT_in_size372 = new BitSet(new long[] {0x0300000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_size_uom_in_size374.
*/
public static final BitSet FOLLOW_size_uom_in_size374 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_fractionDigits_in_size377.
*/
public static final BitSet FOLLOW_fractionDigits_in_size377 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_size380.
*/
public static final BitSet FOLLOW_68_in_size380 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_69_in_fractionDigits401.
*/
public static final BitSet FOLLOW_69_in_fractionDigits401 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_fractionDigits404.
*/
public static final BitSet FOLLOW_INT_in_fractionDigits404 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_set_in_size_uom0.
*/
public static final BitSet FOLLOW_set_in_size_uom0 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_nullability_in_column_detail422.
*/
public static final BitSet FOLLOW_nullability_in_column_detail422 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_default_value_in_column_detail426.
*/
public static final BitSet FOLLOW_default_value_in_column_detail426 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_NOT_in_nullability433.
*/
public static final BitSet FOLLOW_NOT_in_nullability433 = new BitSet(new long[] {0x0000080000000000L});
/**
* The constant FOLLOW_NULL_in_nullability437.
*/
public static final BitSet FOLLOW_NULL_in_nullability437 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_DEFAULT_in_default_value444.
*/
public static final BitSet FOLLOW_DEFAULT_in_default_value444 =
new BitSet(new long[] {0x80000C0000000FD0L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_value_in_default_value447.
*/
public static final BitSet FOLLOW_value_in_default_value447 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_74_in_inline_constraint455.
*/
public static final BitSet FOLLOW_74_in_inline_constraint455 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_inline_constraint458.
*/
public static final BitSet FOLLOW_name_in_inline_constraint458 = new BitSet(new long[] {0x0000000000000200L});
/**
* The constant FOLLOW_PRIMARY_in_inline_constraint462.
*/
public static final BitSet FOLLOW_PRIMARY_in_inline_constraint462 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000800L});
/**
* The constant FOLLOW_75_in_inline_constraint465.
*/
public static final BitSet FOLLOW_75_in_inline_constraint465 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_inline_constraint468.
*/
public static final BitSet FOLLOW_67_in_inline_constraint468 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_inline_constraint471.
*/
public static final BitSet FOLLOW_name_list_in_inline_constraint471 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_inline_constraint473.
*/
public static final BitSet FOLLOW_68_in_inline_constraint473 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_config_in_ora_configs483.
*/
public static final BitSet FOLLOW_ora_config_in_ora_configs483 = new BitSet(new long[] {0x0000000000000002L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_76_in_ora_config502.
*/
public static final BitSet FOLLOW_76_in_ora_config502 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_config505.
*/
public static final BitSet FOLLOW_name_in_ora_config505 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_77_in_ora_config512.
*/
public static final BitSet FOLLOW_77_in_ora_config512 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_config515.
*/
public static final BitSet FOLLOW_name_in_ora_config515 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_78_in_ora_config522.
*/
public static final BitSet FOLLOW_78_in_ora_config522 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_config525.
*/
public static final BitSet FOLLOW_INT_in_ora_config525 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_79_in_ora_config532.
*/
public static final BitSet FOLLOW_79_in_ora_config532 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_config535.
*/
public static final BitSet FOLLOW_INT_in_ora_config535 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_80_in_ora_config542.
*/
public static final BitSet FOLLOW_80_in_ora_config542 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_config545.
*/
public static final BitSet FOLLOW_INT_in_ora_config545 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_81_in_ora_config552.
*/
public static final BitSet FOLLOW_81_in_ora_config552 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_config555.
*/
public static final BitSet FOLLOW_INT_in_ora_config555 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_82_in_ora_config562.
*/
public static final BitSet FOLLOW_82_in_ora_config562 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_config565.
*/
public static final BitSet FOLLOW_INT_in_ora_config565 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_storage_spec_in_ora_config571.
*/
public static final BitSet FOLLOW_ora_storage_spec_in_ora_config571 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_partition_spec_in_ora_config576.
*/
public static final BitSet FOLLOW_ora_partition_spec_in_ora_config576 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_flag_in_ora_config581.
*/
public static final BitSet FOLLOW_ora_flag_in_ora_config581 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_lob_in_ora_config586.
*/
public static final BitSet FOLLOW_ora_lob_in_ora_config586 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_83_in_ora_config592.
*/
public static final BitSet FOLLOW_83_in_ora_config592 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000100000L});
/**
* The constant FOLLOW_84_in_ora_config594.
*/
public static final BitSet FOLLOW_84_in_ora_config594 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000200000L});
/**
* The constant FOLLOW_85_in_ora_config597.
*/
public static final BitSet FOLLOW_85_in_ora_config597 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_86_in_ora_config605.
*/
public static final BitSet FOLLOW_86_in_ora_config605 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000100000L});
/**
* The constant FOLLOW_84_in_ora_config607.
*/
public static final BitSet FOLLOW_84_in_ora_config607 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000200000L});
/**
* The constant FOLLOW_85_in_ora_config610.
*/
public static final BitSet FOLLOW_85_in_ora_config610 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_87_in_ora_config618.
*/
public static final BitSet FOLLOW_87_in_ora_config618 = new BitSet(new long[] {0x0000000000000000L, 0x0000000001000000L});
/**
* The constant FOLLOW_88_in_ora_config620.
*/
public static final BitSet FOLLOW_88_in_ora_config620 = new BitSet(new long[] {0x0000000000000000L, 0x0000000002000000L});
/**
* The constant FOLLOW_89_in_ora_config622.
*/
public static final BitSet FOLLOW_89_in_ora_config622 = new BitSet(new long[] {0x0000000000000000L, 0x0000000004000000L});
/**
* The constant FOLLOW_90_in_ora_config624.
*/
public static final BitSet FOLLOW_90_in_ora_config624 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_77_in_ora_key636.
*/
public static final BitSet FOLLOW_77_in_ora_key636 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_78_in_ora_key640.
*/
public static final BitSet FOLLOW_78_in_ora_key640 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_79_in_ora_key644.
*/
public static final BitSet FOLLOW_79_in_ora_key644 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_80_in_ora_key648.
*/
public static final BitSet FOLLOW_80_in_ora_key648 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_81_in_ora_key652.
*/
public static final BitSet FOLLOW_81_in_ora_key652 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_91_in_ora_key656.
*/
public static final BitSet FOLLOW_91_in_ora_key656 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_flag_in_ora_key660.
*/
public static final BitSet FOLLOW_ora_flag_in_ora_key660 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_91_in_ora_storage_spec667.
*/
public static final BitSet FOLLOW_91_in_ora_storage_spec667 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_storage_spec670.
*/
public static final BitSet FOLLOW_67_in_ora_storage_spec670 = new BitSet(new long[] {0x0000000000000000L, 0x00000003F0000010L});
/**
* The constant FOLLOW_ora_storage_opt_in_ora_storage_spec672.
*/
public static final BitSet FOLLOW_ora_storage_opt_in_ora_storage_spec672 = new BitSet(new long[] {0x0000000000000000L, 0x00000003F0000010L});
/**
* The constant FOLLOW_68_in_ora_storage_spec675.
*/
public static final BitSet FOLLOW_68_in_ora_storage_spec675 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_92_in_ora_storage_opt684.
*/
public static final BitSet FOLLOW_92_in_ora_storage_opt684 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_storage_opt691.
*/
public static final BitSet FOLLOW_INT_in_ora_storage_opt691 = new BitSet(new long[] {0x0000000000000040L});
/**
* The constant FOLLOW_IDENTIFIER_in_ora_storage_opt693.
*/
public static final BitSet FOLLOW_IDENTIFIER_in_ora_storage_opt693 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_93_in_ora_storage_opt700.
*/
public static final BitSet FOLLOW_93_in_ora_storage_opt700 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_storage_opt710.
*/
public static final BitSet FOLLOW_INT_in_ora_storage_opt710 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_94_in_ora_storage_opt717.
*/
public static final BitSet FOLLOW_94_in_ora_storage_opt717 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_storage_opt721.
*/
public static final BitSet FOLLOW_INT_in_ora_storage_opt721 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_95_in_ora_storage_opt728.
*/
public static final BitSet FOLLOW_95_in_ora_storage_opt728 = new BitSet(new long[] {0x0000000000000040L});
/**
* The constant FOLLOW_IDENTIFIER_in_ora_storage_opt732.
*/
public static final BitSet FOLLOW_IDENTIFIER_in_ora_storage_opt732 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_96_in_ora_storage_opt739.
*/
public static final BitSet FOLLOW_96_in_ora_storage_opt739 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_storage_opt742.
*/
public static final BitSet FOLLOW_INT_in_ora_storage_opt742 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_97_in_ora_storage_opt749.
*/
public static final BitSet FOLLOW_97_in_ora_storage_opt749 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_storage_opt752.
*/
public static final BitSet FOLLOW_name_in_ora_storage_opt752 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_98_in_ora_partition_spec764.
*/
public static final BitSet FOLLOW_98_in_ora_partition_spec764 = new BitSet(new long[] {0x0000000000000000L, 0x0000000800000000L});
/**
* The constant FOLLOW_99_in_ora_partition_spec767.
*/
public static final BitSet FOLLOW_99_in_ora_partition_spec767 = new BitSet(new long[] {0x0000000000000000L, 0x0000007000000000L});
/**
* The constant FOLLOW_set_in_ora_partition_spec770.
*/
public static final BitSet FOLLOW_set_in_ora_partition_spec770 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_partition_spec782.
*/
public static final BitSet FOLLOW_67_in_ora_partition_spec782 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_partition_spec785.
*/
public static final BitSet FOLLOW_name_in_ora_partition_spec785 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_ora_partition_spec787.
*/
public static final BitSet FOLLOW_68_in_ora_partition_spec787 = new BitSet(new long[] {0x0000000000000000L, 0x0000018000000008L});
/**
* The constant FOLLOW_103_in_ora_partition_spec791.
*/
public static final BitSet FOLLOW_103_in_ora_partition_spec791 = new BitSet(new long[] {0x0000000000000000L, 0x0000000800000000L});
/**
* The constant FOLLOW_99_in_ora_partition_spec793.
*/
public static final BitSet FOLLOW_99_in_ora_partition_spec793 = new BitSet(new long[] {0x0000000000000000L, 0x0000003000000000L});
/**
* The constant FOLLOW_set_in_ora_partition_spec796.
*/
public static final BitSet FOLLOW_set_in_ora_partition_spec796 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_partition_spec804.
*/
public static final BitSet FOLLOW_67_in_ora_partition_spec804 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_partition_spec807.
*/
public static final BitSet FOLLOW_name_in_ora_partition_spec807 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_ora_partition_spec809.
*/
public static final BitSet FOLLOW_68_in_ora_partition_spec809 = new BitSet(new long[] {0x0000000000000000L, 0x0000018000000008L});
/**
* The constant FOLLOW_partition_part_config_in_ora_partition_spec814.
*/
public static final BitSet FOLLOW_partition_part_config_in_ora_partition_spec814 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_67_in_partition_part_config821.
*/
public static final BitSet FOLLOW_67_in_partition_part_config821 = new BitSet(new long[] {0x0000000000000000L, 0x0000000400000000L});
/**
* The constant FOLLOW_partition_parts_in_partition_part_config824.
*/
public static final BitSet FOLLOW_partition_parts_in_partition_part_config824 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_partition_part_config826.
*/
public static final BitSet FOLLOW_68_in_partition_part_config826 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_104_in_partition_part_config834.
*/
public static final BitSet FOLLOW_104_in_partition_part_config834 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_partition_part_config836.
*/
public static final BitSet FOLLOW_INT_in_partition_part_config836 = new BitSet(new long[] {0x0000000000000000L, 0x0000020000000000L});
/**
* The constant FOLLOW_105_in_partition_part_config838.
*/
public static final BitSet FOLLOW_105_in_partition_part_config838 = new BitSet(new long[] {0x0000100000000000L});
/**
* The constant FOLLOW_IN_in_partition_part_config840.
*/
public static final BitSet FOLLOW_IN_in_partition_part_config840 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_partition_part_config842.
*/
public static final BitSet FOLLOW_67_in_partition_part_config842 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_partition_part_config844.
*/
public static final BitSet FOLLOW_name_list_in_partition_part_config844 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_partition_part_config846.
*/
public static final BitSet FOLLOW_68_in_partition_part_config846 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_partition_part_in_partition_parts853.
*/
public static final BitSet FOLLOW_partition_part_in_partition_parts853 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_69_in_partition_parts856.
*/
public static final BitSet FOLLOW_69_in_partition_parts856 = new BitSet(new long[] {0x0000000000000000L, 0x0000000400000000L});
/**
* The constant FOLLOW_partition_part_in_partition_parts858.
*/
public static final BitSet FOLLOW_partition_part_in_partition_parts858 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_98_in_partition_part867.
*/
public static final BitSet FOLLOW_98_in_partition_part867 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_partition_part870.
*/
public static final BitSet FOLLOW_name_in_partition_part870 = new BitSet(new long[] {0x0000000000000000L, 0x0000040000000000L});
/**
* The constant FOLLOW_106_in_partition_part872.
*/
public static final BitSet FOLLOW_106_in_partition_part872 = new BitSet(new long[] {0x0000000000000000L, 0x0000080000000008L});
/**
* The constant FOLLOW_partition_value_spec_in_partition_part874.
*/
public static final BitSet FOLLOW_partition_value_spec_in_partition_part874 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_partition_part876.
*/
public static final BitSet FOLLOW_ora_configs_in_partition_part876 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_107_in_partition_value_spec884.
*/
public static final BitSet FOLLOW_107_in_partition_value_spec884 = new BitSet(new long[] {0x0000000000000000L, 0x0000100000000000L});
/**
* The constant FOLLOW_108_in_partition_value_spec886.
*/
public static final BitSet FOLLOW_108_in_partition_value_spec886 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_partition_value_spec888.
*/
public static final BitSet FOLLOW_expression_in_partition_value_spec888 = new BitSet(new long[] {0x0000000000000000L, 0x007FE00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_partition_value_spec890.
*/
public static final BitSet FOLLOW_ora_configs_in_partition_value_spec890 = new BitSet(new long[] {0x0000000000000000L, 0x007FE00408CFF000L});
/**
* The constant FOLLOW_sub_partition_config_in_partition_value_spec892.
*/
public static final BitSet FOLLOW_sub_partition_config_in_partition_value_spec892 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_67_in_partition_value_spec901.
*/
public static final BitSet FOLLOW_67_in_partition_value_spec901 =
new BitSet(new long[] {0x80000C0000000FD0L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_value_list_in_partition_value_spec903.
*/
public static final BitSet FOLLOW_value_list_in_partition_value_spec903 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_partition_value_spec905.
*/
public static final BitSet FOLLOW_68_in_partition_value_spec905 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_109_in_sub_partition_config913.
*/
public static final BitSet FOLLOW_109_in_sub_partition_config913 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_sub_partition_config916.
*/
public static final BitSet FOLLOW_INT_in_sub_partition_config916 = new BitSet(new long[] {0x0000000000000000L, 0x0000020000000000L});
/**
* The constant FOLLOW_105_in_sub_partition_config918.
*/
public static final BitSet FOLLOW_105_in_sub_partition_config918 = new BitSet(new long[] {0x0000100000000000L});
/**
* The constant FOLLOW_IN_in_sub_partition_config920.
*/
public static final BitSet FOLLOW_IN_in_sub_partition_config920 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_sub_partition_config922.
*/
public static final BitSet FOLLOW_67_in_sub_partition_config922 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_sub_partition_config924.
*/
public static final BitSet FOLLOW_name_list_in_sub_partition_config924 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_sub_partition_config926.
*/
public static final BitSet FOLLOW_68_in_sub_partition_config926 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_set_in_ora_flag0.
*/
public static final BitSet FOLLOW_set_in_ora_flag0 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_118_in_ora_lob981.
*/
public static final BitSet FOLLOW_118_in_ora_lob981 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_lob983.
*/
public static final BitSet FOLLOW_67_in_ora_lob983 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_column_name_in_ora_lob985.
*/
public static final BitSet FOLLOW_column_name_in_ora_lob985 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_ora_lob987.
*/
public static final BitSet FOLLOW_68_in_ora_lob987 = new BitSet(new long[] {0x0000000000000000L, 0x0000020000000000L});
/**
* The constant FOLLOW_105_in_ora_lob989.
*/
public static final BitSet FOLLOW_105_in_ora_lob989 = new BitSet(new long[] {0x0000000000000000L, 0x0080000000000000L});
/**
* The constant FOLLOW_119_in_ora_lob991.
*/
public static final BitSet FOLLOW_119_in_ora_lob991 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_lob993.
*/
public static final BitSet FOLLOW_67_in_ora_lob993 = new BitSet(new long[] {0x0000000000000000L, 0x073FC000080BE010L});
/**
* The constant FOLLOW_ora_lob_config_in_ora_lob995.
*/
public static final BitSet FOLLOW_ora_lob_config_in_ora_lob995 = new BitSet(new long[] {0x0000000000000000L, 0x073FC000080BE010L});
/**
* The constant FOLLOW_68_in_ora_lob998.
*/
public static final BitSet FOLLOW_68_in_ora_lob998 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_77_in_ora_lob_config1007.
*/
public static final BitSet FOLLOW_77_in_ora_lob_config1007 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_ora_lob_config1010.
*/
public static final BitSet FOLLOW_name_in_ora_lob_config1010 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_83_in_ora_lob_config1017.
*/
public static final BitSet FOLLOW_83_in_ora_lob_config1017 = new BitSet(new long[] {0x0000000000000000L, 0x0000000008000000L});
/**
* The constant FOLLOW_91_in_ora_lob_config1019.
*/
public static final BitSet FOLLOW_91_in_ora_lob_config1019 = new BitSet(new long[] {0x0000100000000000L});
/**
* The constant FOLLOW_IN_in_ora_lob_config1021.
*/
public static final BitSet FOLLOW_IN_in_ora_lob_config1021 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000100000L});
/**
* The constant FOLLOW_84_in_ora_lob_config1023.
*/
public static final BitSet FOLLOW_84_in_ora_lob_config1023 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_120_in_ora_lob_config1030.
*/
public static final BitSet FOLLOW_120_in_ora_lob_config1030 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_lob_config1033.
*/
public static final BitSet FOLLOW_INT_in_ora_lob_config1033 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_121_in_ora_lob_config1040.
*/
public static final BitSet FOLLOW_121_in_ora_lob_config1040 = new BitSet(new long[] {0x0000000000000010L});
/**
* The constant FOLLOW_INT_in_ora_lob_config1043.
*/
public static final BitSet FOLLOW_INT_in_ora_lob_config1043 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_flag_in_ora_lob_config1049.
*/
public static final BitSet FOLLOW_ora_flag_in_ora_lob_config1049 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_lob_index_in_ora_lob_config1054.
*/
public static final BitSet FOLLOW_ora_lob_index_in_ora_lob_config1054 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_storage_spec_in_ora_lob_config1059.
*/
public static final BitSet FOLLOW_ora_storage_spec_in_ora_lob_config1059 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_122_in_ora_lob_index1070.
*/
public static final BitSet FOLLOW_122_in_ora_lob_index1070 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_ora_lob_index1072.
*/
public static final BitSet FOLLOW_67_in_ora_lob_index1072 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF010L});
/**
* The constant FOLLOW_ora_configs_in_ora_lob_index1074.
*/
public static final BitSet FOLLOW_ora_configs_in_ora_lob_index1074 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_ora_lob_index1076.
*/
public static final BitSet FOLLOW_68_in_ora_lob_index1076 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_123_in_alter_table1085.
*/
public static final BitSet FOLLOW_123_in_alter_table1085 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000004L});
/**
* The constant FOLLOW_66_in_alter_table1087.
*/
public static final BitSet FOLLOW_66_in_alter_table1087 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_alter_table1089.
*/
public static final BitSet FOLLOW_table_name_in_alter_table1089 = new BitSet(new long[] {0x0000000000000000L, 0x5000000000000000L});
/**
* The constant FOLLOW_table_mutation_in_alter_table1091.
*/
public static final BitSet FOLLOW_table_mutation_in_alter_table1091 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_drop_pk_in_table_mutation1109.
*/
public static final BitSet FOLLOW_drop_pk_in_table_mutation1109 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_add_constraints_in_table_mutation1114.
*/
public static final BitSet FOLLOW_add_constraints_in_table_mutation1114 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_124_in_drop_pk1124.
*/
public static final BitSet FOLLOW_124_in_drop_pk1124 = new BitSet(new long[] {0x0000000000000200L});
/**
* The constant FOLLOW_PRIMARY_in_drop_pk1126.
*/
public static final BitSet FOLLOW_PRIMARY_in_drop_pk1126 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000800L});
/**
* The constant FOLLOW_75_in_drop_pk1128.
*/
public static final BitSet FOLLOW_75_in_drop_pk1128 = new BitSet(new long[] {0x0000000000000002L, 0x2000000000000000L});
/**
* The constant FOLLOW_125_in_drop_pk1130.
*/
public static final BitSet FOLLOW_125_in_drop_pk1130 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_126_in_add_constraints1138.
*/
public static final BitSet FOLLOW_126_in_add_constraints1138 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_add_constraints1140.
*/
public static final BitSet FOLLOW_67_in_add_constraints1140 =
new BitSet(new long[] {0x0000000000000200L, 0x0000000000000400L, 0x000000000000000DL});
/**
* The constant FOLLOW_constraint_spec_in_add_constraints1142.
*/
public static final BitSet FOLLOW_constraint_spec_in_add_constraints1142 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_69_in_add_constraints1145.
*/
public static final BitSet FOLLOW_69_in_add_constraints1145 =
new BitSet(new long[] {0x0000000000000200L, 0x0000000000000400L, 0x000000000000000DL});
/**
* The constant FOLLOW_constraint_spec_in_add_constraints1147.
*/
public static final BitSet FOLLOW_constraint_spec_in_add_constraints1147 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_68_in_add_constraints1151.
*/
public static final BitSet FOLLOW_68_in_add_constraints1151 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_74_in_constraint_spec1159.
*/
public static final BitSet FOLLOW_74_in_constraint_spec1159 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_constraint_spec1161.
*/
public static final BitSet FOLLOW_name_in_constraint_spec1161 =
new BitSet(new long[] {0x0000000000000200L, 0x0000000000000400L, 0x000000000000000DL});
/**
* The constant FOLLOW_constraint_detail_in_constraint_spec1165.
*/
public static final BitSet FOLLOW_constraint_detail_in_constraint_spec1165 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_primary_key_constraint_in_constraint_detail1173.
*/
public static final BitSet FOLLOW_primary_key_constraint_in_constraint_detail1173 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_foreign_key_constraint_in_constraint_detail1178.
*/
public static final BitSet FOLLOW_foreign_key_constraint_in_constraint_detail1178 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_unique_constraint_in_constraint_detail1183.
*/
public static final BitSet FOLLOW_unique_constraint_in_constraint_detail1183 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_check_constraint_in_constraint_detail1188.
*/
public static final BitSet FOLLOW_check_constraint_in_constraint_detail1188 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_PRIMARY_in_primary_key_constraint1195.
*/
public static final BitSet FOLLOW_PRIMARY_in_primary_key_constraint1195 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000800L});
/**
* The constant FOLLOW_75_in_primary_key_constraint1197.
*/
public static final BitSet FOLLOW_75_in_primary_key_constraint1197 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_primary_key_constraint1199.
*/
public static final BitSet FOLLOW_67_in_primary_key_constraint1199 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_primary_key_constraint1201.
*/
public static final BitSet FOLLOW_name_list_in_primary_key_constraint1201 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_primary_key_constraint1203.
*/
public static final BitSet FOLLOW_68_in_primary_key_constraint1203 = new BitSet(new long[] {0x0000000000000002L, 0x8000000000000000L});
/**
* The constant FOLLOW_127_in_primary_key_constraint1206.
*/
public static final BitSet FOLLOW_127_in_primary_key_constraint1206 = new BitSet(new long[] {0x0000000000000000L, 0x0400000000000000L});
/**
* The constant FOLLOW_122_in_primary_key_constraint1208.
*/
public static final BitSet FOLLOW_122_in_primary_key_constraint1208 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_primary_key_constraint1210.
*/
public static final BitSet FOLLOW_ora_configs_in_primary_key_constraint1210 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_128_in_foreign_key_constraint1219.
*/
public static final BitSet FOLLOW_128_in_foreign_key_constraint1219 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000800L});
/**
* The constant FOLLOW_75_in_foreign_key_constraint1221.
*/
public static final BitSet FOLLOW_75_in_foreign_key_constraint1221 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_foreign_key_constraint1223.
*/
public static final BitSet FOLLOW_67_in_foreign_key_constraint1223 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_foreign_key_constraint1225.
*/
public static final BitSet FOLLOW_name_list_in_foreign_key_constraint1225 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_foreign_key_constraint1227.
*/
public static final BitSet FOLLOW_68_in_foreign_key_constraint1227 =
new BitSet(new long[] {0x0000000000000000L, 0x0000000000000000L, 0x0000000000000002L});
/**
* The constant FOLLOW_129_in_foreign_key_constraint1229.
*/
public static final BitSet FOLLOW_129_in_foreign_key_constraint1229 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_foreign_key_constraint1231.
*/
public static final BitSet FOLLOW_table_name_in_foreign_key_constraint1231 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_foreign_key_constraint1233.
*/
public static final BitSet FOLLOW_67_in_foreign_key_constraint1233 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_foreign_key_constraint1237.
*/
public static final BitSet FOLLOW_name_list_in_foreign_key_constraint1237 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E814L, 0x0000000000000544L});
/**
* The constant FOLLOW_68_in_foreign_key_constraint1241.
*/
public static final BitSet FOLLOW_68_in_foreign_key_constraint1241 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_130_in_unique_constraint1248.
*/
public static final BitSet FOLLOW_130_in_unique_constraint1248 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_unique_constraint1250.
*/
public static final BitSet FOLLOW_67_in_unique_constraint1250 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_unique_constraint1252.
*/
public static final BitSet FOLLOW_name_list_in_unique_constraint1252 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_unique_constraint1254.
*/
public static final BitSet FOLLOW_68_in_unique_constraint1254 = new BitSet(new long[] {0x0000000000000002L, 0x8000000000000000L});
/**
* The constant FOLLOW_127_in_unique_constraint1257.
*/
public static final BitSet FOLLOW_127_in_unique_constraint1257 = new BitSet(new long[] {0x0000000000000000L, 0x0400000000000000L});
/**
* The constant FOLLOW_122_in_unique_constraint1259.
*/
public static final BitSet FOLLOW_122_in_unique_constraint1259 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_unique_constraint1261.
*/
public static final BitSet FOLLOW_ora_configs_in_unique_constraint1261 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_131_in_check_constraint1270.
*/
public static final BitSet FOLLOW_131_in_check_constraint1270 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_check_constraint1272.
*/
public static final BitSet FOLLOW_expression_in_check_constraint1272 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_124_in_drop_table1283.
*/
public static final BitSet FOLLOW_124_in_drop_table1283 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000004L});
/**
* The constant FOLLOW_66_in_drop_table1285.
*/
public static final BitSet FOLLOW_66_in_drop_table1285 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_drop_table1287.
*/
public static final BitSet FOLLOW_table_name_in_drop_table1287 = new BitSet(new long[] {0x0000000000000002L, 0x2000000000000000L});
/**
* The constant FOLLOW_125_in_drop_table1290.
*/
public static final BitSet FOLLOW_125_in_drop_table1290 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_132_in_drop_table1292.
*/
public static final BitSet FOLLOW_132_in_drop_table1292 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_63_in_create_index1312.
*/
public static final BitSet FOLLOW_63_in_create_index1312 = new BitSet(new long[] {0x0000000000000000L, 0x0400000000000000L, 0x0000000000000004L});
/**
* The constant FOLLOW_130_in_create_index1314.
*/
public static final BitSet FOLLOW_130_in_create_index1314 = new BitSet(new long[] {0x0000000000000000L, 0x0400000000000000L});
/**
* The constant FOLLOW_122_in_create_index1317.
*/
public static final BitSet FOLLOW_122_in_create_index1317 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_index_name_in_create_index1319.
*/
public static final BitSet FOLLOW_index_name_in_create_index1319 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000800000L});
/**
* The constant FOLLOW_87_in_create_index1321.
*/
public static final BitSet FOLLOW_87_in_create_index1321 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_create_index1323.
*/
public static final BitSet FOLLOW_table_name_in_create_index1323 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_create_index1325.
*/
public static final BitSet FOLLOW_67_in_create_index1325 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_list_in_create_index1327.
*/
public static final BitSet FOLLOW_name_list_in_create_index1327 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_create_index1329.
*/
public static final BitSet FOLLOW_68_in_create_index1329 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L, 0x0000000000000020L});
/**
* The constant FOLLOW_133_in_create_index1332.
*/
public static final BitSet FOLLOW_133_in_create_index1332 = new BitSet(new long[] {0x0000040000000000L});
/**
* The constant FOLLOW_IS_in_create_index1334.
*/
public static final BitSet FOLLOW_IS_in_create_index1334 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_qualified_name_in_create_index1336.
*/
public static final BitSet FOLLOW_qualified_name_in_create_index1336 = new BitSet(new long[] {0x0000000000000000L, 0x007FC00408CFF000L});
/**
* The constant FOLLOW_ora_configs_in_create_index1340.
*/
public static final BitSet FOLLOW_ora_configs_in_create_index1340 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_qualified_name_in_index_name1355.
*/
public static final BitSet FOLLOW_qualified_name_in_index_name1355 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_124_in_drop_index1373.
*/
public static final BitSet FOLLOW_124_in_drop_index1373 = new BitSet(new long[] {0x0000000000000000L, 0x0400000000000000L});
/**
* The constant FOLLOW_122_in_drop_index1375.
*/
public static final BitSet FOLLOW_122_in_drop_index1375 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_index_name_in_drop_index1377.
*/
public static final BitSet FOLLOW_index_name_in_drop_index1377 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_63_in_create_sequence1386.
*/
public static final BitSet FOLLOW_63_in_create_sequence1386 =
new BitSet(new long[] {0x0000000000000000L, 0x0000000000000000L, 0x0000000000000040L});
/**
* The constant FOLLOW_134_in_create_sequence1388.
*/
public static final BitSet FOLLOW_134_in_create_sequence1388 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_create_sequence1390.
*/
public static final BitSet FOLLOW_name_in_create_sequence1390 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_124_in_drop_sequence1405.
*/
public static final BitSet FOLLOW_124_in_drop_sequence1405 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000000L, 0x0000000000000040L});
/**
* The constant FOLLOW_134_in_drop_sequence1407.
*/
public static final BitSet FOLLOW_134_in_drop_sequence1407 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_drop_sequence1409.
*/
public static final BitSet FOLLOW_name_in_drop_sequence1409 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_135_in_comment1427.
*/
public static final BitSet FOLLOW_135_in_comment1427 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000800000L});
/**
* The constant FOLLOW_87_in_comment1430.
*/
public static final BitSet FOLLOW_87_in_comment1430 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000004L, 0x0000000000000100L});
/**
* The constant FOLLOW_table_comment_details_in_comment1434.
*/
public static final BitSet FOLLOW_table_comment_details_in_comment1434 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_column_comment_details_in_comment1438.
*/
public static final BitSet FOLLOW_column_comment_details_in_comment1438 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_66_in_table_comment_details1448.
*/
public static final BitSet FOLLOW_66_in_table_comment_details1448 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_table_name_in_table_comment_details1450.
*/
public static final BitSet FOLLOW_table_name_in_table_comment_details1450 = new BitSet(new long[] {0x0000040000000000L});
/**
* The constant FOLLOW_IS_in_table_comment_details1452.
*/
public static final BitSet FOLLOW_IS_in_table_comment_details1452 = new BitSet(new long[] {0x0000000000000080L});
/**
* The constant FOLLOW_STRING_in_table_comment_details1454.
*/
public static final BitSet FOLLOW_STRING_in_table_comment_details1454 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_136_in_column_comment_details1473.
*/
public static final BitSet FOLLOW_136_in_column_comment_details1473 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_column_name_in_column_comment_details1475.
*/
public static final BitSet FOLLOW_column_name_in_column_comment_details1475 = new BitSet(new long[] {0x0000040000000000L});
/**
* The constant FOLLOW_IS_in_column_comment_details1477.
*/
public static final BitSet FOLLOW_IS_in_column_comment_details1477 = new BitSet(new long[] {0x0000000000000080L});
/**
* The constant FOLLOW_STRING_in_column_comment_details1479.
*/
public static final BitSet FOLLOW_STRING_in_column_comment_details1479 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_qualified_name_in_column_name1496.
*/
public static final BitSet FOLLOW_qualified_name_in_column_name1496 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_and_expression_in_expression1514.
*/
public static final BitSet FOLLOW_and_expression_in_expression1514 = new BitSet(new long[] {0x0000000080000002L});
/**
* The constant FOLLOW_OR_in_expression1517.
*/
public static final BitSet FOLLOW_OR_in_expression1517 = new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_and_expression_in_expression1520.
*/
public static final BitSet FOLLOW_and_expression_in_expression1520 = new BitSet(new long[] {0x0000000080000002L});
/**
* The constant FOLLOW_exclusive_or_expression_in_and_expression1531.
*/
public static final BitSet FOLLOW_exclusive_or_expression_in_and_expression1531 = new BitSet(new long[] {0x0000000100000002L});
/**
* The constant FOLLOW_AND_in_and_expression1534.
*/
public static final BitSet FOLLOW_AND_in_and_expression1534 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_exclusive_or_expression_in_and_expression1537.
*/
public static final BitSet FOLLOW_exclusive_or_expression_in_and_expression1537 = new BitSet(new long[] {0x0000000100000002L});
/**
* The constant FOLLOW_equality_expression_in_exclusive_or_expression1546.
*/
public static final BitSet FOLLOW_equality_expression_in_exclusive_or_expression1546 = new BitSet(new long[] {0x0000000200000002L});
/**
* The constant FOLLOW_XOR_in_exclusive_or_expression1549.
*/
public static final BitSet FOLLOW_XOR_in_exclusive_or_expression1549 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_equality_expression_in_exclusive_or_expression1552.
*/
public static final BitSet FOLLOW_equality_expression_in_exclusive_or_expression1552 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_null_comparison_in_equality_expression1561.
*/
public static final BitSet FOLLOW_null_comparison_in_equality_expression1561 = new BitSet(new long[] {0x0000001C00000002L});
/**
* The constant FOLLOW_set_in_equality_expression1564.
*/
public static final BitSet FOLLOW_set_in_equality_expression1564 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_null_comparison_in_equality_expression1577.
*/
public static final BitSet FOLLOW_null_comparison_in_equality_expression1577 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_relational_expression_in_null_comparison1587.
*/
public static final BitSet FOLLOW_relational_expression_in_null_comparison1587 = new BitSet(new long[] {0x0000040000000002L});
/**
* The constant FOLLOW_IS_in_null_comparison1590.
*/
public static final BitSet FOLLOW_IS_in_null_comparison1590 = new BitSet(new long[] {0x0000080000000020L});
/**
* The constant FOLLOW_NOT_in_null_comparison1593.
*/
public static final BitSet FOLLOW_NOT_in_null_comparison1593 = new BitSet(new long[] {0x0000080000000000L});
/**
* The constant FOLLOW_NULL_in_null_comparison1596.
*/
public static final BitSet FOLLOW_NULL_in_null_comparison1596 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_like_expression_in_relational_expression1606.
*/
public static final BitSet FOLLOW_like_expression_in_relational_expression1606 = new BitSet(new long[] {0x000001E000000002L});
/**
* The constant FOLLOW_set_in_relational_expression1609.
*/
public static final BitSet FOLLOW_set_in_relational_expression1609 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_like_expression_in_relational_expression1626.
*/
public static final BitSet FOLLOW_like_expression_in_relational_expression1626 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_in_expression_in_like_expression1636.
*/
public static final BitSet FOLLOW_in_expression_in_like_expression1636 = new BitSet(new long[] {0x0000020000000022L});
/**
* The constant FOLLOW_NOT_in_like_expression1639.
*/
public static final BitSet FOLLOW_NOT_in_like_expression1639 = new BitSet(new long[] {0x0000020000000000L});
/**
* The constant FOLLOW_LIKE_in_like_expression1642.
*/
public static final BitSet FOLLOW_LIKE_in_like_expression1642 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_unary_expression_in_like_expression1645.
*/
public static final BitSet FOLLOW_unary_expression_in_like_expression1645 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_between_expression_in_in_expression1655.
*/
public static final BitSet FOLLOW_between_expression_in_in_expression1655 = new BitSet(new long[] {0x0000100000000022L});
/**
* The constant FOLLOW_NOT_in_in_expression1658.
*/
public static final BitSet FOLLOW_NOT_in_in_expression1658 = new BitSet(new long[] {0x0000100000000000L});
/**
* The constant FOLLOW_IN_in_in_expression1661.
*/
public static final BitSet FOLLOW_IN_in_in_expression1661 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_67_in_in_expression1664.
*/
public static final BitSet FOLLOW_67_in_in_expression1664 = new BitSet(new long[] {0x80000C0000000FD0L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_value_list_in_in_expression1667.
*/
public static final BitSet FOLLOW_value_list_in_in_expression1667 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_in_expression1669.
*/
public static final BitSet FOLLOW_68_in_in_expression1669 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_additive_expression_in_between_expression1679.
*/
public static final BitSet FOLLOW_additive_expression_in_between_expression1679 = new BitSet(new long[] {0x0000200000000002L});
/**
* The constant FOLLOW_BETWEEN_in_between_expression1682.
*/
public static final BitSet FOLLOW_BETWEEN_in_between_expression1682 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_additive_expression_in_between_expression1685.
*/
public static final BitSet FOLLOW_additive_expression_in_between_expression1685 = new BitSet(new long[] {0x0000000100000000L});
/**
* The constant FOLLOW_AND_in_between_expression1687.
*/
public static final BitSet FOLLOW_AND_in_between_expression1687 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_additive_expression_in_between_expression1690.
*/
public static final BitSet FOLLOW_additive_expression_in_between_expression1690 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_multiplicative_expression_in_additive_expression1699.
*/
public static final BitSet FOLLOW_multiplicative_expression_in_additive_expression1699 = new BitSet(new long[] {0x0008C00000000002L});
/**
* The constant FOLLOW_set_in_additive_expression1702.
*/
public static final BitSet FOLLOW_set_in_additive_expression1702 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_multiplicative_expression_in_additive_expression1715.
*/
public static final BitSet FOLLOW_multiplicative_expression_in_additive_expression1715 = new BitSet(new long[] {0x0008C00000000002L});
/**
* The constant FOLLOW_unary_expression_in_multiplicative_expression1723.
*/
public static final BitSet FOLLOW_unary_expression_in_multiplicative_expression1723 = new BitSet(new long[] {0x0007000000000002L});
/**
* The constant FOLLOW_set_in_multiplicative_expression1726.
*/
public static final BitSet FOLLOW_set_in_multiplicative_expression1726 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_unary_expression_in_multiplicative_expression1739.
*/
public static final BitSet FOLLOW_unary_expression_in_multiplicative_expression1739 = new BitSet(new long[] {0x0007000000000002L});
/**
* The constant FOLLOW_SUB_in_unary_expression1755.
*/
public static final BitSet FOLLOW_SUB_in_unary_expression1755 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_primary_in_unary_expression1758.
*/
public static final BitSet FOLLOW_primary_in_unary_expression1758 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_NOT_in_unary_expression1768.
*/
public static final BitSet FOLLOW_NOT_in_unary_expression1768 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_primary_in_unary_expression1771.
*/
public static final BitSet FOLLOW_primary_in_unary_expression1771 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_primary_in_unary_expression1781.
*/
public static final BitSet FOLLOW_primary_in_unary_expression1781 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_67_in_primary1801.
*/
public static final BitSet FOLLOW_67_in_primary1801 = new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_primary1804.
*/
public static final BitSet FOLLOW_expression_in_primary1804 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000010L});
/**
* The constant FOLLOW_68_in_primary1806.
*/
public static final BitSet FOLLOW_68_in_primary1806 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_IDENTIFIER_in_primary1817.
*/
public static final BitSet FOLLOW_IDENTIFIER_in_primary1817 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000008L});
/**
* The constant FOLLOW_arguments_in_primary1819.
*/
public static final BitSet FOLLOW_arguments_in_primary1819 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_value_in_primary1839.
*/
public static final BitSet FOLLOW_value_in_primary1839 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_67_in_arguments1852.
*/
public static final BitSet FOLLOW_67_in_arguments1852 = new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E81CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_arguments1855.
*/
public static final BitSet FOLLOW_expression_in_arguments1855 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_69_in_arguments1858.
*/
public static final BitSet FOLLOW_69_in_arguments1858 = new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_arguments1860.
*/
public static final BitSet FOLLOW_expression_in_arguments1860 = new BitSet(new long[] {0x0000000000000000L, 0x0000000000000030L});
/**
* The constant FOLLOW_68_in_arguments1866.
*/
public static final BitSet FOLLOW_68_in_arguments1866 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_expression_in_expression_list1882.
*/
public static final BitSet FOLLOW_expression_in_expression_list1882 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_69_in_expression_list1885.
*/
public static final BitSet FOLLOW_69_in_expression_list1885 =
new BitSet(new long[] {0x80008C0000000FF0L, 0x1C3FC0080883E80CL, 0x0000000000000544L});
/**
* The constant FOLLOW_expression_in_expression_list1888.
*/
public static final BitSet FOLLOW_expression_in_expression_list1888 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_name_in_qualified_name1897.
*/
public static final BitSet FOLLOW_name_in_qualified_name1897 =
new BitSet(new long[] {0x0000000000000002L, 0x0000000000000000L, 0x0000000000000200L});
/**
* The constant FOLLOW_137_in_qualified_name1900.
*/
public static final BitSet FOLLOW_137_in_qualified_name1900 =
new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_qualified_name1903.
*/
public static final BitSet FOLLOW_name_in_qualified_name1903 =
new BitSet(new long[] {0x0000000000000002L, 0x0000000000000000L, 0x0000000000000200L});
/**
* The constant FOLLOW_value_in_value_list1912.
*/
public static final BitSet FOLLOW_value_in_value_list1912 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_69_in_value_list1915.
*/
public static final BitSet FOLLOW_69_in_value_list1915 = new BitSet(new long[] {0x80000C0000000FD0L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_value_in_value_list1917.
*/
public static final BitSet FOLLOW_value_in_value_list1917 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_name_in_value1936.
*/
public static final BitSet FOLLOW_name_in_value1936 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_literal_in_value1940.
*/
public static final BitSet FOLLOW_literal_in_value1940 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_name_in_name_list1947.
*/
public static final BitSet FOLLOW_name_in_name_list1947 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_69_in_name_list1950.
*/
public static final BitSet FOLLOW_69_in_name_list1950 = new BitSet(new long[] {0x8000040000000F40L, 0x1C3FC0080883E804L, 0x0000000000000544L});
/**
* The constant FOLLOW_name_in_name_list1952.
*/
public static final BitSet FOLLOW_name_in_name_list1952 = new BitSet(new long[] {0x0000000000000002L, 0x0000000000000020L});
/**
* The constant FOLLOW_IDENTIFIER_in_name1971.
*/
public static final BitSet FOLLOW_IDENTIFIER_in_name1971 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_ora_key_in_name1975.
*/
public static final BitSet FOLLOW_ora_key_in_name1975 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_keyword_in_name1979.
*/
public static final BitSet FOLLOW_keyword_in_name1979 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_QUOTED_NAME_in_name1983.
*/
public static final BitSet FOLLOW_QUOTED_NAME_in_name1983 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_set_in_literal0.
*/
public static final BitSet FOLLOW_set_in_literal0 = new BitSet(new long[] {0x0000000000000002L});
/**
* The constant FOLLOW_set_in_keyword0.
*/
public static final BitSet FOLLOW_set_in_keyword0 = new BitSet(new long[] {0x0000000000000002L});
}