| Package | Description |
|---|---|
| org.codehaus.janino |
The core of the Janino JavaTM compiler.
|
| org.codehaus.janino.util |
Application-independent helper classes.
|
| org.codehaus.janino.util.resource |
Classes related to loading "resources" (
ResourceFinder) and creating
resources (ResourceCreator). |
| Modifier and Type | Field and Description |
|---|---|
static ResourceFinder |
Compiler.FIND_NEXT_TO_SOURCE_FILE
Special value for
Compiler.classFileFinder. |
| Modifier and Type | Method and Description |
|---|---|
void |
Compiler.setClassFileFinder(ResourceFinder classFileFinder)
If it is impossible to check whether an already-compiled class file exists, or if you want to enforce
recompilation, pass
EMPTY_RESOURCE_FINDER as the classFileFinder. |
void |
JavaSourceIClassLoader.setSourceFinder(ResourceFinder pathResourceFinder) |
| 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 parentIClassLoader) |
JavaSourceClassLoader(ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
String optionalCharacterEncoding)
Constructs a
JavaSourceClassLoader that finds Java source code through a given ResourceFinder. |
JavaSourceIClassLoader(ResourceFinder sourceFinder,
String optionalCharacterEncoding,
IClassLoader optionalParentIClassLoader) |
ResourceFinderIClassLoader(ResourceFinder resourceFinder,
IClassLoader optionalParentIClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
ResourceFinder |
ResourceFinderClassLoader.getResourceFinder() |
| Constructor and Description |
|---|
ResourceFinderClassLoader(ResourceFinder resourceFinder,
ClassLoader parent) |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectoryResourceFinder
A
FileResourceFinder that finds file resources in a directory. |
class |
FileResourceFinder
This class specializes the
ResourceFinder for finding resources in Files. |
class |
JarDirectoriesResourceFinder
Finds resources in any of the "*.jar" files that exist in a given set of directories.
|
class |
LazyMultiResourceFinder
A
ResourceFinder that examines a set of ResourceFinders lazily as it searches for resources. |
class |
MapResourceFinder
A
ResourceFinder that provides access to resource stored as byte arrays in
a Map. |
class |
MultiResourceFinder
A
ResourceFinder that finds its resources through a collection of
other ResourceFinders. |
class |
PathResourceFinder
A
ResourceFinder that finds its resources along a "path" consisting of JAR
file names, ZIP file names, and directory names. |
class |
ZipFileResourceFinder
A
ResourceFinder that finds resources in a ZIP file. |
| Modifier and Type | Field and Description |
|---|---|
static ResourceFinder |
ResourceFinder.EMPTY_RESOURCE_FINDER
This one's useful when a resource finder is required, but cannot be created for some reason.
|
| Constructor and Description |
|---|
LazyMultiResourceFinder(Iterator<ResourceFinder> resourceFinders) |
MultiResourceFinder(Collection<ResourceFinder> resourceFinders) |
PathResourceFinder(Iterator<ResourceFinder> entries) |
Copyright © 2019. All rights reserved.