org.codehaus.groovy.tools.javac
Class JavaStubCompilationUnit

java.lang.Object
  extended by org.codehaus.groovy.control.ProcessingUnit
      extended by org.codehaus.groovy.control.CompilationUnit
          extended by 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

Nested Class Summary
private  class JavaStubCompilationUnit.JavaResolverOperation
          Operation to resolve Java sources.
private  class JavaStubCompilationUnit.StubGeneratorOperation
          Operation to generate Java stubs from Groovy sources.
 
Nested classes/interfaces inherited from class org.codehaus.groovy.control.CompilationUnit
CompilationUnit.ClassgenCallback, CompilationUnit.GroovyClassOperation, CompilationUnit.PrimaryClassNodeOperation, CompilationUnit.ProgressCallback, CompilationUnit.SourceUnitOperation
 
Field Summary
private  java.util.List javaSources
           
 
Fields inherited from class org.codehaus.groovy.control.CompilationUnit
ast, classgenCallback, classSourcesByPublicClassName, configured, debug, generatedClasses, names, progressCallback, queuedSources, resolveVisitor, sources, staticImportVisitor, summariesByPublicClassName, summariesBySourceName, verifier
 
Fields inherited from class org.codehaus.groovy.control.ProcessingUnit
classLoader, configuration, errorCollector, phase, phaseComplete
 
Constructor Summary
JavaStubCompilationUnit(CompilerConfiguration config, GroovyClassLoader classLoader, java.io.File outputDirectory)
           
 
Method Summary
private  void addJavaSource(java.io.File file)
           
 void addSourceFile(java.io.File file)
           
 void gotoPhase(int phase)
          Wraps up any pending operations for the current phase and switches to the next phase.
private  boolean haveJavaSources()
           
 
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, isPublicClass, iterator, mark, setClassgenCallback, setProgressCallback
 
Methods inherited from class org.codehaus.groovy.control.ProcessingUnit
completePhase, getClassLoader, getConfiguration, getErrorCollector, getPhase, getPhaseDescription, nextPhase, setClassLoader, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaSources

private final java.util.List javaSources
Constructor Detail

JavaStubCompilationUnit

public JavaStubCompilationUnit(CompilerConfiguration config,
                               GroovyClassLoader classLoader,
                               java.io.File outputDirectory)
Method Detail

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(java.io.File file)

addJavaSource

private void addJavaSource(java.io.File file)

haveJavaSources

private boolean haveJavaSources()


Copyright © ${year} The Codehaus. All Rights Reserved.