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 anOptionSet
as aGroovyCompilerConfiguration
.
Field Summary
Fields inherited from interface org.springframework.boot.cli.compiler.GroovyCompilerConfiguration
DEFAULT_CLASSPATH
Constructor Summary
Constructors Modifier Constructor Description protected
OptionSetGroovyCompilerConfiguration(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.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.
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:GroovyCompilerConfiguration
Returns the scope in which the compiler operates.- Specified by:
getScope
in interfaceGroovyCompilerConfiguration
- Returns:
- the scope of the compiler
isGuessImports
public boolean isGuessImports()
Description copied from interface:GroovyCompilerConfiguration
Returns if import declarations should be guessed.- Specified by:
isGuessImports
in interfaceGroovyCompilerConfiguration
- Returns:
true
if imports should be guessed, otherwisefalse
isGuessDependencies
public boolean isGuessDependencies()
Description copied from interface:GroovyCompilerConfiguration
Returns if jar dependencies should be guessed.- Specified by:
isGuessDependencies
in interfaceGroovyCompilerConfiguration
- Returns:
true
if dependencies should be guessed, otherwisefalse
isAutoconfigure
public boolean isAutoconfigure()
Description copied from interface:GroovyCompilerConfiguration
Returns true if auto-configuration transformations should be applied.- Specified by:
isAutoconfigure
in interfaceGroovyCompilerConfiguration
- Returns:
true
if auto-configuration transformations should be applied, otherwisefalse
getClasspath
public String[] getClasspath()
Description copied from interface:GroovyCompilerConfiguration
Returns the classpath for local resources.- Specified by:
getClasspath
in interfaceGroovyCompilerConfiguration
- Returns:
- a path for local resources
getRepositoryConfiguration
public List<RepositoryConfiguration> getRepositoryConfiguration()
Description copied from interface:GroovyCompilerConfiguration
Returns the configuration for the repositories that will be used by the compiler to resolve dependencies.- Specified by:
getRepositoryConfiguration
in interfaceGroovyCompilerConfiguration
- Returns:
- the repository configurations
isQuiet
public boolean isQuiet()
Description copied from interface:GroovyCompilerConfiguration
Returns if running in quiet mode.- Specified by:
isQuiet
in interfaceGroovyCompilerConfiguration
- Returns:
true
if running in quiet mode