| java.lang.Object java.lang.ClassLoader org.pnuts.lang.PnutsClassLoader
PnutsClassLoader | public class PnutsClassLoader extends ClassLoader (Code) | | A ClassLoader to compile and load classes written in Pnuts
|
PnutsClassLoader | public PnutsClassLoader(Context context)(Code) | | Constructor
Parameters: context - the context in which the scripts are executed |
PnutsClassLoader | public PnutsClassLoader(ClassLoader parent, Context context)(Code) | | Constructor
Parameters: parent - the parent class loader Parameters: context - the context in which the scripts are executed |
compile | protected List compile(String className, SimpleNode node, Object scriptSource) throws IOException(Code) | | Compile a script
Parameters: className - the class name Parameters: node - the syntax tree to be compiled Parameters: scriptSource - the location of the script |
getEncoding | public String getEncoding()(Code) | | Get the character encoding of the parser
|
getPrefix | public String getPrefix()(Code) | | Get the prefix
prefix the file name extension |
getScriptResourceName | protected String getScriptResourceName(String className)(Code) | | Get the resource name for the specified class name
|
getSuffix | public String getSuffix()(Code) | | Get the file name extension
the file name extension (the default=.pnc) |
handleParseException | protected void handleParseException(ParseException e)(Code) | | Specifies how to handle parse exceptions
|
setEncoding | public void setEncoding(String enc)(Code) | | Set the character encoding of the parser
Parameters: enc - the character encoding |
setPrefix | public void setPrefix(String prefix)(Code) | | Set the prefix
Parameters: prefix - the file name extension (the default=/) |
setSuffix | public void setSuffix(String suffix)(Code) | | Set the file name extension
Parameters: suffix - the file name extension (the default=.pnc) |
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)
|
|
|