Class ClassPath


  • public class ClassPath
    extends java.lang.Object
    • Constructor Detail

      • ClassPath

        public ClassPath​(ClassProvider... classProviders)
                  throws java.io.IOException
        Creates a new ClassPath instance that can load classes from the given providers
        Parameters:
        classProviders - A varargs array of ClassProviders. When loading a class, these providers will be searched in order
        Throws:
        java.io.IOException
      • ClassPath

        public ClassPath​(java.lang.Iterable<ClassProvider> classProviders)
                  throws java.io.IOException
        Creates a new ClassPath instance that can load classes from the given providers
        Parameters:
        classProviders - An iterable of ClassProviders. When loading a class, these providers will be searched in order
        Throws:
        java.io.IOException
      • ClassPath

        public ClassPath​(@Nonnull
                         java.lang.Iterable<? extends ClassProvider> classProviders,
                         boolean checkPackagePrivateAccess,
                         int oatVersion)
        Creates a new ClassPath instance that can load classes from the given providers
        Parameters:
        classProviders - An iterable of ClassProviders. When loading a class, these providers will be searched in order
        checkPackagePrivateAccess - Whether checkPackagePrivateAccess is needed, enabled for ONLY early API 17 by default
        oatVersion - The applicable oat version, or NOT_ART
    • Method Detail

      • isArt

        public boolean isArt()
      • getClass

        @Nonnull
        public TypeProto getClass​(@Nonnull
                                  java.lang.CharSequence type)
      • getClassDef

        @Nonnull
        public ClassDef getClassDef​(java.lang.String type)
      • getUnknownClass

        @Nonnull
        public TypeProto getUnknownClass()
      • shouldCheckPackagePrivateAccess

        public boolean shouldCheckPackagePrivateAccess()