public class DefaultGroovyCompilerFactory extends Object implements CompilerFactory
DefaultGroovyCompiler
Modifier and Type | Class and Description |
---|---|
static class |
DefaultGroovyCompilerFactory.Builder
Builder for instances of
DefaultGroovyCompilerFactory . |
Modifier and Type | Field and Description |
---|---|
static Set<String> |
DEFAULT_SCRIPT_EXTENSIONS
default script extensions, namely just the single extension "groovy".
|
Modifier | Constructor and Description |
---|---|
|
DefaultGroovyCompilerFactory()
constructor from defaults for all settings.
|
|
DefaultGroovyCompilerFactory(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
constructor from given compiler configuration and defaults for all other settings.
|
protected |
DefaultGroovyCompilerFactory(DefaultGroovyCompilerFactory.Builder builder)
constructor from builder.
|
Modifier and Type | Method and Description |
---|---|
DefaultGroovyCompilerFactory.Builder |
getBuilder()
gets the builder.
|
org.codehaus.groovy.control.CompilerConfiguration |
getCompilerConfiguration()
gets the compiler configuration.
|
Compiler |
newCompiler(ClassLoader parent)
creates a new
Compiler instance with given parent class loader. |
protected DefaultGroovyCompilerFactory(DefaultGroovyCompilerFactory.Builder builder)
builder
- builderpublic DefaultGroovyCompilerFactory()
public DefaultGroovyCompilerFactory(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
compilerConfiguration
- compiler configurationNullPointerException
- if the compiler configuration is nullpublic Compiler newCompiler(ClassLoader parent)
CompilerFactory
Compiler
instance with given parent class loader.newCompiler
in interface CompilerFactory
parent
- parent class loaderpublic DefaultGroovyCompilerFactory.Builder getBuilder()
public org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration()