Uses of Class
org.codehaus.janino.util.resource.ResourceFinder
-
Packages that use ResourceFinder 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
). -
-
Uses of ResourceFinder in org.codehaus.janino
Fields in org.codehaus.janino declared as ResourceFinder Modifier and Type Field 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
CachingJavaSourceClassLoader. sourceFinder
private ResourceFinder
Compiler.CompilerIClassLoader. sourceFinder
private ResourceFinder
JavaSourceIClassLoader. sourceFinder
Methods in org.codehaus.janino with parameters of type ResourceFinder Modifier and Type Method Description void
JavaSourceIClassLoader. setSourceFinder(ResourceFinder pathResourceFinder)
Constructors in org.codehaus.janino with parameters of type ResourceFinder Constructor 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 theclassFileCacheResourceCreator
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, passCompiler.FIND_NEXT_TO_SOURCE_FILE
as theclassFileResourceFinder
andCompiler.CREATE_NEXT_TO_SOURCE_FILE
as theclassFileResourceCreator
.CompilerIClassLoader(ResourceFinder sourceFinder, IClassLoader optionalParentIClassLoader)
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, ResourceFinder sourceFinder, java.lang.String optionalCharacterEncoding)
Constructs aJavaSourceClassLoader
that finds Java™ source code through a givenResourceFinder
.JavaSourceIClassLoader(ResourceFinder sourceFinder, java.lang.String optionalCharacterEncoding, IClassLoader optionalParentIClassLoader)
ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader optionalParentIClassLoader)
-
Uses of ResourceFinder in org.codehaus.janino.util
Fields in org.codehaus.janino.util declared as ResourceFinder Modifier and Type Field Description private ResourceFinder
ResourceFinderClassLoader. resourceFinder
Methods in org.codehaus.janino.util that return ResourceFinder Modifier and Type Method Description ResourceFinder
ResourceFinderClassLoader. getResourceFinder()
Constructors in org.codehaus.janino.util with parameters of type ResourceFinder Constructor Description ResourceFinderClassLoader(ResourceFinder resourceFinder, java.lang.ClassLoader parent)
-
Uses of ResourceFinder in org.codehaus.janino.util.resource
Subclasses of ResourceFinder in org.codehaus.janino.util.resource Modifier and Type Class Description class
DirectoryResourceFinder
AFileResourceFinder
that finds file resources in a directory.class
FileResourceFinder
This class specializes theResourceFinder
for finding resources inFile
s.class
JarDirectoriesResourceFinder
Finds resources in any of the "*.jar" files that exist in a given set of directories.class
LazyMultiResourceFinder
AResourceFinder
that examines a set ofResourceFinder
s lazily as it searches for resources.class
MapResourceFinder
AResourceFinder
that provides access to resource stored as byte arrays in aMap
.class
MultiResourceFinder
AResourceFinder
that finds its resources through a collection of otherResourceFinder
s.class
PathResourceFinder
AResourceFinder
that finds its resources along a "path" consisting of JAR file names, ZIP file names, and directory names.class
ZipFileResourceFinder
AResourceFinder
that finds resources in a ZIP file.Fields in org.codehaus.janino.util.resource declared as ResourceFinder 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.Fields in org.codehaus.janino.util.resource with type parameters of type ResourceFinder Modifier and Type Field Description private java.util.Collection<ResourceFinder>
MultiResourceFinder. resourceFinders
Methods in org.codehaus.janino.util.resource that return ResourceFinder Modifier and Type Method Description private static ResourceFinder
PathResourceFinder. createResourceFinder(java.io.File entry)
A factory method that creates a Java classpath-style ResourceFinder as follows:entry
ReturnedResourceFinder
"*.jar" fileZipFileResourceFinder
"*.zip" fileZipFileResourceFinder
directoryDirectoryResourceFinder
any otherAResourceFinder
that never finds a resourceMethods in org.codehaus.janino.util.resource that return types with arguments of type ResourceFinder Modifier and Type Method Description private static java.util.Iterator<ResourceFinder>
PathResourceFinder. createIterator(java.util.Iterator<java.io.File> entries)
Constructor parameters in org.codehaus.janino.util.resource with type arguments of type ResourceFinder Constructor Description LazyMultiResourceFinder(java.util.Iterator<ResourceFinder> resourceFinders)
MultiResourceFinder(java.util.Collection<ResourceFinder> resourceFinders)
PathResourceFinder(java.util.Iterator<ResourceFinder> entries)
-