Package ch.grengine.code.groovy
Class DefaultGroovyCompilerFactory
java.lang.Object
ch.grengine.code.groovy.DefaultGroovyCompilerFactory
- All Implemented Interfaces:
CompilerFactory
Factory for instances of
DefaultGroovyCompiler- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for instances ofDefaultGroovyCompilerFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptiondefault script extensions, namely just the single extension "groovy". -
Constructor Summary
ConstructorsModifierConstructorDescriptionconstructor from defaults for all settings.protectedconstructor from builder.DefaultGroovyCompilerFactory(CompilerConfiguration compilerConfiguration) constructor from given compiler configuration and defaults for all other settings. -
Method Summary
Modifier and TypeMethodDescriptiongets the builder.gets the compiler configuration.newCompiler(ClassLoader parent) creates a newCompilerinstance with given parent class loader.
-
Field Details
-
DEFAULT_SCRIPT_EXTENSIONS
default script extensions, namely just the single extension "groovy".- Since:
- 1.0
-
-
Constructor Details
-
DefaultGroovyCompilerFactory
constructor from builder.- Parameters:
builder- builder- Since:
- 1.0
-
DefaultGroovyCompilerFactory
public DefaultGroovyCompilerFactory()constructor from defaults for all settings.- Since:
- 1.0
-
DefaultGroovyCompilerFactory
constructor from given compiler configuration and defaults for all other settings.- Parameters:
compilerConfiguration- compiler configuration- Throws:
NullPointerException- if the compiler configuration is null- Since:
- 1.0
-
-
Method Details
-
newCompiler
Description copied from interface:CompilerFactorycreates a newCompilerinstance with given parent class loader.- Specified by:
newCompilerin interfaceCompilerFactory- Parameters:
parent- parent class loader- Returns:
- new compiler instance
-
getBuilder
gets the builder.- Returns:
- builder
- Since:
- 1.0
-
getCompilerConfiguration
gets the compiler configuration.- Returns:
- compiler configuration
- Since:
- 1.0
-