public interface CompilerConfiguration
CompilerSession
.Modifier and Type | Interface and Description |
---|---|
static class |
CompilerConfiguration.DebugLevel
Represents a debug level.
|
static class |
CompilerConfiguration.OptimizeLevel
Represents an optimization level.
|
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.
|
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.
|
ClassLoader getClassLoader()
File getWorkingDirectory()
CompilerConfiguration.OptimizeLevel getOptimizeLevel()
CompilerConfiguration.DebugLevel getDebugLevel()
List<File> getClasspathEntries()
<T> T getExtension(Class<T> type)
T
- the extension typetype
- the extension typenull
if it is not definedCompilerConfiguration withClassLoader(ClassLoader newValue)
newValue
- the class loaderCompilerConfiguration withOption(String key, String value)
key
- the option keyvalue
- the option valueCompilerConfiguration withOptions(Map<String,String> newValue)
newValue
- the option mapCompilerConfiguration withOptimizeLevel(CompilerConfiguration.OptimizeLevel newValue)
newValue
- the optimization levelCompilerConfiguration withDebugLevel(CompilerConfiguration.DebugLevel newValue)
newValue
- the debug levelCompilerConfiguration withWorkingDirectory(File newValue)
newValue
- the working directoryCompilerConfiguration withClasspathEntry(File classpathEntry)
classpathEntry
- the classpath entry<T> CompilerConfiguration withExtension(Class<T> type, T value)
T
- the extension typetype
- the extension typevalue
- the extension objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.