类 SpringTestCompilerAutoConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.CompilerAutoConfiguration
- org.springframework.boot.cli.compiler.autoconfigure.SpringTestCompilerAutoConfiguration
public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfiguration
for Spring Test.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 SpringTestCompilerAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.boot.cli.compiler.CompilerAutoConfiguration
applyToMainClass
构造器详细资料
SpringTestCompilerAutoConfiguration
public SpringTestCompilerAutoConfiguration()
方法详细资料
matches
public boolean matches(org.codehaus.groovy.ast.ClassNode classNode)
从类复制的说明:CompilerAutoConfiguration
Strategy method used to determine when compiler auto-configuration should be applied. Defaults to always.- 覆盖:
matches
在类中CompilerAutoConfiguration
- 参数:
classNode
- the class node- 返回:
true
if the compiler should be auto configured using this class. If this method returnsfalse
no other strategy methods will be called.
applyDependencies
public void applyDependencies(DependencyCustomizer dependencies)
从类复制的说明:CompilerAutoConfiguration
Apply any dependency customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returnstrue
.- 覆盖:
applyDependencies
在类中CompilerAutoConfiguration
- 参数:
dependencies
- dependency customizer
apply
public 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 any additional configuration.- 覆盖:
apply
在类中CompilerAutoConfiguration
- 参数:
loader
- the class loader being used during compilationconfiguration
- the compiler configurationgeneratorContext
- the current contextsource
- the source unitclassNode
- the class- 抛出:
org.codehaus.groovy.control.CompilationFailedException
- if the configuration cannot be applied
applyImports
public void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports) throws org.codehaus.groovy.control.CompilationFailedException
从类复制的说明:CompilerAutoConfiguration
Apply any import customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returnstrue
.- 覆盖:
applyImports
在类中CompilerAutoConfiguration
- 参数:
imports
- import customizer- 抛出:
org.codehaus.groovy.control.CompilationFailedException
- if the imports cannot be applied