接口 GroovyCompilerConfiguration
public interface GroovyCompilerConfiguration
Configuration for theGroovyCompiler.
字段概要
字段 修饰符和类型 字段 说明 static String[]DEFAULT_CLASSPATHConstant to be used when there is noclasspath.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String[]getClasspath()Returns the classpath for local resources.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.
字段详细资料
DEFAULT_CLASSPATH
static final String[] DEFAULT_CLASSPATH
Constant to be used when there is noclasspath.
方法详细资料
getScope
GroovyCompilerScope getScope()
Returns the scope in which the compiler operates.- 返回:
- the scope of the compiler
isGuessImports
boolean isGuessImports()
Returns if import declarations should be guessed.- 返回:
trueif imports should be guessed, otherwisefalse
isGuessDependencies
boolean isGuessDependencies()
Returns if jar dependencies should be guessed.- 返回:
trueif dependencies should be guessed, otherwisefalse
isAutoconfigure
boolean isAutoconfigure()
Returns true if auto-configuration transformations should be applied.- 返回:
trueif auto-configuration transformations should be applied, otherwisefalse
getClasspath
String[] getClasspath()
Returns the classpath for local resources.- 返回:
- a path for local resources
getRepositoryConfiguration
List<RepositoryConfiguration> getRepositoryConfiguration()
Returns the configuration for the repositories that will be used by the compiler to resolve dependencies.- 返回:
- the repository configurations
isQuiet
boolean isQuiet()
Returns if running in quiet mode.- 返回:
trueif running in quiet mode