Package org.codehaus.groovy.tools
Class Compiler
- java.lang.Object
 - 
- org.codehaus.groovy.tools.Compiler
 
 
- 
public class Compiler extends java.lang.ObjectA convenience front end for getting standard compilations done. All compile() routines generate classes to the filesystem. 
- 
- 
Constructor Summary
Constructors Constructor Description Compiler()Initializes the Compiler with default configuration.Compiler(CompilerConfiguration configuration)Initializes the Compiler with the specified configuration. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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. 
 - 
 
- 
- 
Field Detail
- 
DEFAULT
public static final Compiler DEFAULT
 
 - 
 
- 
Constructor Detail
- 
Compiler
public Compiler()
Initializes the Compiler with default configuration. 
- 
Compiler
public Compiler(CompilerConfiguration configuration)
Initializes the Compiler with the specified configuration. 
 - 
 
- 
Method Detail
- 
compile
public void compile(java.io.File file) throws CompilationFailedExceptionCompiles a single File.- Throws:
 CompilationFailedException
 
- 
compile
public void compile(java.io.File[] files) throws CompilationFailedExceptionCompiles a series of Files.- Throws:
 CompilationFailedException
 
- 
compile
public void compile(java.lang.String[] files) throws CompilationFailedExceptionCompiles a series of Files from file names.- Throws:
 CompilationFailedException
 
- 
compile
public void compile(java.lang.String name, java.lang.String code) throws CompilationFailedExceptionCompiles a string of code.- Throws:
 CompilationFailedException
 
 - 
 
 -