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 an 
OptionSet as a
 GroovyCompilerConfiguration.- Since:
 - 1.0.0
 - Author:
 - Andy Wilkinson
 
- 
Field Summary
Fields inherited from interface org.springframework.boot.cli.compiler.GroovyCompilerConfiguration
DEFAULT_CLASSPATH - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler) OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)  - 
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the classpath for local resources.protected joptsimple.OptionSetReturns the configuration for the repositories that will be used by the compiler to resolve dependencies.getScope()Returns the scope in which the compiler operates.booleanReturns true if auto-configuration transformations should be applied.booleanReturns if jar dependencies should be guessed.booleanReturns if import declarations should be guessed.booleanisQuiet()Returns if running in quiet mode. 
- 
Constructor Details
- 
OptionSetGroovyCompilerConfiguration
protected OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler)  - 
OptionSetGroovyCompilerConfiguration
public OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)  
 - 
 - 
Method Details
- 
getOptions
protected joptsimple.OptionSet getOptions() - 
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
Description copied from interface:GroovyCompilerConfigurationReturns the classpath for local resources.- Specified by:
 getClasspathin interfaceGroovyCompilerConfiguration- Returns:
 - a path for local resources
 
 - 
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
 
 -