Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Yield handlers ExceptHandler type NameLoad body Assign NameStore BoolOpOr Call NameLoad NameLoad Str NameLoad Call NameLoad NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return With Call NameLoad NameLoad Str NameStore body With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad With Call NameLoad NameLoad Str NameStore body With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr While CompareNotEq Call AttributeLoad NameLoad attr NameLoad body Pass Return CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str With Call NameLoad NameLoad Str NameStore body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A re contextlib contextmanager pants.base.exceptions TaskError ParseError N/A TaskError N/A N/A N/A raise_on_eof N/A N/A infile N/A N/A N/A N/A N/A N/A N/A N/A N/A StopIteration N/A N/A filename N/A N/A getattr infile name None N/A repr infile N/A N/A ParseError N/A N/A Unexpected end-of-file parsing {0} format filename N/A contextmanager AnalysisParser N/A object N/A N/A Parse a file containing representation of an analysis for some JVM language. empty_test_header N/A N/A self N/A N/A N/A The header of a section that will be nonempty iff the analysis is nonempty.

    We look at this section to determine whether the analysis contains any useful data.
     N/A N/A NotImplementedError Subclasses must implement. N/A property current_test_header N/A N/A self N/A N/A N/A The header expected at the beginning of a file for the current analysis version.

    It is assumed that if this header mismatches, the file is unreadable.
     N/A N/A NotImplementedError Subclasses must implement. N/A property validate_analysis N/A N/A self path N/A N/A N/A Validates that the given path is either empty, or contains a readable analysis file.

    Raises ParseError on failure.
     N/A N/A N/A N/A N/A os path exists path N/A N/A N/A N/A open path rb infile N/A N/A N/A raise_on_eof infile N/A N/A firstline N/A N/A infile next N/A N/A firstline N/A self current_test_header N/A N/A N/A ParseError N/A N/A The '{}' analysis file mismatches the current analysis format. Got:
  {}
Expected:
  {} format path firstline N/A self current_test_header N/A is_nonempty_analysis N/A N/A self path N/A N/A N/A Does the specified analysis file contain information for at least one source file. N/A N/A N/A N/A N/A os path exists path N/A N/A False N/A N/A open path rb infile N/A N/A N/A raise_on_eof infile N/A N/A expected_header N/A N/A {0}:
 format N/A self empty_test_header N/A N/A N/A N/A infile next expected_header N/A N/A N/A N/A N/A N/A self parse_num_items N/A N/A infile next 0 N/A parse_from_path N/A N/A self infile_path N/A N/A N/A Parse an analysis instance from a text file. N/A N/A open infile_path rb infile N/A N/A N/A N/A self parse infile N/A parse N/A N/A self infile N/A N/A N/A Parse an analysis instance from an open file. N/A N/A NotImplementedError N/A parse_products_from_path N/A N/A self infile_path classes_dir N/A N/A N/A An efficient parser of just the src->class mappings.

    Returns a map of src -> list of classfiles. All paths are absolute.
     N/A N/A open infile_path rb infile N/A N/A N/A N/A self parse_products infile classes_dir N/A parse_products N/A N/A self infile classes_dir N/A N/A N/A An efficient parser of just the src->class mappings.

    Returns a map of src -> list of classfiles. All paths are absolute.
     N/A N/A NotImplementedError N/A parse_deps_from_path N/A N/A self infile_path N/A N/A N/A An efficient parser of just the src->dep mappings. N/A N/A open infile_path rb infile N/A N/A N/A N/A self parse_deps infile N/A parse_deps N/A N/A self infile N/A N/A N/A An efficient parser of just the binary, source and external deps sections.

    Returns a dict of src -> iterable of deps, where each item in deps is either a binary dep,
    source dep or external dep, i.e., either a source file, a class file or a jar file.

    All paths are relative.
     N/A N/A NotImplementedError N/A N/A _num_items_re N/A N/A re compile (\d+) items\n parse_num_items N/A N/A self line N/A N/A N/A Parse a line of the form '<num> items' and returns <num> as an int. N/A matchobj N/A N/A N/A self _num_items_re match line N/A N/A matchobj N/A N/A N/A ParseError N/A N/A Expected: "<num> items". Found: "{0}" format line N/A N/A int N/A N/A matchobj group 1 N/A rebase_from_path N/A N/A self infile_path outfile_path old_base new_base java_home N/A None N/A N/A Rebase an analysis at infile_path, writing the result to outfile_path.

    See rebase() below for an explanation of rebasing.
     N/A N/A open infile_path rb infile N/A N/A N/A open outfile_path wb outfile N/A N/A N/A N/A self rebase infile outfile old_base new_base java_home N/A rebase N/A N/A self infile outfile old_base new_base java_home N/A None N/A N/A Rebase an analysis read from infile and write the result to outfile.

    Rebasing means replacing references to paths under old_base with references to
    equivalent paths under new_base.

    If java_home is specified then any references to paths under it are scrubbed entirely.
     N/A N/A NotImplementedError N/A N/A