Uses of Interface
org.codehaus.commons.compiler.util.resource.ResourceCreator
Packages that use ResourceCreator
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).Classes related to loading "resources" (
ResourceFinder
) and
creating resources (ResourceCreator
).The core of the Janino Java compiler.
-
Uses of ResourceCreator in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler declared as ResourceCreatorModifier and TypeFieldDescriptionprotected ResourceCreator
AbstractCompiler.classFileCreator
Implements the "write side" of the JAVAC-d
option.static final ResourceCreator
ICompiler.CREATE_NEXT_TO_SOURCE_FILE
Special value forICompiler.setClassFileCreator(ResourceCreator)
: Indicates that .class resources are to be created in the directory of the .java resource from which they are generated.Methods in org.codehaus.commons.compiler with parameters of type ResourceCreatorModifier and TypeMethodDescriptionfinal void
AbstractCompiler.setClassFileCreator
(ResourceCreator classFileCreator) void
ICompiler.setClassFileCreator
(ResourceCreator classFileCreator) ThisResourceCreator
is used to store generated.class
files. -
Uses of ResourceCreator in org.codehaus.commons.compiler.jdk
Methods in org.codehaus.commons.compiler.jdk with parameters of type ResourceCreatorModifier 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. -
Uses of ResourceCreator in org.codehaus.commons.compiler.jdk.util
Methods in org.codehaus.commons.compiler.jdk.util with parameters of type ResourceCreatorModifier and TypeMethodDescriptionstatic <M extends JavaFileManager>
ForwardingJavaFileManager<M> JavaFileManagers.fromResourceCreator
(M delegate, JavaFileManager.Location location, JavaFileObject.Kind kind, ResourceCreator resourceCreator, Charset charset) static JavaFileObject
JavaFileObjects.fromResourceCreator
(ResourceCreator resourceCreator, String resourceName, JavaFileObject.Kind kind, Charset charset) -
Uses of ResourceCreator in org.codehaus.commons.compiler.util.resource
Classes in org.codehaus.commons.compiler.util.resource that implement ResourceCreatorModifier and TypeClassDescriptionclass
Creates a resource in a given directory:class
Stores a stream of bytes in a named resource.class
Creates resources as byte arrays in a delegateMap
. -
Uses of ResourceCreator in org.codehaus.janino
Fields in org.codehaus.janino declared as ResourceCreatorModifier and TypeFieldDescriptionprivate final ResourceCreator
CachingJavaSourceClassLoader.classFileCacheResourceCreator
Methods in org.codehaus.janino with parameters of type ResourceCreatorModifier and TypeMethodDescriptionprivate static void
CachingJavaSourceClassLoader.writeResource
(ResourceCreator resourceCreator, String resourceName, byte[] data) Creates a resource with the given name and store the data in it.Constructors in org.codehaus.janino with parameters of type ResourceCreatorModifierConstructorDescriptionCachingJavaSourceClassLoader
(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.