| java.lang.Object java.lang.ClassLoader gnu.bytecode.ArrayClassLoader
ArrayClassLoader | public class ArrayClassLoader extends ClassLoader (Code) | | Load classes from a set of byte arrays.
author: Per Bothner |
Field Summary | |
byte[][] | classBytes The raw byte arrays from which we will load the classes.
Each element is suitable for defineClass. | String[] | classNames | Class[] | loadedClasses Classes that we have already loaded. | int | size Number of classes managed by this loader. |
Constructor Summary | |
public | ArrayClassLoader(byte[][] classBytes) Load classes from the given byte arrays.
By convention, the classes we manage are named "lambda"+. | public | ArrayClassLoader(String[] classNames, byte[][] classBytes) |
classBytes | byte[][] classBytes(Code) | | The raw byte arrays from which we will load the classes.
Each element is suitable for defineClass.
|
loadedClasses | Class[] loadedClasses(Code) | | Classes that we have already loaded.
|
size | int size(Code) | | Number of classes managed by this loader.
|
ArrayClassLoader | public ArrayClassLoader(byte[][] classBytes)(Code) | | Load classes from the given byte arrays.
By convention, the classes we manage are named "lambda"+.
|
ArrayClassLoader | public ArrayClassLoader(String[] classNames, byte[][] classBytes)(Code) | | |
addClass | public void addClass(String name, byte[] bytes)(Code) | | |
Methods inherited from java.lang.ClassLoader | public synchronized void clearAssertionStatus()(Code)(Java Doc) final protected Class> defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc) protected Class> findClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected String findLibrary(String libname)(Code)(Java Doc) final protected Class> findLoadedClass(String name)(Code)(Java Doc) protected URL findResource(String name)(Code)(Java Doc) protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc) final protected Class> findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected Package getPackage(String name)(Code)(Java Doc) protected Package[] getPackages()(Code)(Java Doc) final public ClassLoader getParent()(Code)(Java Doc) public URL getResource(String name)(Code)(Java Doc) public InputStream getResourceAsStream(String name)(Code)(Java Doc) public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc) public static ClassLoader getSystemClassLoader()(Code)(Java Doc) public static URL getSystemResource(String name)(Code)(Java Doc) public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc) public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc) public Class> loadClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc) final protected void resolveClass(Class> c)(Code)(Java Doc) public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc) public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc) public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc) final protected void setSigners(Class> c, Object[] signers)(Code)(Java Doc)
|
|
|