public class JavaStubCompilationUnit extends CompilationUnit
CompilationUnit.ClassgenCallback, CompilationUnit.GroovyClassOperation, CompilationUnit.PrimaryClassNodeOperation, CompilationUnit.ProgressCallback, CompilationUnit.SourceUnitOperation
ast, astTransformationsContext, classgenCallback, classNodeResolver, classSourcesByPublicClassName, configured, debug, generatedClasses, names, optimizer, progressCallback, queuedSources, resolveVisitor, sources, staticImportVisitor, summariesByPublicClassName, summariesBySourceName, verifier
classLoader, configuration, errorCollector, phase, phaseComplete
Constructor and Description |
---|
JavaStubCompilationUnit(CompilerConfiguration config,
GroovyClassLoader gcl) |
JavaStubCompilationUnit(CompilerConfiguration config,
GroovyClassLoader gcl,
java.io.File destDir) |
Modifier and Type | Method and Description |
---|---|
SourceUnit |
addSource(java.io.File file)
Adds a source file to the unit.
|
SourceUnit |
addSource(java.net.URL url)
Adds a source file to the unit.
|
void |
compile()
Synonym for compile(Phases.ALL).
|
void |
configure(CompilerConfiguration config)
Configures its debugging mode and classloader classpath from a given compiler configuration.
|
int |
getStubCount() |
addClassNode, addNewPhaseOperation, addPhaseOperation, addPhaseOperation, addPhaseOperation, addSource, addSource, addSource, addSources, addSources, applyToGeneratedGroovyClasses, applyToPrimaryClassNodes, applyToSourceUnits, compile, createClassVisitor, dequeued, getAST, getASTTransformationsContext, getClasses, getClassgenCallback, getClassNode, getClassNodeResolver, getClassSourcesByPublicClassName, getFirstClassNode, getProgressCallback, getSummariesByPublicClassName, getSummariesBySourceName, getTransformLoader, isPublicClass, iterator, mark, setClassgenCallback, setClassNodeResolver, setProgressCallback
completePhase, getClassLoader, getConfiguration, getErrorCollector, getPhase, getPhaseDescription, gotoPhase, nextPhase, setClassLoader, setConfiguration
public JavaStubCompilationUnit(CompilerConfiguration config, GroovyClassLoader gcl, java.io.File destDir)
public JavaStubCompilationUnit(CompilerConfiguration config, GroovyClassLoader gcl)
public int getStubCount()
public void compile() throws CompilationFailedException
CompilationUnit
compile
in class CompilationUnit
CompilationFailedException
public void configure(CompilerConfiguration config)
CompilationUnit
URLClassLoader
.configure
in class CompilationUnit
public SourceUnit addSource(java.io.File file)
CompilationUnit
addSource
in class CompilationUnit
public SourceUnit addSource(java.net.URL url)
CompilationUnit
addSource
in class CompilationUnit