def __init__(self, settings=None, template=None): Generator.__init__(self) if settings is not None and not isinstance(settings, dict): raise TypeError('settings must be a dict') self._settings = settings if template is not None and not isinstance(template, str): raise TypeError('template must be a str') self._template = template
def __init__( self, cpp_exception_includes_definition=None, cpp_exception_parent_class_qname='::thryft::Exception', cpp_service_includes_definition=None, cpp_service_parent_class_qname='::thryft::Service', ): Generator.__init__(self) self.__cpp_exception_includes_definition = cpp_exception_includes_definition if cpp_exception_includes_definition is not None else tuple() self.__cpp_exception_parent_class_qname = cpp_exception_parent_class_qname self.__cpp_service_includes_definition = cpp_service_includes_definition if cpp_service_includes_definition is not None else tuple() self.__cpp_service_parent_class_qname = cpp_service_parent_class_qname
def __init__( self, default_methods=False, exception_type_extends_default='org.thryft.ThryftException', function_overloads=False, mutable_compound_types=False, namespace_prefix=None, thrift_id_java_type='short', write_field_metadata=True, **kwds ): Generator.__init__(self, **kwds) self.__default_methods = default_methods self.__exception_type_extends_default = exception_type_extends_default self.__function_overloads = function_overloads self.__mutable_compound_types = mutable_compound_types self.__namespace_prefix = namespace_prefix self.__thrift_id_java_type = thrift_id_java_type self.__write_field_metadata = write_field_metadata
def __init__(self, ts_out_dir_path, ts_share_dir_path, **kwds): Generator.__init__(self, **kwds) self.__ts_out_dir_path = ts_out_dir_path self.__ts_share_dir_path = ts_share_dir_path
def __init__(self, package_name): Generator.__init__(self) self.__package_name = package_name
def __init__(self, import_base): Generator.__init__(self) self.__import_base = import_base
def __init__(self, default_methods=False, function_overloads=False, mutable_compound_types=False, namespace_prefix=None, **kwds): Generator.__init__(self, **kwds) self.__default_methods = default_methods self.__function_overloads = function_overloads self.__mutable_compound_types = mutable_compound_types self.__namespace_prefix = namespace_prefix
def __init__(self, match_namespace_to_path=True, **kwds): Generator.__init__(self, **kwds) self._match_namespace_to_path = match_namespace_to_path
def __init__(self, **kwds): Generator.__init__(self, **kwds) self.ts_out_dir_path = None