Uses of Interface
org.codehaus.commons.compiler.util.resource.ResourceCreator
-
Packages that use ResourceCreator Package Description org.codehaus.commons.compiler This package declares interfaces for the implementation of anIExpressionEvaluator
, anIScriptEvaluator
, anIClassBodyEvaluator
and anISimpleCompiler
.org.codehaus.commons.compiler.jdk An implementation of theorg.codehaus.commons.compiler
API that uses the "JAVAC" Java compiler that is part of the "Java Development Kit" (JDK).org.codehaus.commons.compiler.jdk.util org.codehaus.commons.compiler.util.resource Classes related to loading "resources" (ResourceFinder
) and creating resources (ResourceCreator
).org.codehaus.janino The core of the Janino Java compiler. -
-
Uses of ResourceCreator in org.codehaus.commons.compiler
Fields in org.codehaus.commons.compiler declared as ResourceCreator Modifier and Type Field Description protected ResourceCreator
AbstractCompiler. classFileCreator
Implements the "write side" of the JAVAC-d
option.static 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 ResourceCreator Modifier and Type Method Description 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 ResourceCreator Modifier and Type Method Description (package private) static void
Compiler. compile(javax.tools.JavaCompiler compiler, java.util.List<java.lang.String> options, ResourceFinder sourceFinder, java.nio.charset.Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, ErrorHandler compileErrorHandler, WarningHandler warningHandler, java.util.SortedSet<Location> offsets)
private static javax.tools.JavaFileManager
Compiler. getJavaFileManager(javax.tools.JavaCompiler compiler, ResourceFinder sourceFileFinder, java.nio.charset.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 ResourceCreator Modifier and Type Method Description static <M extends javax.tools.JavaFileManager>
javax.tools.ForwardingJavaFileManager<M>JavaFileManagers. fromResourceCreator(M delegate, javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject.Kind kind, ResourceCreator resourceCreator, java.nio.charset.Charset charset)
static javax.tools.JavaFileObject
JavaFileObjects. fromResourceCreator(ResourceCreator resourceCreator, java.lang.String resourceName, javax.tools.JavaFileObject.Kind kind, java.nio.charset.Charset charset)
-
Uses of ResourceCreator in org.codehaus.commons.compiler.util.resource
Classes in org.codehaus.commons.compiler.util.resource that implement ResourceCreator Modifier and Type Class Description class
DirectoryResourceCreator
Creates a resource in a given directory:class
FileResourceCreator
Stores a stream of bytes in a named resource.class
MapResourceCreator
Creates resources as byte arrays in a delegateMap
. -
Uses of ResourceCreator in org.codehaus.janino
Fields in org.codehaus.janino declared as ResourceCreator Modifier and Type Field Description private ResourceCreator
CachingJavaSourceClassLoader. classFileCacheResourceCreator
Methods in org.codehaus.janino with parameters of type ResourceCreator Modifier and Type Method Description private static void
CachingJavaSourceClassLoader. writeResource(ResourceCreator resourceCreator, java.lang.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 ResourceCreator Constructor Description CachingJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader, ResourceFinder sourceFinder, java.lang.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.
-