|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--groovy.lang.GroovyClassLoader
A ClassLoader which can load Groovy classes
Constructor Summary | |
GroovyClassLoader()
|
|
GroovyClassLoader(ClassLoader loader)
|
Method Summary | |
protected org.codehaus.groovy.classgen.CompilerFacade |
createCompiler(org.codehaus.groovy.ast.CompileUnit unit)
|
Class |
defineClass(org.codehaus.groovy.ast.ClassNode classNode,
String file)
Loads the given class node returning the implementation Class |
protected void |
onClassNode(org.objectweb.asm.ClassWriter classWriter,
org.codehaus.groovy.ast.ClassNode classNode)
|
Class |
parseClass(InputStream in,
String file)
Parses the given character stream into a Java class capable of being run |
Class |
parseClass(String file)
Parses the given file name into a Java class capable of being run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroovyClassLoader()
public GroovyClassLoader(ClassLoader loader)
Method Detail |
public Class defineClass(org.codehaus.groovy.ast.ClassNode classNode, String file)
classNode
-
public Class parseClass(String file) throws SyntaxException, IOException
SyntaxException
IOException
public Class parseClass(InputStream in, String file) throws SyntaxException, IOException
SyntaxException
IOException
protected void onClassNode(org.objectweb.asm.ClassWriter classWriter, org.codehaus.groovy.ast.ClassNode classNode)
protected org.codehaus.groovy.classgen.CompilerFacade createCompiler(org.codehaus.groovy.ast.CompileUnit unit)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |