Uses of Interface
org.codehaus.commons.compiler.util.resource.Resource
Packages that use Resource
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 Resource in org.codehaus.commons.compiler
Methods in org.codehaus.commons.compiler with parameters of type ResourceModifier and TypeMethodDescriptionvoid
-
Uses of Resource in org.codehaus.commons.compiler.jdk
Methods in org.codehaus.commons.compiler.jdk with parameters of type ResourceModifier 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) void
void
-
Uses of Resource in org.codehaus.commons.compiler.jdk.util
Fields in org.codehaus.commons.compiler.jdk.util declared as ResourceModifier and TypeFieldDescriptionprivate final Resource
JavaFileObjects.ResourceJavaFileObject.resource
Methods in org.codehaus.commons.compiler.jdk.util with parameters of type ResourceModifier and TypeMethodDescriptionstatic JavaFileObject
JavaFileObjects.fromResource
(Resource resource, String className, JavaFileObject.Kind kind, Charset charset) Wraps aResource
as aJavaFileObject
.Constructors in org.codehaus.commons.compiler.jdk.util with parameters of type ResourceModifierConstructorDescriptionprivate
ResourceJavaFileObject
(Resource resource, String className, JavaFileObject.Kind kind, Charset charset) -
Uses of Resource in org.codehaus.commons.compiler.util.resource
Subinterfaces of Resource in org.codehaus.commons.compiler.util.resourceClasses in org.codehaus.commons.compiler.util.resource that implement ResourceModifier and TypeClassDescriptionclass
Representation of a resource that is aFile
.class
A resource who's content is aString
.Fields in org.codehaus.commons.compiler.util.resource with type parameters of type ResourceMethods in org.codehaus.commons.compiler.util.resource that return ResourceModifier and TypeMethodDescriptionMapResourceFinder.addResource
(String fileName, byte[] data) Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.MapResourceFinder.addResource
(String fileName, String data) MapResourceFinder.addResource
(Resource resource) Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.final Resource
FileResourceFinder.findResource
(String resourceName) final Resource
MapResourceFinder.findResource
(String resourceName) final Resource
MultiResourceFinder.findResource
(String resourceName) abstract Resource
ResourceFinder.findResource
(String resourceName) Finds a resource by name and return it as aResource
object.final Resource
ZipFileResourceFinder.findResource
(String resourceName) Methods in org.codehaus.commons.compiler.util.resource that return types with arguments of type ResourceModifier and TypeMethodDescriptionReturns all resources who's names start with a given string.MapResourceFinder.resources()
Methods in org.codehaus.commons.compiler.util.resource with parameters of type ResourceModifier and TypeMethodDescriptionMapResourceFinder.addResource
(Resource resource) Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
. -
Uses of Resource in org.codehaus.janino
Methods in org.codehaus.janino with parameters of type ResourceModifier and TypeMethodDescriptionvoid
private void
private IClass
Compiler.CompilerIClassLoader.defineIClassFromClassFileResource
(Resource classFileResource) Opens the given classFileResource, reads its contents, defines it in theIClassLoader
, and resolves it (this step may involve loading more classes).private IClass
Compiler.CompilerIClassLoader.defineIClassFromSourceResource
(Resource sourceResource, String className) Parses the compilation unit stored in the given sourceResource, remembers it inCompiler.this.parsedCompilationUnits
(it may declare other classes that are needed later), finds the declaration of the type with the given className, and defines it in theIClassLoader
.private static byte[]
CachingJavaSourceClassLoader.readResource
(Resource r) Reads all bytes from the given resource.