Class OptionSetGroovyCompilerConfiguration
- java.lang.Object
- org.springframework.boot.cli.command.options.OptionSetGroovyCompilerConfiguration
- All Implemented Interfaces:
GroovyCompilerConfiguration
public class OptionSetGroovyCompilerConfiguration extends Object implements GroovyCompilerConfiguration
Simple adapter class to present anOptionSetas aGroovyCompilerConfiguration.
Field Summary
Fields inherited from interface org.springframework.boot.cli.compiler.GroovyCompilerConfiguration
DEFAULT_CLASSPATH
Constructor Summary
Constructors Modifier Constructor Description protectedOptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler)OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
Constructor Detail
OptionSetGroovyCompilerConfiguration
protected OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler)
OptionSetGroovyCompilerConfiguration
public OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)
Method Detail
getOptions
protected joptsimple.OptionSet getOptions()
getScope
public GroovyCompilerScope getScope()
Description copied from interface:GroovyCompilerConfigurationReturns the scope in which the compiler operates.- Specified by:
getScopein interfaceGroovyCompilerConfiguration- Returns:
- the scope of the compiler
isGuessImports
public boolean isGuessImports()
Description copied from interface:GroovyCompilerConfigurationReturns if import declarations should be guessed.- Specified by:
isGuessImportsin interfaceGroovyCompilerConfiguration- Returns:
trueif imports should be guessed, otherwisefalse
isGuessDependencies
public boolean isGuessDependencies()
Description copied from interface:GroovyCompilerConfigurationReturns if jar dependencies should be guessed.- Specified by:
isGuessDependenciesin interfaceGroovyCompilerConfiguration- Returns:
trueif dependencies should be guessed, otherwisefalse
isAutoconfigure
public boolean isAutoconfigure()
Description copied from interface:GroovyCompilerConfigurationReturns true if auto-configuration transformations should be applied.- Specified by:
isAutoconfigurein interfaceGroovyCompilerConfiguration- Returns:
trueif auto-configuration transformations should be applied, otherwisefalse
getClasspath
public String[] getClasspath()
Description copied from interface:GroovyCompilerConfigurationReturns the classpath for local resources.- Specified by:
getClasspathin interfaceGroovyCompilerConfiguration- Returns:
- a path for local resources
getRepositoryConfiguration
public List<RepositoryConfiguration> getRepositoryConfiguration()
Description copied from interface:GroovyCompilerConfigurationReturns the configuration for the repositories that will be used by the compiler to resolve dependencies.- Specified by:
getRepositoryConfigurationin interfaceGroovyCompilerConfiguration- Returns:
- the repository configurations
isQuiet
public boolean isQuiet()
Description copied from interface:GroovyCompilerConfigurationReturns if running in quiet mode.- Specified by:
isQuietin interfaceGroovyCompilerConfiguration- Returns:
trueif running in quiet mode