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 |
---|---|
static ResourceFinder |
Compiler.FIND_NEXT_TO_SOURCE_FILE
Special value for "classFileResourceFinder".
|
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 . |
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
java.lang.String optionalCharacterEncoding)
Set up a
JavaSourceClassLoader that finds Java™ source code through
a given ResourceFinder . |
JavaSourceIClassLoader(ResourceFinder sourceFinder,
java.lang.String optionalCharacterEncoding,
java.util.Set unitCompilers,
IClassLoader optionalParentIClassLoader)
Notice that the
unitCompilers set is both read and written
by the JavaSourceIClassLoader : As it searches for IClass es, it looks
into unitCompilers for class declarations, and as it opens,
scans and parses compilation units on-the-fly, it adds them to
unitCompilers . |
ResourceFinderIClassLoader(ResourceFinder resourceFinder,
IClassLoader optionalParentIClassLoader) |
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.
|
Copyright © 2001-2012. All Rights Reserved.