Module ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return BoolOpAnd Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad Str Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement textwrap dedent pants.backend.codegen.targets.java_thrift_library JavaThriftLibrary pants.backend.codegen.tasks.apache_thrift_gen ApacheThriftGen pants.backend.jvm.targets.java_library JavaLibrary pants_test.tasks.task_test_base TaskTestBase ApacheThriftGenTest N/A TaskTestBase N/A task_type N/A N/A cls N/A N/A N/A ApacheThriftGen N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApacheThriftGenTest self setUp N/A generate_single_thrift_target N/A N/A self java_thrift_library N/A N/A N/A context N/A N/A self context target_roots N/A java_thrift_library N/A apache_thrift_gen N/A N/A self create_task context N/A N/A N/A apache_thrift_gen execute is_synthetic_java_library N/A N/A target N/A N/A N/A N/A N/A isinstance target JavaLibrary N/A target is_synthetic N/A N/A synthetic_targets N/A N/A context targets predicate is_synthetic_java_library N/A N/A N/A self assertEqual 1 N/A len synthetic_targets N/A N/A synthetic_targets N/A 0 N/A test_single_namespace N/A N/A self N/A N/A N/A N/A N/A self create_file src/thrift/com/foo/one.thrift contents N/A dedent 
    namespace java com.foo

    struct One {}
     N/A one N/A N/A self make_target spec src/thrift/com/foo:one target_type JavaThriftLibrary sources N/A one.thrift compiler thrift N/A synthetic_target N/A N/A self generate_single_thrift_target one N/A N/A N/A self assertEqual N/A com/foo/One.java N/A list N/A N/A synthetic_target sources_relative_to_source_root N/A test_nested_namespaces N/A N/A self N/A N/A N/A N/A N/A self create_file src/thrift/com/foo/one.thrift contents N/A dedent 
    namespace java com.foo

    struct One {}
     N/A N/A N/A self create_file src/thrift/com/foo/bar/two.thrift contents N/A dedent 
    namespace java com.foo.bar

    struct Two {}
     N/A one N/A N/A self make_target spec src/thrift/com/foo:one target_type JavaThriftLibrary sources N/A one.thrift bar/two.thrift compiler thrift N/A synthetic_target N/A N/A self generate_single_thrift_target one N/A N/A N/A self assertEqual N/A sorted N/A com/foo/One.java com/foo/bar/Two.java N/A sorted N/A N/A synthetic_target sources_relative_to_source_root N/A N/A