| java.lang.Object java.lang.ClassLoader oscript.compiler.CompilerClassLoader
CompilerClassLoader | public class CompilerClassLoader extends ClassLoader (Code) | | A helper to create loaded java classes from a JavaClass
instance.
Classes created with this class-loader are also stored to
.cache so they will be available to future instances
of the interpreter... note: I may change this in the future, I would
like to make sure that the classes are stored in the same file as
cache.db ...
author: Rob Clark (rob@ti.com) author: version: 1.10 |
findResource | public URL findResource(String name)(Code) | | Override findResource to search all registered
class loader delegates.
|
makeClass | public synchronized Class makeClass(String className, JavaClass javaClass)(Code) | | Make a class... perhaps this method should take a ClassGen???
|
makeClassName | public String makeClassName(String suggestedClassName)(Code) | | In order to ensure that new classes are not generated with the same
name as a previously generated class, the process of selecting the
the name for the class to generate is delegated to this class-loader.
This is a wierd thing for a class loader to do, but maybe I can think
of a cleaner way to do this...
Parameters: suggestedClassName - is used to seed the class name generation, sothat the name that is generated sort of "makes sense" |
makeClassName | public synchronized String makeClassName(String suggestedClassName, boolean overwrite)(Code) | | |
registerClassLoader | public static void registerClassLoader(ClassLoader loader)(Code) | | Register a class loader that we can delegate the act of resolving
classes. This allows the user of ObjectScript to give us the
ability to load classes that we might not otherwise have access
to.
Don't call this directly.. it might move. Use
OscriptInterpreter.registerClassLoader(ClassLoader) |
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)
|
|
|