public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfiguration
for Spring Test.Constructor and Description |
---|
SpringTestCompilerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
apply(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 additional configuration.
|
void |
applyDependencies(DependencyCustomizer dependencies)
Apply any dependency customizations.
|
void |
applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
Apply any import customizations.
|
boolean |
matches(org.codehaus.groovy.ast.ClassNode classNode)
Strategy method used to determine when compiler auto-configuration should be
applied.
|
applyToMainClass
public boolean matches(org.codehaus.groovy.ast.ClassNode classNode)
CompilerAutoConfiguration
matches
in class CompilerAutoConfiguration
classNode
- the class nodetrue
if the compiler should be auto configured using this class. If
this method returns false
no other strategy methods will be called.public void applyDependencies(DependencyCustomizer dependencies)
CompilerAutoConfiguration
CompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returns true
.applyDependencies
in class CompilerAutoConfiguration
dependencies
- dependency customizerpublic void apply(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
apply
in class CompilerAutoConfiguration
loader
- the class loader being used during compilationconfiguration
- the compiler configurationgeneratorContext
- the current contextsource
- the source unitclassNode
- the classorg.codehaus.groovy.control.CompilationFailedException
- if the configuration cannot be appliedpublic void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports) throws org.codehaus.groovy.control.CompilationFailedException
CompilerAutoConfiguration
CompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returns true
.applyImports
in class CompilerAutoConfiguration
imports
- import customizerorg.codehaus.groovy.control.CompilationFailedException
- if the imports cannot be appliedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.