Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose 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 |
---|---|
private ResourceFinder |
CachingJavaSourceClassLoader.classFileCacheResourceFinder |
private ResourceFinder |
Compiler.classFileFinder |
static ResourceFinder |
Compiler.FIND_NEXT_TO_SOURCE_FILE
Special value for "classFileResourceFinder".
|
private ResourceFinder |
ResourceFinderIClassLoader.resourceFinder |
private ResourceFinder |
JavaSourceIClassLoader.sourceFinder |
private ResourceFinder |
Compiler.CompilerIClassLoader.sourceFinder |
private ResourceFinder |
CachingJavaSourceClassLoader.sourceFinder |
Modifier and Type | Method and Description |
---|---|
void |
JavaSourceIClassLoader.setSourceFinder(ResourceFinder pathResourceFinder) |
Constructor and Description |
---|
CachingJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
java.lang.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. |
Compiler(ResourceFinder sourceFinder,
IClassLoader iClassLoader,
ResourceFinder classFileFinder,
ResourceCreator classFileCreator,
java.lang.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 . |
CompilerIClassLoader(ResourceFinder sourceFinder,
IClassLoader optionalParentIClassLoader) |
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
java.lang.String optionalCharacterEncoding)
Constructs a
JavaSourceClassLoader that finds Java™ source code through a given ResourceFinder . |
JavaSourceIClassLoader(ResourceFinder sourceFinder,
java.lang.String optionalCharacterEncoding,
IClassLoader optionalParentIClassLoader) |
ResourceFinderIClassLoader(ResourceFinder resourceFinder,
IClassLoader optionalParentIClassLoader) |
Modifier and Type | Field and Description |
---|---|
private ResourceFinder |
ResourceFinderClassLoader.resourceFinder |
Modifier and Type | Method and Description |
---|---|
ResourceFinder |
ResourceFinderClassLoader.getResourceFinder() |
Constructor and Description |
---|
ResourceFinderClassLoader(ResourceFinder resourceFinder,
java.lang.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 File s. |
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 ResourceFinder s 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 ResourceFinder s. |
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.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ResourceFinder> |
MultiResourceFinder.resourceFinders |
Modifier and Type | Method and Description |
---|---|
private static ResourceFinder |
PathResourceFinder.createResourceFinder(java.io.File entry)
A factory method that creates a Java classpath-style ResourceFinder as
follows:
entry Returned ResourceFinder
"*.jar" fileZipFileResourceFinder
"*.zip" fileZipFileResourceFinder
directoryDirectoryResourceFinder
any otherA ResourceFinder that never finds a resource
|
Modifier and Type | Method and Description |
---|---|
private static java.util.Iterator<ResourceFinder> |
PathResourceFinder.createIterator(java.util.Iterator<java.io.File> entries) |
Constructor and Description |
---|
LazyMultiResourceFinder(java.util.Iterator<ResourceFinder> resourceFinders) |
MultiResourceFinder(java.util.Collection<ResourceFinder> resourceFinders) |
PathResourceFinder(java.util.Iterator<ResourceFinder> entries) |