/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }
/** * Returns the class loader which was used to load the class represented by * this {@code Class}. Implementations are free to return {@code null} for * classes that were loaded by the bootstrap class loader. The Android * reference implementation, though, always returns a reference to an actual * class loader. */ public ClassLoader getClassLoader() { if (this.isPrimitive()) { return null; } ClassLoader loader = getClassLoaderImpl(); if (loader == null) { loader = BootClassLoader.getInstance(); } return loader; }