tools/android/modularization/convenience/lookup_dep.py
def _extract_full_class_names_from_jar(abs_build_output_dir: pathlib.Path,
                                         abs_jar_path: pathlib.Path
                                         ) -> Set[str]:
    """Returns set of fully qualified class names in passed-in jar."""
    out = set()
    jar_namelist = ClassLookupIndex._read_jar_namelist(abs_build_output_dir,
                                                       abs_jar_path)
    for zip_entry_name in jar_namelist:
      if not zip_entry_name.endswith('.class'):
        continue
      # Remove .class suffix
      full_java_class = zip_entry_name[:-6]

      full_java_class = full_java_class.replace('/', '.')
      dollar_index = full_java_class.find('$')
      if dollar_index >= 0:
        full_java_class[0:dollar_index]

      out.add(full_java_class)
    return out
Returns set of fully qualified class names in passed-in jar.
Returns set of fully qualified class names in passed-in jar.
Returns set of fully qualified class names in passed - in jar .
def _extract_full_class_names_from_jar(abs_build_output_dir: pathlib.Path,
                                         abs_jar_path: pathlib.Path
                                         ) -> Set[str]:
    out = set()
    jar_namelist = ClassLookupIndex._read_jar_namelist(abs_build_output_dir,
                                                       abs_jar_path)
    for zip_entry_name in jar_namelist:
      if not zip_entry_name.endswith('.class'):
        continue
      full_java_class = zip_entry_name[:-6]
      full_java_class = full_java_class.replace('/', '.')
      dollar_index = full_java_class.find('$')
      if dollar_index >= 0:
        full_java_class[0:dollar_index]
      out.add(full_java_class)
    return out
def _extract_full_class_names_from_jar ( abs_build_output_dir : pathlib . Path , abs_jar_path : pathlib . Path ) -> Set [ str ] : out = set ( ) jar_namelist = ClassLookupIndex . _read_jar_namelist ( abs_build_output_dir , abs_jar_path ) for zip_entry_name in jar_namelist : if not zip_entry_name . endswith ( '.class' ) : continue full_java_class = zip_entry_name [ : - 6 ] full_java_class = full_java_class . replace ( '/' , '.' ) dollar_index = full_java_class . find ( '$' ) if dollar_index >= 0 : full_java_class [ 0 : dollar_index ] out . add ( full_java_class ) return out
Returns set of fully qualified class names in passed-in jar.
Returns set of fully qualified class names in passed - in jar .
"""Returns set of fully qualified class names in passed-in jar.""" # Remove .class suffix
abs_build_output_dir
pathlib.Path
abs_jar_path
pathlib.Path