public static class DefaultGroovyCompiler.Builder extends Object
DefaultGroovyCompiler
.Constructor and Description |
---|
Builder()
constructor.
|
Modifier and Type | Method and Description |
---|---|
DefaultGroovyCompiler |
build()
builds a new instance of
DefaultGroovyCompiler . |
org.codehaus.groovy.control.CompilerConfiguration |
getCompilerConfiguration()
gets the compiler configuration.
|
ClassLoader |
getParent()
gets the parent class loader.
|
DefaultGroovyCompiler.Builder |
setCompilerConfiguration(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
sets the compiler configuration,
default is a new instance of
CompilerConfiguration with default settings. |
DefaultGroovyCompiler.Builder |
setParent(ClassLoader parent)
sets the parent class loader, default is the context class loader
of the current thread.
|
public DefaultGroovyCompiler.Builder setParent(ClassLoader parent)
parent
- parent class loaderpublic DefaultGroovyCompiler.Builder setCompilerConfiguration(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
CompilerConfiguration
with default settings.compilerConfiguration
- compiler configurationpublic ClassLoader getParent()
public org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration()
public DefaultGroovyCompiler build()
DefaultGroovyCompiler
.