public class BasicCompilerConfiguration extends Object implements CompilerConfiguration
CompilerConfiguration.CompilerConfiguration.DebugLevel, CompilerConfiguration.OptimizeLevel| Constructor and Description |
|---|
BasicCompilerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the class loader.
|
List<File> |
getClasspathEntries()
Returns the additional classpath entries.
|
CompilerConfiguration.DebugLevel |
getDebugLevel()
Returns the debug level.
|
<T> T |
getExtension(Class<T> type)
Returns an extension.
|
Map<Class<?>,Object> |
getExtensions()
Returns the extensions.
|
CompilerConfiguration.OptimizeLevel |
getOptimizeLevel()
Returns the optimize level.
|
Map<String,String> |
getOptions()
Returns the options.
|
File |
getWorkingDirectory()
Returns the working directory.
|
CompilerConfiguration |
withClassLoader(ClassLoader newValue)
Sets the base class loader.
|
CompilerConfiguration |
withClasspathEntry(File classpathEntry)
Adds an additional classpath entry.
|
CompilerConfiguration |
withDebugLevel(CompilerConfiguration.DebugLevel newValue)
Sets the debug level.
|
<T> CompilerConfiguration |
withExtension(Class<T> type,
T value)
Adds a compiler extension.
|
CompilerConfiguration |
withOptimizeLevel(CompilerConfiguration.OptimizeLevel newValue)
Sets the optimization level.
|
CompilerConfiguration |
withOption(String key,
String value)
Sets a compiler specific option.
|
CompilerConfiguration |
withOptions(Map<String,String> newValue)
Sets compiler specific options.
|
CompilerConfiguration |
withWorkingDirectory(File newValue)
Sets the compiler working directory.
|
public ClassLoader getClassLoader()
CompilerConfigurationgetClassLoader in interface CompilerConfigurationpublic CompilerConfiguration withClassLoader(ClassLoader newValue)
CompilerConfigurationwithClassLoader in interface CompilerConfigurationnewValue - the class loaderpublic File getWorkingDirectory()
CompilerConfigurationgetWorkingDirectory in interface CompilerConfigurationpublic CompilerConfiguration withWorkingDirectory(File newValue)
CompilerConfigurationwithWorkingDirectory in interface CompilerConfigurationnewValue - the working directorypublic Map<String,String> getOptions()
CompilerConfigurationgetOptions in interface CompilerConfigurationpublic CompilerConfiguration withOption(String key, String value)
CompilerConfigurationwithOption in interface CompilerConfigurationkey - the option keyvalue - the option valuepublic CompilerConfiguration withOptions(Map<String,String> newValue)
CompilerConfigurationwithOptions in interface CompilerConfigurationnewValue - the option mappublic CompilerConfiguration.OptimizeLevel getOptimizeLevel()
CompilerConfigurationgetOptimizeLevel in interface CompilerConfigurationpublic CompilerConfiguration withOptimizeLevel(CompilerConfiguration.OptimizeLevel newValue)
CompilerConfigurationwithOptimizeLevel in interface CompilerConfigurationnewValue - the optimization levelpublic CompilerConfiguration.DebugLevel getDebugLevel()
CompilerConfigurationgetDebugLevel in interface CompilerConfigurationpublic CompilerConfiguration withDebugLevel(CompilerConfiguration.DebugLevel newValue)
CompilerConfigurationwithDebugLevel in interface CompilerConfigurationnewValue - the debug levelpublic List<File> getClasspathEntries()
CompilerConfigurationgetClasspathEntries in interface CompilerConfigurationpublic CompilerConfiguration withClasspathEntry(File classpathEntry)
CompilerConfigurationwithClasspathEntry in interface CompilerConfigurationclasspathEntry - the classpath entrypublic Map<Class<?>,Object> getExtensions()
public <T> T getExtension(Class<T> type)
CompilerConfigurationgetExtension in interface CompilerConfigurationT - the extension typetype - the extension typenull if it is not definedpublic <T> CompilerConfiguration withExtension(Class<T> type, T value)
CompilerConfigurationwithExtension in interface CompilerConfigurationT - the extension typetype - the extension typevalue - the extension objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.