Package org.codehaus.groovy.tools
Class Compiler
- java.lang.Object
- 
- org.codehaus.groovy.tools.Compiler
 
- 
 public class Compiler extends Object A convenience front end for getting standard compilations done. All compile() routines generate classes to the filesystem.
- 
- 
Constructor SummaryConstructors Constructor Description Compiler()Initializes the Compiler with default configuration.Compiler(CompilerConfiguration configuration)Initializes the Compiler with the specified configuration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompile(File file)Compiles a single File.voidcompile(File[] files)Compiles a series of Files.voidcompile(String[] files)Compiles a series of Files from file names.voidcompile(String name, String code)Compiles a string of code.
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final Compiler DEFAULT 
 
- 
 - 
Constructor Detail- 
Compilerpublic Compiler() Initializes the Compiler with default configuration.
 - 
Compilerpublic Compiler(CompilerConfiguration configuration) Initializes the Compiler with the specified configuration.
 
- 
 - 
Method Detail- 
compilepublic void compile(File file) throws CompilationFailedException Compiles a single File.- Throws:
- CompilationFailedException
 
 - 
compilepublic void compile(File[] files) throws CompilationFailedException Compiles a series of Files.- Throws:
- CompilationFailedException
 
 - 
compilepublic void compile(String[] files) throws CompilationFailedException Compiles a series of Files from file names.- Throws:
- CompilationFailedException
 
 - 
compilepublic void compile(String name, String code) throws CompilationFailedException Compiles a string of code.- Throws:
- CompilationFailedException
 
 
- 
 
-