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 | Description |
---|---|---|
static ResourceFinder |
Compiler.FIND_NEXT_TO_SOURCE_FILE |
Special value for "classFileResourceFinder".
|
Modifier and Type | Method | Description |
---|---|---|
void |
JavaSourceIClassLoader.setSourceFinder(ResourceFinder pathResourceFinder) |
Constructor | 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. |
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 . |
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 | Description |
---|---|---|
ResourceFinder |
ResourceFinderClassLoader.getResourceFinder() |
Constructor | Description |
---|---|
ResourceFinderClassLoader(ResourceFinder resourceFinder,
ClassLoader parent) |
Modifier and Type | Class | 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 | 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 | Description |
---|---|
LazyMultiResourceFinder(Iterator<ResourceFinder> resourceFinders) |
|
MultiResourceFinder(Collection<ResourceFinder> resourceFinders) |
|
PathResourceFinder(Iterator<ResourceFinder> entries) |
Copyright © 2001–2019. All rights reserved.