public abstract class ClassLoader extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClassLoader() |
protected |
ClassLoader(ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
clearAssertionStatus() |
protected Class<?> |
defineClass(byte[] b,
int off,
int len) |
protected Class<?> |
defineClass(String name,
byte[] b,
int off,
int len) |
protected Class<?> |
defineClass(String name,
byte[] b,
int off,
int len,
ProtectionDomain protectionDomain) |
protected Class<?> |
defineClass(String name,
ByteBuffer b,
ProtectionDomain protectionDomain) |
protected Package |
definePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
URL sealBase) |
protected Class<?> |
findClass(String name)
Finds the class with a given name.
|
protected String |
findLibrary(String libname) |
protected Class<?> |
findLoadedClass(String name)
If the class with the given name has been already defined, it is returned.
|
protected URL |
findResource(String name)
Finds the resource with the given name.
|
protected Enumeration<URL> |
findResources(String name)
Returns an enumeration representing all the resources with the given
name.
|
protected Class<?> |
findSystemClass(String name) |
protected Object |
getClassLoadingLock(String className) |
protected Package |
getPackage(String name) |
protected Package[] |
getPackages() |
ClassLoader |
getParent() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
Enumeration<URL> |
getResources(String name) |
static ClassLoader |
getSystemClassLoader() |
static URL |
getSystemResource(String name) |
static InputStream |
getSystemResourceAsStream(String name) |
static Enumeration<URL> |
getSystemResources(String name) |
Class<?> |
loadClass(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
protected static boolean |
registerAsParallelCapable() |
protected void |
resolveClass(Class<?> c)
All the class objects are resolved internally by JPF.
|
void |
setClassAssertionStatus(String className,
boolean enabled) |
void |
setDefaultAssertionStatus(boolean enabled) |
void |
setPackageAssertionStatus(String packageName,
boolean enabled) |
protected void |
setSigners(Class<?> c,
Object[] signers) |
protected ClassLoader()
protected ClassLoader(ClassLoader parent)
protected URL findResource(String name)
public Enumeration<URL> getResources(String name) throws IOException
IOException
protected Enumeration<URL> findResources(String name) throws IOException
IOException
public InputStream getResourceAsStream(String name)
public static ClassLoader getSystemClassLoader()
public static InputStream getSystemResourceAsStream(String name)
public static Enumeration<URL> getSystemResources(String name) throws IOException
IOException
public ClassLoader getParent()
protected final Class<?> findLoadedClass(String name)
protected final Class<?> findSystemClass(String name) throws ClassNotFoundException
ClassNotFoundException
public Class<?> loadClass(String name) throws ClassNotFoundException
ClassNotFoundException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
ClassNotFoundException
protected Class<?> findClass(String name) throws ClassNotFoundException
ClassNotFoundException
protected final void resolveClass(Class<?> c)
protected final Class<?> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError
ClassFormatError
protected final Class<?> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError
ClassFormatError
protected Package[] getPackages()
public void setDefaultAssertionStatus(boolean enabled)
public void setClassAssertionStatus(String className, boolean enabled)
public void setPackageAssertionStatus(String packageName, boolean enabled)
public void clearAssertionStatus()
protected static boolean registerAsParallelCapable()
protected final Class<?> defineClass(byte[] b, int off, int len) throws ClassFormatError
ClassFormatError
protected final Class<?> defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError
ClassFormatError