public class thrift_grammar extends Object implements thrift_grammarTreeConstants, thrift_grammarConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTthrift_grammarState |
jjtree |
protected Map<String,DynamicSerDeSimpleNode> |
tables |
Token |
token
Current token.
|
thrift_grammarTokenManager |
token_source
Generated Token Manager.
|
protected Map<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, JJTXCEPTION
DEFAULT, 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(InputStream stream)
Constructor with InputStream.
|
protected |
thrift_grammar(InputStream is,
List<String> include_path,
boolean junk) |
|
thrift_grammar(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
|
thrift_grammar(Reader stream)
Constructor.
|
|
thrift_grammar(thrift_grammarTokenManager tm)
Constructor with generated Token Manager.
|
protected JJTthrift_grammarState jjtree
protected Map<String,DynamicSerDeSimpleNode> types
protected Map<String,DynamicSerDeSimpleNode> tables
public thrift_grammarTokenManager token_source
public Token token
public Token jj_nt
protected thrift_grammar(InputStream is, List<String> include_path, boolean junk)
public thrift_grammar(InputStream stream)
public thrift_grammar(InputStream stream, String encoding)
public thrift_grammar(Reader stream)
public thrift_grammar(thrift_grammarTokenManager tm)
public static void main(String[] args)
public final SimpleNode Start() throws ParseException
ParseException
public final SimpleNode HeaderList() throws ParseException
ParseException
public final SimpleNode Header() throws ParseException
ParseException
public final SimpleNode Namespace() throws ParseException
ParseException
public final SimpleNode Include() throws ParseException
ParseException
public final SimpleNode Definition() throws ParseException
ParseException
public final SimpleNode TypeDefinition() throws ParseException
ParseException
public final DynamicSerDeTypedef Typedef() throws ParseException
ParseException
public final void CommaOrSemicolon() throws ParseException
ParseException
public final SimpleNode Enum() throws ParseException
ParseException
public final SimpleNode EnumDefList() throws ParseException
ParseException
public final SimpleNode EnumDef() throws ParseException
ParseException
public final SimpleNode Senum() throws ParseException
ParseException
public final SimpleNode SenumDefList() throws ParseException
ParseException
public final SimpleNode SenumDef() throws ParseException
ParseException
public final SimpleNode Const() throws ParseException
ParseException
public final SimpleNode ConstValue() throws ParseException
ParseException
public final SimpleNode ConstList() throws ParseException
ParseException
public final SimpleNode ConstListContents() throws ParseException
ParseException
public final SimpleNode ConstMap() throws ParseException
ParseException
public final SimpleNode ConstMapContents() throws ParseException
ParseException
public final DynamicSerDeStruct Struct() throws ParseException
ParseException
public final SimpleNode Xception() throws ParseException
ParseException
public final SimpleNode Service() throws ParseException
ParseException
public final SimpleNode FlagArgs() throws ParseException
ParseException
public final SimpleNode UnflagArgs() throws ParseException
ParseException
public final SimpleNode Extends() throws ParseException
ParseException
public final DynamicSerDeFunction Function() throws ParseException
ParseException
public final void Async() throws ParseException
ParseException
public final void Throws() throws ParseException
ParseException
public final DynamicSerDeFieldList FieldList() throws ParseException
ParseException
public final DynamicSerDeField Field() throws ParseException
ParseException
public final DynamicSerDeFieldRequiredness FieldRequiredness() throws ParseException
ParseException
public final SimpleNode FieldValue() throws ParseException
ParseException
public final SimpleNode DefinitionType() throws ParseException
ParseException
public final void FunctionType() throws ParseException
ParseException
public final DynamicSerDeFieldType FieldType() throws ParseException
ParseException
public final DynamicSerDeTypeString TypeString() throws ParseException
ParseException
public final DynamicSerDeTypeByte TypeByte() throws ParseException
ParseException
public final DynamicSerDeTypei16 Typei16() throws ParseException
ParseException
public final DynamicSerDeTypei32 Typei32() throws ParseException
ParseException
public final DynamicSerDeTypei64 Typei64() throws ParseException
ParseException
public final DynamicSerDeTypeDouble TypeDouble() throws ParseException
ParseException
public final DynamicSerDeTypeBool TypeBool() throws ParseException
ParseException
public final DynamicSerDeTypeMap TypeMap() throws ParseException
ParseException
public final DynamicSerDeTypeSet TypeSet() throws ParseException
ParseException
public final DynamicSerDeTypeList TypeList() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(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 © 2017 The Apache Software Foundation. All rights reserved.