Class ClassPathResolver


  • public class ClassPathResolver
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ClassPathResolver.ResolveException
      An error that occurred while resolving the classpath
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassPathResolver​(java.util.List<java.lang.String> bootClassPathDirs, java.util.List<java.lang.String> bootClassPathEntries, java.util.List<java.lang.String> extraClassPathEntries, MultiDexContainer.DexEntry<?> dexEntry)
      Constructs a new ClassPathResolver using a specified list of bootclasspath entries
      ClassPathResolver​(java.util.List<java.lang.String> bootClassPathDirs, java.util.List<java.lang.String> extraClassPathEntries, MultiDexContainer.DexEntry<?> dexEntry)
      Constructs a new ClassPathResolver using a default list of bootclasspath entries
    • Constructor Detail

      • ClassPathResolver

        public ClassPathResolver​(@Nonnull
                                 java.util.List<java.lang.String> bootClassPathDirs,
                                 @Nullable
                                 java.util.List<java.lang.String> bootClassPathEntries,
                                 @Nonnull
                                 java.util.List<java.lang.String> extraClassPathEntries,
                                 @Nonnull
                                 MultiDexContainer.DexEntry<?> dexEntry)
                          throws java.io.IOException
        Constructs a new ClassPathResolver using a specified list of bootclasspath entries
        Parameters:
        bootClassPathDirs - A list of directories to search for boot classpath entries. Can be empty if all boot classpath entries are specified as local paths
        bootClassPathEntries - A list of boot classpath entries to load. These can either be local paths, or device paths (e.g. "/system/framework/framework.jar"). The entry will be interpreted first as a local path. If not found as a local path, it will be interpreted as a partial or absolute device path, and will be searched for in bootClassPathDirs
        extraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be local paths. Device paths are not supported.
        dexEntry - The dex entry containing the dex file that the classpath will be used to analyze
        Throws:
        java.io.IOException - If any IOException occurs
        ClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason If null, a default bootclasspath is used, depending on the the file type of dexFile and the api level. If empty, no boot classpath entries will be loaded
      • ClassPathResolver

        public ClassPathResolver​(@Nonnull
                                 java.util.List<java.lang.String> bootClassPathDirs,
                                 @Nonnull
                                 java.util.List<java.lang.String> extraClassPathEntries,
                                 @Nonnull
                                 MultiDexContainer.DexEntry<?> dexEntry)
                          throws java.io.IOException
        Constructs a new ClassPathResolver using a default list of bootclasspath entries
        Parameters:
        bootClassPathDirs - A list of directories to search for boot classpath entries
        extraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be local paths. Device paths are not supported.
        dexEntry - The dex entry containing the dex file that the classpath will be used to analyze
        Throws:
        java.io.IOException - If any IOException occurs
        ClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason If null, a default bootclasspath is used, depending on the the file type of dexFile and the api level. If empty, no boot classpath entries will be loaded
    • Method Detail

      • getResolvedClassProviders

        @Nonnull
        public java.util.List<ClassProvider> getResolvedClassProviders()