Uses of Class
org.codehaus.commons.compiler.util.resource.ResourceFinder
Packages that use ResourceFinder
Package
Description
This package declares interfaces for the implementation of an
IExpressionEvaluator
, an IScriptEvaluator
, an
IClassBodyEvaluator
and an ISimpleCompiler
.An implementation of the
org.codehaus.commons.compiler
API that uses the "JAVAC" Java compiler that is
part of the "Java Development Kit" (JDK).Utility functionality for this project.
Classes related to loading "resources" (
ResourceFinder
) and
creating resources (ResourceCreator
).The core of the Janino Java compiler.
-
Uses of ResourceFinder in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler declared as ResourceFinderModifier and TypeFieldDescriptionprotected ResourceFinder
AbstractCompiler.classFileFinder
Implements the "read side" of the JAVAC-d
option.static final ResourceFinder
ICompiler.FIND_NEXT_TO_SOURCE_FILE
Special value forICompiler.setClassFileFinder(ResourceFinder)
.protected ResourceFinder
AbstractCompiler.sourceFinder
Implements the JAVAC-sourcepath
option.Methods in org.codehaus.commons.compiler with parameters of type ResourceFinderModifier and TypeMethodDescriptionvoid
AbstractCompiler.setClassFileFinder
(ResourceFinder classFileFinder) final void
AbstractCompiler.setClassFileFinder
(ResourceFinder destination, boolean rebuild) void
ICompiler.setClassFileFinder
(ResourceFinder classFileFinder) ThisResourceFinder
is used to check whether a.class
resource already exists and is younger than the.java
resource from which it was generated.void
ICompiler.setClassFileFinder
(ResourceFinder classFileFinder, boolean rebuild) Equivalent withsetClassFileFinder(rebuild ? ResourceFinder.EMPTY_RESOURCE_FINDER : classFileFinder)
.void
AbstractCompiler.setSourceFinder
(ResourceFinder sourceFinder) abstract void
AbstractJavaSourceClassLoader.setSourceFinder
(ResourceFinder sourceFinder) void
ICompiler.setSourceFinder
(ResourceFinder sourceFinder) Finds more.java
resources that need to be compiled, i.e. -
Uses of ResourceFinder in org.codehaus.commons.compiler.jdk
Fields in org.codehaus.commons.compiler.jdk declared as ResourceFinderMethods in org.codehaus.commons.compiler.jdk with parameters of type ResourceFinderModifier and TypeMethodDescription(package private) static void
Compiler.compile
(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, SortedSet<Location> offsets) private static JavaFileManager
Compiler.getJavaFileManager
(JavaCompiler compiler, ResourceFinder sourceFileFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator) Creates aJavaFileManager
that implements the given sourceFileFinder, sourceFileCharset, classFileFinder and classFileCreator.void
JavaSourceClassLoader.setSourceFinder
(ResourceFinder sourceFinder) -
Uses of ResourceFinder in org.codehaus.commons.compiler.jdk.util
Methods in org.codehaus.commons.compiler.jdk.util with parameters of type ResourceFinderModifier and TypeMethodDescriptionstatic <M extends JavaFileManager>
ForwardingJavaFileManager<M> JavaFileManagers.fromResourceFinder
(M delegate, JavaFileManager.Location location, JavaFileObject.Kind kind, ResourceFinder resourceFinder, Charset charset) AForwardingJavaFileManager
that maps accesses to a particularJavaFileManager.Location
andJavaFileObject.Kind
to a search in aResourceFinder
. -
Uses of ResourceFinder in org.codehaus.commons.compiler.lang
Methods in org.codehaus.commons.compiler.lang with parameters of type ResourceFinderModifier and TypeMethodDescriptionstatic ClassLoader
ClassLoaders.getsResourceAsStream
(ResourceFinder finder, ClassLoader parent) Creates and returns aClassLoader
that implementsClassLoader.getResourceAsStream(String)
via aResourceFinder
. -
Uses of ResourceFinder in org.codehaus.commons.compiler.util
Fields in org.codehaus.commons.compiler.util declared as ResourceFinderModifier and TypeFieldDescriptionprivate final ResourceFinder
ResourceFinderClassLoader.resourceFinder
Methods in org.codehaus.commons.compiler.util that return ResourceFinderConstructors in org.codehaus.commons.compiler.util with parameters of type ResourceFinderModifierConstructorDescriptionResourceFinderClassLoader
(ResourceFinder resourceFinder, ClassLoader parent) -
Uses of ResourceFinder in org.codehaus.commons.compiler.util.resource
Subclasses of ResourceFinder in org.codehaus.commons.compiler.util.resourceModifier and TypeClassDescriptionclass
AFileResourceFinder
that finds file resources in a directory.class
This class specializes theResourceFinder
for finding resources inFile
s.class
Finds resources in any of the "*.jar" files that exist in a given set of directories.class
AResourceFinder
that examines a set ofResourceFinder
s lazily as it searches for resources.class
Extends theResourceFinder
class with aListableResourceFinder.list(String, boolean)
method.class
AResourceFinder
that provides access to resource stored as byte arrays in aMap
.class
AResourceFinder
that finds its resources through a collection of otherResourceFinder
s.class
AResourceFinder
that finds its resources along a "path" consisting of JAR file names, ZIP file names, and directory names.class
AResourceFinder
that finds resources in a ZIP file.Fields in org.codehaus.commons.compiler.util.resource with type parameters of type ResourceFinderModifier and TypeFieldDescriptionprivate final Iterable
<? extends ResourceFinder> MultiResourceFinder.resourceFinders
Methods in org.codehaus.commons.compiler.util.resource that return ResourceFinderModifier and TypeMethodDescriptionprivate static ResourceFinder
PathResourceFinder.createResourceFinder
(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 resourceprivate static ResourceFinder
ResourceFinders.debugListableResourceFinder
(ListableResourceFinder delegate) static ResourceFinder
ResourceFinders.debugResourceFinder
(ResourceFinder delegate) Methods in org.codehaus.commons.compiler.util.resource that return types with arguments of type ResourceFinderModifier and TypeMethodDescriptionprivate static Iterator
<ResourceFinder> PathResourceFinder.createIterator
(Iterator<File> entries) Methods in org.codehaus.commons.compiler.util.resource with parameters of type ResourceFinderModifier and TypeMethodDescriptionstatic ResourceFinder
ResourceFinders.debugResourceFinder
(ResourceFinder delegate) Constructors in org.codehaus.commons.compiler.util.resource with parameters of type ResourceFinderConstructor parameters in org.codehaus.commons.compiler.util.resource with type arguments of type ResourceFinderModifierConstructorDescriptionLazyMultiResourceFinder
(Iterator<ResourceFinder> resourceFinders) MultiResourceFinder
(Iterable<? extends ResourceFinder> resourceFinders) PathResourceFinder
(Iterator<ResourceFinder> entries) -
Uses of ResourceFinder in org.codehaus.janino
Fields in org.codehaus.janino declared as ResourceFinderModifier and TypeFieldDescriptionprivate final ResourceFinder
CachingJavaSourceClassLoader.classFileCacheResourceFinder
private final ResourceFinder
Compiler.CompilerIClassLoader.classFileFinder
private final ResourceFinder
ResourceFinderIClassLoader.resourceFinder
private final ResourceFinder
CachingJavaSourceClassLoader.sourceFinder
private final ResourceFinder
Compiler.CompilerIClassLoader.sourceFinder
private ResourceFinder
JavaSourceIClassLoader.sourceFinder
Methods in org.codehaus.janino that return ResourceFinderMethods in org.codehaus.janino with parameters of type ResourceFinderModifier and TypeMethodDescriptionvoid
JavaSourceClassLoader.setSourceFinder
(ResourceFinder sourceFinder) void
JavaSourceIClassLoader.setSourceFinder
(ResourceFinder sourceFinder) Constructors in org.codehaus.janino with parameters of type ResourceFinderModifierConstructorDescriptionCachingJavaSourceClassLoader
(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String characterEncoding, 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 parentIClassLoader) Deprecated.(package private)
CompilerIClassLoader
(ResourceFinder sourceFinder, ResourceFinder classFileFinder, IClassLoader parentIClassLoader) JavaSourceClassLoader
(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String characterEncoding) Constructs aJavaSourceClassLoader
that finds Java source code through a givenResourceFinder
.JavaSourceIClassLoader
(ResourceFinder sourceFinder, String sourceCharsetName, IClassLoader parentIClassLoader) ResourceFinderIClassLoader
(ResourceFinder resourceFinder, IClassLoader parentIClassLoader)
Compiler()
and the various configuration setters instead