Added: hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jj URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jj?rev=706704&view=auto ============================================================================== --- hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jj (added) +++ hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jj Tue Oct 21 11:11:05 2008 @@ -0,0 +1,2345 @@ +/[EMAIL PROTECTED](jjtree) Generated By:JJTree: Do not edit this line. /data/users/zshao/tubbs-svnroot/projects/hadoop/trunk/VENDOR/hadoop-0.17/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jj */ +/[EMAIL PROTECTED]/options { + STATIC = false; +} + + +PARSER_BEGIN(thrift_grammar) + +package org.apache.hadoop.hive.serde2.dynamic_type; + +import java.util.*; +import java.io.*; +import java.net.*; +import com.facebook.thrift.protocol.*; +import com.facebook.thrift.transport.*; +import org.apache.hadoop.hive.serde2.dynamic_type.*; + +public class thrift_grammar/[EMAIL PROTECTED](jjtree)*/implements thrift_grammarTreeConstants/[EMAIL PROTECTED]/ {/[EMAIL PROTECTED](jjtree)*/ + protected JJTthrift_grammarState jjtree = new JJTthrift_grammarState(); + +/[EMAIL PROTECTED]/ + + private List<String> include_path = null; + + // for computing the autogenerated field ids in thrift + private int field_val; + + // store types and tables + // separately because one cannot use a table (ie service.method) as a Struct like type. + protected Map<String,DynamicSerDeSimpleNode> types; + protected Map<String,DynamicSerDeSimpleNode> tables; + + // system include path + final private static String default_include_path[] = { "/usr/local/include","/usr/include","/usr/local/include/thrift/if","/usr/local/include/fb303/if" }; + + // need three params to differentiate between this and 2 param method auto generated since + // some calls in the autogenerated code use null param for 2nd param and thus ambiguous. + protected thrift_grammar(InputStream is, List<String> include_path, boolean junk) { + this(is,null); + this.types = new HashMap<String,DynamicSerDeSimpleNode> () ; + this.tables = new HashMap<String,DynamicSerDeSimpleNode> () ; + this.include_path = include_path; + this.field_val = -1; + } + + // find the file on the include path + private static File findFile(String fname, List<String> include_path) { + for(String path: include_path) { + final String full = path + "/" + fname; + File f = new File(full); + if(f.exists()) { + return f; + } + } + return null; + } + + public static void main(String args[]) { + String filename = null; + List<String> include_path = new ArrayList<String>(); + + for(String path: default_include_path) { + include_path.add(path); + } + for(int i = 0; i < args.length; i++) { + String arg = args[i]; + if(arg.equals("--include") && i + 1 < args.length) { + include_path.add(args[++i]); + } + if(arg.equals("--file") && i + 1 < args.length) { + filename = args[++i]; + } + } + + InputStream is = System.in; + if(filename != null) { + try { + is = new FileInputStream(findFile(filename, include_path)); + } catch(IOException e) { + } + } + thrift_grammar t = new thrift_grammar(is,include_path,false); + + try { + t.Start(); + } catch (Exception e) { + System.out.println("Parse error."); + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} + +PARSER_END(thrift_grammar) + + + +SKIP : +{ + " " +| "\t" +| "\n" +| "\r" +| <"#"(~["\n"])* ("\n"|"\r"|"\r\n")> +| <"//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")> +| <"/*" (~["*"])* "*" (~["/"] (~["*"])* "*")* "/"> +} + + +/** + * HELPER DEFINITIONS, COMMENTS, CONSTANTS, AND WHATNOT + */ + +TOKEN: +{ +<tok_const: "const">| +<tok_namespace : "namespace"> | +<tok_cpp_namespace: "cpp_namespace">| +<tok_cpp_include : "cpp_include">| +<tok_cpp_type: "cpp_type">| +<tok_java_package : "java_package">| +<tok_cocoa_prefix: "cocoa_prefix">| +<tok_csharp_namespace: "csharp_namespace">| +<tok_php_namespace: "php_namespace">| +<tok_py_module: "py_module">| +<tok_perl_package: "perl_package">| +<tok_ruby_namespace: "ruby_namespace">| +<tok_smalltalk_category: "smalltalk_category">| +<tok_smalltalk_prefix: "smalltalk_prefix">| +<tok_xsd_all: "xsd_all">| +<tok_xsd_optional: "xsd_optional">| +<tok_xsd_nillable: "xsd_nillable">| +<tok_xsd_namespace: "xsd_namespace">| +<tok_xsd_attrs: "xsd_attrs">| +<tok_include : "include">| +<tok_void : "void">| +<tok_bool : "bool">| +<tok_byte: "byte">| +<tok_i16: "i16">| +<tok_i32: "i32">| +<tok_i64: "i64">| +<tok_double: "double">| +<tok_string: "string">| +<tok_slist : "slist">| +<tok_senum: "senum">| +<tok_map: "map"> | +<tok_list: "list"> | +<tok_set: "set"> | +<tok_async: "async"> | +<tok_typedef: "typedef"> | +<tok_struct: "struct"> | +<tok_exception: "exception"> | +<tok_extends: "extends"> | +<tok_throws: "throws"> | +<tok_service: "service"> | +<tok_enum: "enum"> | +<tok_required: "required"> | +<tok_optional: "optional"> +} + +TOKEN: { + +<tok_int_constant : (["+","-"])?(["0"-"9"])+> +| +<tok_double_constant: ["+","-"](<DIGIT>)*"."(<DIGIT>)+(["e","E"](["+","-"])?(<DIGIT>)+)?> +| +<IDENTIFIER: <LETTER>(<LETTER>|<DIGIT>|"."|"_")*> +| +<#LETTER: (["a"-"z", "A"-"Z" ]) > +| +<#DIGIT: ["0"-"9"] > +| +<tok_literal: "\""(~["\""])*"\""|"'"(~["'"])*"'"> +| +<tok_st_identifier: ["a"-"z","A"-"Z","-"]([".","a"-"z","A"-"Z","_","0"-"9","-"])*> +} + + +SimpleNode Start() : {/[EMAIL PROTECTED](jjtree) Start */ + DynamicSerDeStart jjtn000 = new DynamicSerDeStart(JJTSTART); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Start */ + try { +/[EMAIL PROTECTED]/ + HeaderList() (Definition())+/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode HeaderList() : {/[EMAIL PROTECTED](jjtree) HeaderList */ + DynamicSerDeHeaderList jjtn000 = new DynamicSerDeHeaderList(JJTHEADERLIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) HeaderList */ + try { +/[EMAIL PROTECTED]/ + (Header())*/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ + +} + +SimpleNode Header() : {/[EMAIL PROTECTED](jjtree) Header */ + DynamicSerDeHeader jjtn000 = new DynamicSerDeHeader(JJTHEADER); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Header */ + try { +/[EMAIL PROTECTED]/ + Include()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Namespace()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode Namespace() : {/[EMAIL PROTECTED](jjtree) Namespace */ + DynamicSerDeNamespace jjtn000 = new DynamicSerDeNamespace(JJTNAMESPACE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Namespace */ + try { +/[EMAIL PROTECTED]/ + <tok_namespace> <IDENTIFIER> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_cpp_namespace> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_cpp_include> <tok_literal>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_php_namespace> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_py_module> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_perl_package> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_ruby_namespace> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_smalltalk_category> <tok_st_identifier>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_smalltalk_prefix> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_java_package> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_cocoa_prefix> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_xsd_namespace> <tok_literal>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +} +| +<tok_csharp_namespace> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +}/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +SimpleNode Include() : {/[EMAIL PROTECTED](jjtree) Include */ + DynamicSerDeInclude jjtn000 = new DynamicSerDeInclude(JJTINCLUDE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ + String fname; + boolean found = false; +} +{/[EMAIL PROTECTED](jjtree) Include */ + try { +/[EMAIL PROTECTED]/ + <tok_include> + fname=<tok_literal>.image/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + // bugbug somewhat fragile below substring expression + fname = fname.substring(1,fname.length() - 1); + + // try to find the file on the include path + File f = thrift_grammar.findFile(fname, this.include_path); + if(f != null) { + found = true; + try { + FileInputStream fis = new FileInputStream(f); + thrift_grammar t = new thrift_grammar(fis,this.include_path, false); + t.Start(); + fis.close(); + found = true; + // add in what we found to our type and table tables. + this.tables.putAll(t.tables); + this.types.putAll(t.types); + } catch (Exception e) { + System.out.println("File: " + fname + " - Oops."); + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } + if(!found) { + throw new RuntimeException("include file not found: " + fname); + } + return jjtn000; +}/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +SimpleNode Definition() : {/[EMAIL PROTECTED](jjtree) Definition */ + DynamicSerDeDefinition jjtn000 = new DynamicSerDeDefinition(JJTDEFINITION); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Definition */ + try { +/[EMAIL PROTECTED]/ + Const()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Service()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeDefinition()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode TypeDefinition() : {/[EMAIL PROTECTED](jjtree) TypeDefinition */ + DynamicSerDeTypeDefinition jjtn000 = new DynamicSerDeTypeDefinition(JJTTYPEDEFINITION); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeDefinition */ + try { +/[EMAIL PROTECTED]/ + Typedef()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Enum()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Senum()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Struct()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Xception()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ + +} + +DynamicSerDeTypedef Typedef() : {/[EMAIL PROTECTED](jjtree) Typedef */ + DynamicSerDeTypedef jjtn000 = new DynamicSerDeTypedef(JJTTYPEDEF); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Typedef */ + try { +/[EMAIL PROTECTED]/ + <tok_typedef> + DefinitionType() + jjtn000.name = <IDENTIFIER>.image/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + // store the type for later retrieval + this.types.put(jjtn000.name, jjtn000); + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +// returning void because we ignore this production. +void CommaOrSemicolon() : {/[EMAIL PROTECTED](jjtree) CommaOrSemicolon */ + DynamicSerDeCommaOrSemicolon jjtn000 = new DynamicSerDeCommaOrSemicolon(JJTCOMMAORSEMICOLON); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) CommaOrSemicolon */ + try { +/[EMAIL PROTECTED]/ + "," +| + ";"/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ +}/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode Enum() : {/[EMAIL PROTECTED](jjtree) Enum */ + DynamicSerDeEnum jjtn000 = new DynamicSerDeEnum(JJTENUM); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Enum */ + try { +/[EMAIL PROTECTED]/ + <tok_enum> <IDENTIFIER> "{" EnumDefList() "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode EnumDefList() : {/[EMAIL PROTECTED](jjtree) EnumDefList */ + DynamicSerDeEnumDefList jjtn000 = new DynamicSerDeEnumDefList(JJTENUMDEFLIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) EnumDefList */ + try { +/[EMAIL PROTECTED]/ + (EnumDef())+/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode EnumDef() : {/[EMAIL PROTECTED](jjtree) EnumDef */ + DynamicSerDeEnumDef jjtn000 = new DynamicSerDeEnumDef(JJTENUMDEF); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) EnumDef */ + try { +/[EMAIL PROTECTED]/ + <IDENTIFIER> ["=" <tok_int_constant>] [CommaOrSemicolon()]/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode Senum() : {/[EMAIL PROTECTED](jjtree) Senum */ + DynamicSerDeSenum jjtn000 = new DynamicSerDeSenum(JJTSENUM); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Senum */ + try { +/[EMAIL PROTECTED]/ + <tok_senum> <IDENTIFIER> "{" SenumDefList() "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode SenumDefList() : {/[EMAIL PROTECTED](jjtree) SenumDefList */ + DynamicSerDeSenumDefList jjtn000 = new DynamicSerDeSenumDefList(JJTSENUMDEFLIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) SenumDefList */ + try { +/[EMAIL PROTECTED]/ + (SenumDef())+/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode SenumDef() : {/[EMAIL PROTECTED](jjtree) SenumDef */ + DynamicSerDeSenumDef jjtn000 = new DynamicSerDeSenumDef(JJTSENUMDEF); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) SenumDef */ + try { +/[EMAIL PROTECTED]/ + <tok_literal> [CommaOrSemicolon()]/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +SimpleNode Const() : {/[EMAIL PROTECTED](jjtree) Const */ + DynamicSerDeConst jjtn000 = new DynamicSerDeConst(JJTCONST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Const */ + try { +/[EMAIL PROTECTED]/ + <tok_const> FieldType() <IDENTIFIER> "=" ConstValue() [CommaOrSemicolon()]/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode ConstValue() : {/[EMAIL PROTECTED](jjtree) ConstValue */ + DynamicSerDeConstValue jjtn000 = new DynamicSerDeConstValue(JJTCONSTVALUE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) ConstValue */ + try { +/[EMAIL PROTECTED]/ + <tok_int_constant>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +| <tok_double_constant>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +| <tok_literal>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +| <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +| ConstList()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +| ConstMap()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode ConstList() : {/[EMAIL PROTECTED](jjtree) ConstList */ + DynamicSerDeConstList jjtn000 = new DynamicSerDeConstList(JJTCONSTLIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) ConstList */ + try { +/[EMAIL PROTECTED]/ + "[" ConstListContents() "]"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode ConstListContents() : {/[EMAIL PROTECTED](jjtree) ConstListContents */ + DynamicSerDeConstListContents jjtn000 = new DynamicSerDeConstListContents(JJTCONSTLISTCONTENTS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) ConstListContents */ + try { +/[EMAIL PROTECTED]/ + (ConstValue() [CommaOrSemicolon()])+/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode ConstMap() : {/[EMAIL PROTECTED](jjtree) ConstMap */ + DynamicSerDeConstMap jjtn000 = new DynamicSerDeConstMap(JJTCONSTMAP); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) ConstMap */ + try { +/[EMAIL PROTECTED]/ + "{" ConstMapContents() "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode ConstMapContents() : {/[EMAIL PROTECTED](jjtree) ConstMapContents */ + DynamicSerDeConstMapContents jjtn000 = new DynamicSerDeConstMapContents(JJTCONSTMAPCONTENTS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) ConstMapContents */ + try { +/[EMAIL PROTECTED]/ + (ConstValue() ":" ConstValue() [CommaOrSemicolon()])+/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + } +|/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeStruct Struct() : {/[EMAIL PROTECTED](jjtree) Struct */ + DynamicSerDeStruct jjtn000 = new DynamicSerDeStruct(JJTSTRUCT); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ + +} +{/[EMAIL PROTECTED](jjtree) Struct */ + try { +/[EMAIL PROTECTED]/ + <tok_struct> + jjtn000.name = <IDENTIFIER>.image + "{" + FieldList() + "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + this.types.put(jjtn000.name,jjtn000); + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +SimpleNode Xception() : {/[EMAIL PROTECTED](jjtree) Xception */ + DynamicSerDeXception jjtn000 = new DynamicSerDeXception(JJTXCEPTION); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Xception */ + try { +/[EMAIL PROTECTED]/ + <tok_exception> <IDENTIFIER> "{" FieldList() "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +SimpleNode Service() : {/[EMAIL PROTECTED](jjtree) Service */ + DynamicSerDeService jjtn000 = new DynamicSerDeService(JJTSERVICE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Service */ + try { +/[EMAIL PROTECTED]/ + <tok_service> + <IDENTIFIER> + Extends() + "{" + FlagArgs() + (Function())+ + UnflagArgs() + "}"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + // at some point, these should be inserted as a "db" + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode FlagArgs() : {/[EMAIL PROTECTED](jjtree) FlagArgs */ + DynamicSerDeFlagArgs jjtn000 = new DynamicSerDeFlagArgs(JJTFLAGARGS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) FlagArgs */ + try { +/[EMAIL PROTECTED]//[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode UnflagArgs() : {/[EMAIL PROTECTED](jjtree) UnflagArgs */ + DynamicSerDeUnflagArgs jjtn000 = new DynamicSerDeUnflagArgs(JJTUNFLAGARGS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) UnflagArgs */ + try { +/[EMAIL PROTECTED]//[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode Extends() : {/[EMAIL PROTECTED](jjtree) Extends */ + DynamicSerDeExtends jjtn000 = new DynamicSerDeExtends(JJTEXTENDS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Extends */ + try { +/[EMAIL PROTECTED]/ + <tok_extends> <IDENTIFIER>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +|/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +DynamicSerDeFunction Function() : {/[EMAIL PROTECTED](jjtree) Function */ + DynamicSerDeFunction jjtn000 = new DynamicSerDeFunction(JJTFUNCTION); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Function */ + try { +/[EMAIL PROTECTED]/ + // metastore ignores async and type + Async() + FunctionType() + + // the name of the function/table + jjtn000.name = <IDENTIFIER>.image + "(" + FieldList() + ")" + Throws() + [CommaOrSemicolon()]/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + + { + this.tables.put(jjtn000.name, jjtn000); + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +void Async() : {/[EMAIL PROTECTED](jjtree) Async */ + DynamicSerDeAsync jjtn000 = new DynamicSerDeAsync(JJTASYNC); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Async */ + try { +/[EMAIL PROTECTED]/ + <tok_async> +|/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{}/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +void Throws() : {/[EMAIL PROTECTED](jjtree) Throws */ + DynamicSerDeThrows jjtn000 = new DynamicSerDeThrows(JJTTHROWS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Throws */ + try { +/[EMAIL PROTECTED]/ + <tok_throws> "(" FieldList() ")" +|/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{}/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +// nothing special - just use the DynamicSerDeFieldList's children methods to access the fields +DynamicSerDeFieldList FieldList() : {/[EMAIL PROTECTED](jjtree) FieldList */ + DynamicSerDeFieldList jjtn000 = new DynamicSerDeFieldList(JJTFIELDLIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ + this.field_val = -1; +} +{/[EMAIL PROTECTED](jjtree) FieldList */ + try { +/[EMAIL PROTECTED]/ + (Field())*/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + +DynamicSerDeField Field() : {/[EMAIL PROTECTED](jjtree) Field */ + DynamicSerDeField jjtn000 = new DynamicSerDeField(JJTFIELD); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ + + String fidnum = ""; + String fid; +} +{/[EMAIL PROTECTED](jjtree) Field */ + try { +/[EMAIL PROTECTED]/ + + // parse the field id which is optional + [fidnum=<tok_int_constant>.image ":"] + + // is this field required or optional? default is optional + FieldRequiredness() + + // field type - obviously not optional + FieldType() + + // the name of the field - not optional + jjtn000.name = <IDENTIFIER>.image + + // does it have = some value? + FieldValue() + + // take it or leave it + [CommaOrSemicolon()]/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + + { + if(fidnum.length() > 0) { + int fidInt = Integer.valueOf(fidnum); + jjtn000.fieldid = fidInt; + } else { + jjtn000.fieldid = this.field_val--; + } + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + + + +SimpleNode FieldRequiredness() : {/[EMAIL PROTECTED](jjtree) FieldRequiredness */ + DynamicSerDeFieldRequiredness jjtn000 = new DynamicSerDeFieldRequiredness(JJTFIELDREQUIREDNESS); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) FieldRequiredness */ + try { +/[EMAIL PROTECTED]/ + <tok_required>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| <tok_optional>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +|/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode FieldValue() : {/[EMAIL PROTECTED](jjtree) FieldValue */ + DynamicSerDeFieldValue jjtn000 = new DynamicSerDeFieldValue(JJTFIELDVALUE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) FieldValue */ + try { +/[EMAIL PROTECTED]/ + "=" + ConstValue()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +|/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{ + return jjtn000; +}/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +SimpleNode DefinitionType() : {/[EMAIL PROTECTED](jjtree) DefinitionType */ + DynamicSerDeDefinitionType jjtn000 = new DynamicSerDeDefinitionType(JJTDEFINITIONTYPE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) DefinitionType */ + try { +/[EMAIL PROTECTED]/ +// BaseType() xxx + TypeString()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeBool()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei16()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei32()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei64()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeDouble()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeMap()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeSet()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeList()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +void FunctionType() : {/[EMAIL PROTECTED](jjtree) FunctionType */ + DynamicSerDeFunctionType jjtn000 = new DynamicSerDeFunctionType(JJTFUNCTIONTYPE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) FunctionType */ + try { +/[EMAIL PROTECTED]/ + FieldType() +| <tok_void>/[EMAIL PROTECTED](jjtree)*/ +{ + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; +} +/[EMAIL PROTECTED]/ +{}/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeFieldType FieldType() : {/[EMAIL PROTECTED](jjtree) FieldType */ + DynamicSerDeFieldType jjtn000 = new DynamicSerDeFieldType(JJTFIELDTYPE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ +} + +{/[EMAIL PROTECTED](jjtree) FieldType */ + try { +/[EMAIL PROTECTED]/ + TypeString()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeBool()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei16()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei32()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| Typei64()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| TypeDouble()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| + TypeMap()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| + TypeSet()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| + TypeList()/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + } +| + jjtn000.name = <IDENTIFIER>.image/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeString TypeString() : {/[EMAIL PROTECTED](jjtree) TypeString */ + DynamicSerDeTypeString jjtn000 = new DynamicSerDeTypeString(JJTTYPESTRING); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeString */ + try { +/[EMAIL PROTECTED]/ + <tok_string>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeByte TypeByte() : {/[EMAIL PROTECTED](jjtree) TypeByte */ + DynamicSerDeTypeByte jjtn000 = new DynamicSerDeTypeByte(JJTTYPEBYTE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ +} +{/[EMAIL PROTECTED](jjtree) TypeByte */ + try { +/[EMAIL PROTECTED]/ + <tok_byte>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypei16 Typei16() : {/[EMAIL PROTECTED](jjtree) Typei16 */ + DynamicSerDeTypei16 jjtn000 = new DynamicSerDeTypei16(JJTTYPEI16); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/ +} +{/[EMAIL PROTECTED](jjtree) Typei16 */ + try { +/[EMAIL PROTECTED]/ + <tok_i16>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypei32 Typei32() : {/[EMAIL PROTECTED](jjtree) Typei32 */ + DynamicSerDeTypei32 jjtn000 = new DynamicSerDeTypei32(JJTTYPEI32); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Typei32 */ + try { +/[EMAIL PROTECTED]/ + <tok_i32>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypei64 Typei64() : {/[EMAIL PROTECTED](jjtree) Typei64 */ + DynamicSerDeTypei64 jjtn000 = new DynamicSerDeTypei64(JJTTYPEI64); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) Typei64 */ + try { +/[EMAIL PROTECTED]/ + <tok_i64>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeDouble TypeDouble() : {/[EMAIL PROTECTED](jjtree) TypeDouble */ + DynamicSerDeTypeDouble jjtn000 = new DynamicSerDeTypeDouble(JJTTYPEDOUBLE); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeDouble */ + try { +/[EMAIL PROTECTED]/ + <tok_double>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeBool TypeBool() : {/[EMAIL PROTECTED](jjtree) TypeBool */ + DynamicSerDeTypeBool jjtn000 = new DynamicSerDeTypeBool(JJTTYPEBOOL); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeBool */ + try { +/[EMAIL PROTECTED]/ + <tok_bool>/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeMap TypeMap() : {/[EMAIL PROTECTED](jjtree) TypeMap */ + DynamicSerDeTypeMap jjtn000 = new DynamicSerDeTypeMap(JJTTYPEMAP); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeMap */ + try { +/[EMAIL PROTECTED]/ + <tok_map> + "<" + FieldType() + "," + FieldType() + ">"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeSet TypeSet() : {/[EMAIL PROTECTED](jjtree) TypeSet */ + DynamicSerDeTypeSet jjtn000 = new DynamicSerDeTypeSet(JJTTYPESET); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeSet */ + try { +/[EMAIL PROTECTED]/ + <tok_set> + "<" + + FieldType() + + ">"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +} + +DynamicSerDeTypeList TypeList() : {/[EMAIL PROTECTED](jjtree) TypeList */ + DynamicSerDeTypeList jjtn000 = new DynamicSerDeTypeList(JJTTYPELIST); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000); +/[EMAIL PROTECTED]/} +{/[EMAIL PROTECTED](jjtree) TypeList */ + try { +/[EMAIL PROTECTED]/ + <tok_list> + "<" + + FieldType() + + ">"/[EMAIL PROTECTED](jjtree)*/ + { + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + } +/[EMAIL PROTECTED]/ + { + return jjtn000; + }/[EMAIL PROTECTED](jjtree)*/ + } catch (Throwable jjte000) { + if (jjtc000) { + jjtree.clearNodeScope(jjtn000); + jjtc000 = false; + } else { + jjtree.popNode(); + } + if (jjte000 instanceof RuntimeException) { + throw (RuntimeException)jjte000; + } + if (jjte000 instanceof ParseException) { + throw (ParseException)jjte000; + } + throw (Error)jjte000; + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } +/[EMAIL PROTECTED]/ +}
Added: hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammarConstants.java URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammarConstants.java?rev=706704&view=auto ============================================================================== --- hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammarConstants.java (added) +++ hadoop/core/trunk/src/contrib/hive/serde/src/gen-java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammarConstants.java Tue Oct 21 11:11:05 2008 @@ -0,0 +1,133 @@ +/* Generated By:JJTree&JavaCC: Do not edit this line. thrift_grammarConstants.java */ +package org.apache.hadoop.hive.serde2.dynamic_type; + +public interface thrift_grammarConstants { + + int EOF = 0; + int tok_const = 8; + int tok_namespace = 9; + int tok_cpp_namespace = 10; + int tok_cpp_include = 11; + int tok_cpp_type = 12; + int tok_java_package = 13; + int tok_cocoa_prefix = 14; + int tok_csharp_namespace = 15; + int tok_php_namespace = 16; + int tok_py_module = 17; + int tok_perl_package = 18; + int tok_ruby_namespace = 19; + int tok_smalltalk_category = 20; + int tok_smalltalk_prefix = 21; + int tok_xsd_all = 22; + int tok_xsd_optional = 23; + int tok_xsd_nillable = 24; + int tok_xsd_namespace = 25; + int tok_xsd_attrs = 26; + int tok_include = 27; + int tok_void = 28; + int tok_bool = 29; + int tok_byte = 30; + int tok_i16 = 31; + int tok_i32 = 32; + int tok_i64 = 33; + int tok_double = 34; + int tok_string = 35; + int tok_slist = 36; + int tok_senum = 37; + int tok_map = 38; + int tok_list = 39; + int tok_set = 40; + int tok_async = 41; + int tok_typedef = 42; + int tok_struct = 43; + int tok_exception = 44; + int tok_extends = 45; + int tok_throws = 46; + int tok_service = 47; + int tok_enum = 48; + int tok_required = 49; + int tok_optional = 50; + int tok_int_constant = 51; + int tok_double_constant = 52; + int IDENTIFIER = 53; + int LETTER = 54; + int DIGIT = 55; + int tok_literal = 56; + int tok_st_identifier = 57; + + int DEFAULT = 0; + + String[] tokenImage = { + "<EOF>", + "\" \"", + "\"\\t\"", + "\"\\n\"", + "\"\\r\"", + "<token of kind 5>", + "<token of kind 6>", + "<token of kind 7>", + "\"const\"", + "\"namespace\"", + "\"cpp_namespace\"", + "\"cpp_include\"", + "\"cpp_type\"", + "\"java_package\"", + "\"cocoa_prefix\"", + "\"csharp_namespace\"", + "\"php_namespace\"", + "\"py_module\"", + "\"perl_package\"", + "\"ruby_namespace\"", + "\"smalltalk_category\"", + "\"smalltalk_prefix\"", + "\"xsd_all\"", + "\"xsd_optional\"", + "\"xsd_nillable\"", + "\"xsd_namespace\"", + "\"xsd_attrs\"", + "\"include\"", + "\"void\"", + "\"bool\"", + "\"byte\"", + "\"i16\"", + "\"i32\"", + "\"i64\"", + "\"double\"", + "\"string\"", + "\"slist\"", + "\"senum\"", + "\"map\"", + "\"list\"", + "\"set\"", + "\"async\"", + "\"typedef\"", + "\"struct\"", + "\"exception\"", + "\"extends\"", + "\"throws\"", + "\"service\"", + "\"enum\"", + "\"required\"", + "\"optional\"", + "<tok_int_constant>", + "<tok_double_constant>", + "<IDENTIFIER>", + "<LETTER>", + "<DIGIT>", + "<tok_literal>", + "<tok_st_identifier>", + "\",\"", + "\";\"", + "\"{\"", + "\"}\"", + "\"=\"", + "\"[\"", + "\"]\"", + "\":\"", + "\"(\"", + "\")\"", + "\"<\"", + "\">\"", + }; + +}
