org.codehaus.groovy.tools
Class Compiler

java.lang.Object
  |
  +--org.codehaus.groovy.tools.Compiler

public class Compiler
extends Object


Constructor Summary
Compiler()
           
 
Method Summary
 org.codehaus.groovy.tools.GroovyClass[] compile(org.codehaus.groovy.syntax.lexer.CharStream source)
           
 org.codehaus.groovy.tools.GroovyClass[] compile(org.codehaus.groovy.syntax.lexer.CharStream[] sources)
           
protected  org.codehaus.groovy.tools.GroovyClass[] generateClasses(org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode, String sourceLocator)
           
protected  org.codehaus.groovy.tools.CompilerClassLoader getClassLoader()
           
 void setClasspath(String classpath)
           
 void setDebug(boolean debug)
           
 void setVerbose(boolean verbose)
           
protected  void stageFourCompile(List results, org.codehaus.groovy.ast.CompileUnit unit)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode stageOneCompile(org.codehaus.groovy.syntax.lexer.CharStream charStream)
           
protected  void stageThreeCompile(org.codehaus.groovy.ast.CompileUnit unit, org.codehaus.groovy.syntax.parser.CSTNode compilationUnit, org.codehaus.groovy.syntax.lexer.CharStream charStream)
          Compiles the AST
protected  void stageTwoCompile(org.codehaus.groovy.syntax.parser.CSTNode[] compilationUnits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler

public Compiler()
Method Detail

getClassLoader

protected org.codehaus.groovy.tools.CompilerClassLoader getClassLoader()

setVerbose

public void setVerbose(boolean verbose)

setDebug

public void setDebug(boolean debug)

setClasspath

public void setClasspath(String classpath)
                  throws Exception
Exception

compile

public org.codehaus.groovy.tools.GroovyClass[] compile(org.codehaus.groovy.syntax.lexer.CharStream source)
                                                throws Exception
Exception

compile

public org.codehaus.groovy.tools.GroovyClass[] compile(org.codehaus.groovy.syntax.lexer.CharStream[] sources)
                                                throws Exception
Exception

stageOneCompile

protected org.codehaus.groovy.syntax.parser.CSTNode stageOneCompile(org.codehaus.groovy.syntax.lexer.CharStream charStream)
                                                             throws Exception
Exception

stageTwoCompile

protected void stageTwoCompile(org.codehaus.groovy.syntax.parser.CSTNode[] compilationUnits)
                        throws Exception
Exception

stageThreeCompile

protected void stageThreeCompile(org.codehaus.groovy.ast.CompileUnit unit,
                                 org.codehaus.groovy.syntax.parser.CSTNode compilationUnit,
                                 org.codehaus.groovy.syntax.lexer.CharStream charStream)
                          throws Exception
Compiles the AST

Exception

stageFourCompile

protected void stageFourCompile(List results,
                                org.codehaus.groovy.ast.CompileUnit unit)
                         throws Exception
Exception

generateClasses

protected org.codehaus.groovy.tools.GroovyClass[] generateClasses(org.codehaus.groovy.classgen.GeneratorContext context,
                                                                  org.codehaus.groovy.ast.ClassNode classNode,
                                                                  String sourceLocator)
                                                           throws Exception
Exception


Copyright © 2003 The Codehaus. All Rights Reserved.