public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfiguration
for Spring.Constructor and Description |
---|
SpringBootCompilerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
applyDependencies(DependencyCustomizer dependencies)
Apply any dependency customizations.
|
void |
applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
Apply any import customizations.
|
void |
applyToMainClass(groovy.lang.GroovyClassLoader loader,
GroovyCompilerConfiguration configuration,
org.codehaus.groovy.classgen.GeneratorContext generatorContext,
org.codehaus.groovy.control.SourceUnit source,
org.codehaus.groovy.ast.ClassNode classNode)
Apply any customizations to the main class.
|
apply, matches
public void applyDependencies(DependencyCustomizer dependencies)
CompilerAutoConfiguration
CompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returns true
.applyDependencies
in class CompilerAutoConfiguration
dependencies
- dependency customizerpublic void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
CompilerAutoConfiguration
CompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returns true
.applyImports
in class CompilerAutoConfiguration
imports
- import customizerpublic void applyToMainClass(groovy.lang.GroovyClassLoader loader, GroovyCompilerConfiguration configuration, org.codehaus.groovy.classgen.GeneratorContext generatorContext, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode) throws org.codehaus.groovy.control.CompilationFailedException
CompilerAutoConfiguration
CompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returns true
. This method is useful when a groovy file
defines more than one class but customization only applies to the first class.applyToMainClass
in class CompilerAutoConfiguration
loader
- the class loader being used during compilationconfiguration
- the compiler configurationgeneratorContext
- the current contextsource
- the source unitclassNode
- the main classorg.codehaus.groovy.control.CompilationFailedException
- if the customizations cannot be appliedCopyright © 2020 Pivotal Software, Inc.. All rights reserved.