类 SpringBootCompilerAutoConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.CompilerAutoConfiguration
- org.springframework.boot.cli.compiler.autoconfigure.SpringBootCompilerAutoConfiguration
public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfiguration
for Spring.
构造器概要
构造器 构造器 说明 SpringBootCompilerAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.boot.cli.compiler.CompilerAutoConfiguration
apply, matches
构造器详细资料
SpringBootCompilerAutoConfiguration
public SpringBootCompilerAutoConfiguration()
方法详细资料
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
applyImports
public void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
从类复制的说明:CompilerAutoConfiguration
Apply any import customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returnstrue
.- 覆盖:
applyImports
在类中CompilerAutoConfiguration
- 参数:
imports
- import customizer
applyToMainClass
public 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
Apply any customizations to the main class. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returnstrue
. This method is useful when a groovy file defines more than one class but customization only applies to the first class.- 覆盖:
applyToMainClass
在类中CompilerAutoConfiguration
- 参数:
loader
- the class loader being used during compilationconfiguration
- the compiler configurationgeneratorContext
- the current contextsource
- the source unitclassNode
- the main class- 抛出:
org.codehaus.groovy.control.CompilationFailedException
- if the customizations cannot be applied