| Package | Description |
|---|---|
| org.codehaus.janino |
The core of the Janino JavaTM compiler.
|
| org.codehaus.janino.util.resource |
Classes related to loading "resources" (
ResourceFinder) and creating
resources (ResourceCreator). |
| Modifier and Type | Field and Description |
|---|---|
static ResourceCreator |
Compiler.CREATE_NEXT_TO_SOURCE_FILE
Special value for "classFileResourceCreator".
|
| Constructor and Description |
|---|
CachingJavaSourceClassLoader(ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
String optionalCharacterEncoding,
ResourceFinder classFileCacheResourceFinder,
ResourceCreator classFileCacheResourceCreator)
Notice that this class is thread-safe if and only if the classFileCacheResourceCreator stores its
data atomically, i.e. the classFileCacheResourceFinder sees the resource written by the
classFileCacheResourceCreator only after the OutputStream is closed. |
Compiler(ResourceFinder sourceFinder,
IClassLoader iClassLoader,
ResourceFinder classFileFinder,
ResourceCreator classFileCreator,
String optionalCharacterEncoding,
boolean verbose,
boolean debugSource,
boolean debugLines,
boolean debugVars,
WarningHandler optionalWarningHandler)
To mimic the behavior of JAVAC with a missing "-d" command line option, pass
Compiler.FIND_NEXT_TO_SOURCE_FILE
as the classFileResourceFinder and Compiler.CREATE_NEXT_TO_SOURCE_FILE as the
classFileResourceCreator. |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectoryResourceCreator
Creates a resource in a given directory:
destinationDirectory/resourceName
|
class |
FileResourceCreator
Stores a stream of bytes in a named resource.
|
class |
MapResourceCreator
Creates resources as byte arrays in a delegate
Map. |
Copyright © 2017. All rights reserved.