org.codehaus.groovy.tools.javac
Class JavaStubCompilationUnit
java.lang.Object
org.codehaus.groovy.control.ProcessingUnit
org.codehaus.groovy.control.CompilationUnit
org.codehaus.groovy.tools.javac.JavaStubCompilationUnit
public class JavaStubCompilationUnit
- extends CompilationUnit
Compilation unit to only generate Java stubs for Groovy sources.
- Version:
- $Id: JavaStubCompilationUnit.java 8377 2007-10-06 02:36:32Z user57 $
- Author:
- Jason Dillon
Fields inherited from class org.codehaus.groovy.control.CompilationUnit |
ast, classgenCallback, classSourcesByPublicClassName, configured, debug, generatedClasses, names, optimizer, progressCallback, queuedSources, resolveVisitor, sources, staticImportVisitor, summariesByPublicClassName, summariesBySourceName, verifier |
Method Summary |
void |
addSourceFile(File file)
|
void |
gotoPhase(int phase)
Wraps up any pending operations for the current phase
and switches to the next phase. |
Methods inherited from class org.codehaus.groovy.control.CompilationUnit |
addClassNode, addPhaseOperation, addPhaseOperation, addPhaseOperation, addSource, addSource, addSource, addSource, addSources, addSources, applyToGeneratedGroovyClasses, applyToPrimaryClassNodes, applyToSourceUnits, compile, compile, configure, createClassVisitor, dequeued, getAST, getClasses, getClassNode, getClassSourcesByPublicClassName, getFirstClassNode, getSummariesByPublicClassName, getSummariesBySourceName, getTransformLoader, isPublicClass, iterator, mark, setClassgenCallback, setProgressCallback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaStubCompilationUnit
public JavaStubCompilationUnit(CompilerConfiguration config,
GroovyClassLoader classLoader,
File outputDirectory)
gotoPhase
public void gotoPhase(int phase)
throws CompilationFailedException
- Description copied from class:
ProcessingUnit
- Wraps up any pending operations for the current phase
and switches to the next phase.
- Overrides:
gotoPhase
in class ProcessingUnit
- Throws:
CompilationFailedException
addSourceFile
public void addSourceFile(File file)