类 OptionSetGroovyCompilerConfiguration
- java.lang.Object
- org.springframework.boot.cli.command.options.OptionSetGroovyCompilerConfiguration
- 所有已实现的接口:
GroovyCompilerConfiguration
public class OptionSetGroovyCompilerConfiguration extends Object implements GroovyCompilerConfiguration
Simple adapter class to present anOptionSetas aGroovyCompilerConfiguration.
字段概要
从接口继承的字段 org.springframework.boot.cli.compiler.GroovyCompilerConfiguration
DEFAULT_CLASSPATH
构造器概要
构造器 限定符 构造器 说明 protectedOptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler)OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String[]getClasspath()Returns the classpath for local resources.protected joptsimple.OptionSetgetOptions()List<RepositoryConfiguration>getRepositoryConfiguration()Returns the configuration for the repositories that will be used by the compiler to resolve dependencies.GroovyCompilerScopegetScope()Returns the scope in which the compiler operates.booleanisAutoconfigure()Returns true if auto-configuration transformations should be applied.booleanisGuessDependencies()Returns if jar dependencies should be guessed.booleanisGuessImports()Returns if import declarations should be guessed.booleanisQuiet()Returns if running in quiet mode.
构造器详细资料
OptionSetGroovyCompilerConfiguration
protected OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler)
OptionSetGroovyCompilerConfiguration
public OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)
方法详细资料
getOptions
protected joptsimple.OptionSet getOptions()
getScope
public GroovyCompilerScope getScope()
从接口复制的说明:GroovyCompilerConfigurationReturns the scope in which the compiler operates.- 指定者:
getScope在接口中GroovyCompilerConfiguration- 返回:
- the scope of the compiler
isGuessImports
public boolean isGuessImports()
从接口复制的说明:GroovyCompilerConfigurationReturns if import declarations should be guessed.- 指定者:
isGuessImports在接口中GroovyCompilerConfiguration- 返回:
trueif imports should be guessed, otherwisefalse
isGuessDependencies
public boolean isGuessDependencies()
从接口复制的说明:GroovyCompilerConfigurationReturns if jar dependencies should be guessed.- 指定者:
isGuessDependencies在接口中GroovyCompilerConfiguration- 返回:
trueif dependencies should be guessed, otherwisefalse
isAutoconfigure
public boolean isAutoconfigure()
从接口复制的说明:GroovyCompilerConfigurationReturns true if auto-configuration transformations should be applied.- 指定者:
isAutoconfigure在接口中GroovyCompilerConfiguration- 返回:
trueif auto-configuration transformations should be applied, otherwisefalse
getClasspath
public String[] getClasspath()
从接口复制的说明:GroovyCompilerConfigurationReturns the classpath for local resources.- 指定者:
getClasspath在接口中GroovyCompilerConfiguration- 返回:
- a path for local resources
getRepositoryConfiguration
public List<RepositoryConfiguration> getRepositoryConfiguration()
从接口复制的说明:GroovyCompilerConfigurationReturns the configuration for the repositories that will be used by the compiler to resolve dependencies.- 指定者:
getRepositoryConfiguration在接口中GroovyCompilerConfiguration- 返回:
- the repository configurations
isQuiet
public boolean isQuiet()
从接口复制的说明:GroovyCompilerConfigurationReturns if running in quiet mode.- 指定者:
isQuiet在接口中GroovyCompilerConfiguration- 返回:
trueif running in quiet mode