Groovy 2.2.1

org.codehaus.groovy.tools.javac
[Java] Class JavaAwareCompilationUnit

java.lang.Object
  org.codehaus.groovy.control.ProcessingUnit
      org.codehaus.groovy.control.CompilationUnit
          org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit

public class JavaAwareCompilationUnit
extends CompilationUnit

Compilation Unit capable of compiling Java source files.

Authors:
Alex.Tkachman


Constructor Summary
JavaAwareCompilationUnit(CompilerConfiguration configuration)

JavaAwareCompilationUnit(CompilerConfiguration configuration, GroovyClassLoader groovyClassLoader)

JavaAwareCompilationUnit(CompilerConfiguration configuration, GroovyClassLoader groovyClassLoader, GroovyClassLoader transformClassLoader)

 
Method Summary
void addSources(String[] paths)

void addSources(File[] files)

void configure(CompilerConfiguration configuration)

JavaCompilerFactory getCompilerFactory()

void gotoPhase(int phase)

void setCompilerFactory(JavaCompilerFactory compilerFactory)

 
Methods inherited from class CompilationUnit
getClassNode, setClassgenCallback, addSource, addSource, addSource, addSource, addSource, addClassNode, getAST, addPhaseOperation, addPhaseOperation, addPhaseOperation, isPublicClass, getFirstClassNode, addNewPhaseOperation, applyToPrimaryClassNodes, getSummariesBySourceName, applyToSourceUnits, setProgressCallback, applyToGeneratedGroovyClasses, getTransformLoader, getClassSourcesByPublicClassName, addSources, addSources, getSummariesByPublicClassName, getASTTransformationsContext, getClassgenCallback, getProgressCallback, getClassNodeResolver, setClassNodeResolver, compile, compile, getClasses, iterator, configure, getConfiguration, getErrorCollector, setConfiguration, getPhase, gotoPhase, completePhase, getPhaseDescription, nextPhase, getClassLoader, setClassLoader, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class ProcessingUnit
getConfiguration, getErrorCollector, setConfiguration, getPhase, gotoPhase, completePhase, getPhaseDescription, nextPhase, getClassLoader, configure, setClassLoader, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

JavaAwareCompilationUnit

public JavaAwareCompilationUnit(CompilerConfiguration configuration)


JavaAwareCompilationUnit

public JavaAwareCompilationUnit(CompilerConfiguration configuration, GroovyClassLoader groovyClassLoader)


JavaAwareCompilationUnit

public JavaAwareCompilationUnit(CompilerConfiguration configuration, GroovyClassLoader groovyClassLoader, GroovyClassLoader transformClassLoader)


 
Method Detail

addSources

public void addSources(String[] paths)


addSources

public void addSources(File[] files)


configure

public void configure(CompilerConfiguration configuration)


getCompilerFactory

public JavaCompilerFactory getCompilerFactory()


gotoPhase

public void gotoPhase(int phase)


setCompilerFactory

public void setCompilerFactory(JavaCompilerFactory compilerFactory)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.