Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return IfExp NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return IfExp NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad NameStore body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad Str IfExp NameLoad Call AttributeLoad Str attr NameLoad Str If AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad Call AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword ListLoad AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad Str decorator_list NameLoad decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A re N/A shutil N/A subprocess twitter.common.collections OrderedSet pants.backend.codegen.subsystems.thrift_defaults ThriftDefaults pants.backend.codegen.targets.java_thrift_library JavaThriftLibrary pants.backend.codegen.tasks.simple_codegen_task SimpleCodegenTask pants.backend.jvm.targets.java_library JavaLibrary pants.base.build_environment get_buildroot pants.base.exceptions TaskError pants.base.workunit WorkUnitLabel pants.binaries.thrift_binary ThriftBinary pants.util.memo memoized_property ApacheThriftGen N/A SimpleCodegenTask N/A register_options N/A N/A cls register N/A N/A N/A N/A N/A N/A super ApacheThriftGen cls register_options register N/A N/A register --strict default True fingerprint True type bool help Run thrift compiler with strict warnings. N/A N/A register --gen-options advanced True fingerprint True help Use these apache thrift java gen options. N/A N/A register --deps advanced True type list help A list of specs pointing to dependencies of thrift generated java code. N/A N/A register --service-deps advanced True type list help A list of specs pointing to dependencies of thrift generated java service code.  If not supplied, then --deps will be used for service deps. N/A classmethod global_subsystems N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super ApacheThriftGen cls global_subsystems N/A ThriftDefaults N/A classmethod task_subsystems N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super ApacheThriftGen cls task_subsystems N/A N/A ThriftBinary Factory N/A classmethod subsystem_dependencies N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super ApacheThriftGen cls subsystem_dependencies N/A ThriftDefaults N/A N/A N/A ThriftBinary Factory scoped cls N/A classmethod __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super ApacheThriftGen self __init__ args kwargs N/A N/A self _thrift_defaults N/A N/A ThriftDefaults global_instance N/A _thrift_binary N/A N/A self N/A N/A N/A thrift_binary N/A N/A N/A N/A N/A ThriftBinary Factory scoped_instance self create N/A N/A thrift_binary path N/A memoized_property _deps N/A N/A self N/A N/A N/A deps N/A N/A N/A self get_options deps N/A N/A deps N/A list N/A N/A self resolve_deps deps N/A N/A memoized_property _service_deps N/A N/A self N/A N/A N/A service_deps N/A N/A N/A self get_options service_deps N/A N/A service_deps N/A list N/A N/A self resolve_deps service_deps N/A self _deps N/A memoized_property N/A SERVICE_PARSER N/A N/A re compile ^\s*service\s+(?:[^\s{]+) _declares_service N/A N/A self source N/A N/A N/A N/A open source thrift N/A N/A N/A any N/A line N/A line thrift N/A N/A N/A self SERVICE_PARSER search line N/A synthetic_target_extra_dependencies N/A N/A self target target_workdir N/A N/A N/A source N/A N/A target sources_relative_to_buildroot N/A N/A N/A N/A self _declares_service N/A N/A N/A os path join N/A get_buildroot source N/A N/A N/A self _service_deps N/A N/A self _deps N/A synthetic_target_type N/A N/A self target N/A N/A N/A JavaLibrary N/A is_gentarget N/A N/A self target N/A N/A N/A N/A N/A isinstance target JavaThriftLibrary N/A thrift N/A N/A N/A self _thrift_defaults compiler target N/A _thrift_cmd N/A N/A self N/A N/A N/A cmd N/A N/A self _thrift_binary N/A gen_options N/A N/A N/A self get_options gen_options N/A N/A N/A cmd extend N/A --gen N/A gen_options N/A N/A java:{} format gen_options java N/A N/A N/A N/A self get_options strict N/A N/A N/A N/A cmd append -strict N/A N/A N/A N/A N/A self get_options level debug N/A N/A N/A N/A cmd append -verbose N/A cmd N/A memoized_property _generate_thrift N/A N/A self target target_workdir N/A N/A N/A target_cmd N/A N/A self _thrift_cmd N/A N/A bases N/A OrderedSet N/A N/A tgt target_base N/A tgt N/A N/A target closure N/A N/A self is_gentarget tgt N/A base bases N/A N/A N/A N/A target_cmd extend N/A -I base N/A N/A N/A target_cmd extend N/A -o target_workdir N/A source N/A N/A target sources_relative_to_buildroot N/A N/A cmd N/A target_cmd N/A N/A N/A N/A cmd append N/A N/A N/A os path join N/A get_buildroot source N/A N/A N/A N/A self context new_workunit name source labels N/A N/A WorkUnitLabel TOOL cmd N/A N/A join cmd workunit N/A N/A result N/A N/A subprocess call cmd stdout N/A N/A workunit output stdout stderr N/A N/A workunit output stderr N/A N/A result 0 N/A N/A N/A TaskError N/A N/A {} ... exited non-zero ({}) format N/A self _thrift_binary result N/A gen_dir N/A N/A N/A os path join target_workdir gen-java N/A path N/A N/A os listdir gen_dir N/A N/A N/A N/A shutil move N/A N/A N/A os path join gen_dir path target_workdir N/A N/A N/A os rmdir gen_dir N/A execute_codegen N/A N/A self target target_workdir N/A N/A N/A N/A N/A self _generate_thrift target target_workdir N/A _copy_target_attributes N/A N/A self N/A N/A N/A Propagate the provides attribute to the synthetic java_library() target for publishing. N/A N/A provides N/A property N/A