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