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()
CompilerConfiguration
getClassLoader
in interface CompilerConfiguration
public CompilerConfiguration withClassLoader(ClassLoader newValue)
CompilerConfiguration
withClassLoader
in interface CompilerConfiguration
newValue
- the class loaderpublic File getWorkingDirectory()
CompilerConfiguration
getWorkingDirectory
in interface CompilerConfiguration
public CompilerConfiguration withWorkingDirectory(File newValue)
CompilerConfiguration
withWorkingDirectory
in interface CompilerConfiguration
newValue
- the working directorypublic Map<String,String> getOptions()
CompilerConfiguration
getOptions
in interface CompilerConfiguration
public CompilerConfiguration withOption(String key, String value)
CompilerConfiguration
withOption
in interface CompilerConfiguration
key
- the option keyvalue
- the option valuepublic CompilerConfiguration withOptions(Map<String,String> newValue)
CompilerConfiguration
withOptions
in interface CompilerConfiguration
newValue
- the option mappublic CompilerConfiguration.OptimizeLevel getOptimizeLevel()
CompilerConfiguration
getOptimizeLevel
in interface CompilerConfiguration
public CompilerConfiguration withOptimizeLevel(CompilerConfiguration.OptimizeLevel newValue)
CompilerConfiguration
withOptimizeLevel
in interface CompilerConfiguration
newValue
- the optimization levelpublic CompilerConfiguration.DebugLevel getDebugLevel()
CompilerConfiguration
getDebugLevel
in interface CompilerConfiguration
public CompilerConfiguration withDebugLevel(CompilerConfiguration.DebugLevel newValue)
CompilerConfiguration
withDebugLevel
in interface CompilerConfiguration
newValue
- the debug levelpublic List<File> getClasspathEntries()
CompilerConfiguration
getClasspathEntries
in interface CompilerConfiguration
public CompilerConfiguration withClasspathEntry(File classpathEntry)
CompilerConfiguration
withClasspathEntry
in interface CompilerConfiguration
classpathEntry
- the classpath entrypublic Map<Class<?>,Object> getExtensions()
public <T> T getExtension(Class<T> type)
CompilerConfiguration
getExtension
in interface CompilerConfiguration
T
- the extension typetype
- the extension typenull
if it is not definedpublic <T> CompilerConfiguration withExtension(Class<T> type, T value)
CompilerConfiguration
withExtension
in interface CompilerConfiguration
T
- the extension typetype
- the extension typevalue
- the extension objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.