public class thrift_grammar extends java.lang.Object implements thrift_grammarTreeConstants, thrift_grammarConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTthrift_grammarState |
jjtree |
protected java.util.Map<java.lang.String,DynamicSerDeSimpleNode> |
tables |
Token |
token
Current token.
|
thrift_grammarTokenManager |
token_source
Generated Token Manager.
|
protected java.util.Map<java.lang.String,DynamicSerDeSimpleNode> |
types |
JJTASYNC, JJTCOMMAORSEMICOLON, JJTCONST, JJTCONSTLIST, JJTCONSTLISTCONTENTS, JJTCONSTMAP, JJTCONSTMAPCONTENTS, JJTCONSTVALUE, JJTDEFINITION, JJTDEFINITIONTYPE, JJTENUM, JJTENUMDEF, JJTENUMDEFLIST, JJTEXTENDS, JJTFIELD, JJTFIELDLIST, JJTFIELDREQUIREDNESS, JJTFIELDTYPE, JJTFIELDVALUE, JJTFLAGARGS, JJTFUNCTION, JJTFUNCTIONTYPE, JJTHEADER, JJTHEADERLIST, JJTINCLUDE, JJTNAMESPACE, jjtNodeName, JJTSENUM, JJTSENUMDEF, JJTSENUMDEFLIST, JJTSERVICE, JJTSTART, JJTSTRUCT, JJTTHROWS, JJTTYPEBOOL, JJTTYPEBYTE, JJTTYPEDEF, JJTTYPEDEFINITION, JJTTYPEDOUBLE, JJTTYPEI16, JJTTYPEI32, JJTTYPEI64, JJTTYPELIST, JJTTYPEMAP, JJTTYPESET, JJTTYPESTRING, JJTUNFLAGARGS, JJTXCEPTIONDEFAULT, DIGIT, EOF, IDENTIFIER, LETTER, tok_async, tok_bool, tok_byte, tok_cocoa_prefix, tok_const, tok_cpp_include, tok_cpp_namespace, tok_cpp_type, tok_csharp_namespace, tok_double, tok_double_constant, tok_enum, tok_exception, tok_extends, tok_i16, tok_i32, tok_i64, tok_include, tok_int_constant, tok_java_package, tok_list, tok_literal, tok_map, tok_namespace, tok_optional, tok_perl_package, tok_php_namespace, tok_py_module, tok_required, tok_ruby_namespace, tok_senum, tok_service, tok_set, tok_skip, tok_slist, tok_smalltalk_category, tok_smalltalk_prefix, tok_st_identifier, tok_string, tok_struct, tok_throws, tok_typedef, tok_void, tok_xsd_all, tok_xsd_attrs, tok_xsd_namespace, tok_xsd_nillable, tok_xsd_optional, tokenImage| Modifier | Constructor and Description |
|---|---|
|
thrift_grammar(java.io.InputStream stream)
Constructor with InputStream.
|
protected |
thrift_grammar(java.io.InputStream is,
java.util.List<java.lang.String> include_path,
boolean junk) |
|
thrift_grammar(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
|
thrift_grammar(java.io.Reader stream)
Constructor.
|
|
thrift_grammar(thrift_grammarTokenManager tm)
Constructor with generated Token Manager.
|
protected JJTthrift_grammarState jjtree
protected java.util.Map<java.lang.String,DynamicSerDeSimpleNode> types
protected java.util.Map<java.lang.String,DynamicSerDeSimpleNode> tables
public thrift_grammarTokenManager token_source
public Token token
public Token jj_nt
protected thrift_grammar(java.io.InputStream is,
java.util.List<java.lang.String> include_path,
boolean junk)
public thrift_grammar(java.io.InputStream stream)
public thrift_grammar(java.io.InputStream stream,
java.lang.String encoding)
public thrift_grammar(java.io.Reader stream)
public thrift_grammar(thrift_grammarTokenManager tm)
public static void main(java.lang.String[] args)
public final SimpleNode Start() throws ParseException
ParseExceptionpublic final SimpleNode HeaderList() throws ParseException
ParseExceptionpublic final SimpleNode Header() throws ParseException
ParseExceptionpublic final SimpleNode Namespace() throws ParseException
ParseExceptionpublic final SimpleNode Include() throws ParseException
ParseExceptionpublic final SimpleNode Definition() throws ParseException
ParseExceptionpublic final SimpleNode TypeDefinition() throws ParseException
ParseExceptionpublic final DynamicSerDeTypedef Typedef() throws ParseException
ParseExceptionpublic final void CommaOrSemicolon()
throws ParseException
ParseExceptionpublic final SimpleNode Enum() throws ParseException
ParseExceptionpublic final SimpleNode EnumDefList() throws ParseException
ParseExceptionpublic final SimpleNode EnumDef() throws ParseException
ParseExceptionpublic final SimpleNode Senum() throws ParseException
ParseExceptionpublic final SimpleNode SenumDefList() throws ParseException
ParseExceptionpublic final SimpleNode SenumDef() throws ParseException
ParseExceptionpublic final SimpleNode Const() throws ParseException
ParseExceptionpublic final SimpleNode ConstValue() throws ParseException
ParseExceptionpublic final SimpleNode ConstList() throws ParseException
ParseExceptionpublic final SimpleNode ConstListContents() throws ParseException
ParseExceptionpublic final SimpleNode ConstMap() throws ParseException
ParseExceptionpublic final SimpleNode ConstMapContents() throws ParseException
ParseExceptionpublic final DynamicSerDeStruct Struct() throws ParseException
ParseExceptionpublic final SimpleNode Xception() throws ParseException
ParseExceptionpublic final SimpleNode Service() throws ParseException
ParseExceptionpublic final SimpleNode FlagArgs() throws ParseException
ParseExceptionpublic final SimpleNode UnflagArgs() throws ParseException
ParseExceptionpublic final SimpleNode Extends() throws ParseException
ParseExceptionpublic final DynamicSerDeFunction Function() throws ParseException
ParseExceptionpublic final void Async()
throws ParseException
ParseExceptionpublic final void Throws()
throws ParseException
ParseExceptionpublic final DynamicSerDeFieldList FieldList() throws ParseException
ParseExceptionpublic final DynamicSerDeField Field() throws ParseException
ParseExceptionpublic final DynamicSerDeFieldRequiredness FieldRequiredness() throws ParseException
ParseExceptionpublic final SimpleNode FieldValue() throws ParseException
ParseExceptionpublic final SimpleNode DefinitionType() throws ParseException
ParseExceptionpublic final void FunctionType()
throws ParseException
ParseExceptionpublic final DynamicSerDeFieldType FieldType() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeString TypeString() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeByte TypeByte() throws ParseException
ParseExceptionpublic final DynamicSerDeTypei16 Typei16() throws ParseException
ParseExceptionpublic final DynamicSerDeTypei32 Typei32() throws ParseException
ParseExceptionpublic final DynamicSerDeTypei64 Typei64() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeDouble TypeDouble() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeBool TypeBool() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeMap TypeMap() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeSet TypeSet() throws ParseException
ParseExceptionpublic final DynamicSerDeTypeList TypeList() throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(thrift_grammarTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2012 The Apache Software Foundation