Package org.codehaus.groovy.tools
Class Compiler
java.lang.Object
org.codehaus.groovy.tools.Compiler
public class Compiler
extends java.lang.Object
A convenience front end for getting standard compilations done.
 All compile() routines generate classes to the filesystem.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description Compiler()Initializes the Compiler with default configuration.Compiler(CompilerConfiguration configuration)Initializes the Compiler with the specified configuration.
- 
Method SummaryModifier and Type Method Description voidcompile(java.io.File file)Compiles a single File.voidcompile(java.io.File[] files)Compiles a series of Files.voidcompile(java.lang.String[] files)Compiles a series of Files from file names.voidcompile(java.lang.String name, java.lang.String code)Compiles a string of code.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
DEFAULT
 
- 
- 
Constructor Details- 
Compilerpublic Compiler()Initializes the Compiler with default configuration.
- 
CompilerInitializes the Compiler with the specified configuration.
 
- 
- 
Method Details- 
compileCompiles a single File.- Throws:
- CompilationFailedException
 
- 
compileCompiles a series of Files.- Throws:
- CompilationFailedException
 
- 
compileCompiles a series of Files from file names.- Throws:
- CompilationFailedException
 
- 
compilepublic void compile(java.lang.String name, java.lang.String code) throws CompilationFailedExceptionCompiles a string of code.- Throws:
- CompilationFailedException
 
 
-