Uses of Interface
org.codehaus.commons.compiler.util.resource.Resource
-
Packages that use Resource 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 Resource in org.codehaus.commons.compiler
Methods in org.codehaus.commons.compiler with parameters of type Resource Modifier and Type Method Description void
ICompiler. compile(Resource[] sourceResources)
-
Uses of Resource in org.codehaus.commons.compiler.jdk
Methods in org.codehaus.commons.compiler.jdk with parameters of type Resource 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)
void
Compiler. compile(Resource[] sourceResources)
void
Compiler. compile(Resource[] sourceResources, java.util.SortedSet<Location> offsets)
-
Uses of Resource in org.codehaus.commons.compiler.jdk.util
Fields in org.codehaus.commons.compiler.jdk.util declared as Resource Modifier and Type Field Description private Resource
JavaFileObjects.ResourceJavaFileObject. resource
Methods in org.codehaus.commons.compiler.jdk.util with parameters of type Resource Modifier and Type Method Description static javax.tools.JavaFileObject
JavaFileObjects. fromResource(Resource resource, java.lang.String className, javax.tools.JavaFileObject.Kind kind, java.nio.charset.Charset charset)
Wraps aResource
as aJavaFileObject
.Constructors in org.codehaus.commons.compiler.jdk.util with parameters of type Resource Constructor Description ResourceJavaFileObject(Resource resource, java.lang.String className, javax.tools.JavaFileObject.Kind kind, java.nio.charset.Charset charset)
-
Uses of Resource in org.codehaus.commons.compiler.util.resource
Subinterfaces of Resource in org.codehaus.commons.compiler.util.resource Modifier and Type Interface Description interface
LocatableResource
AResource
that can be addressed by a URL.Classes in org.codehaus.commons.compiler.util.resource that implement Resource Modifier and Type Class Description class
FileResource
Representation of a resource that is aFile
.class
StringResource
A resource who's content is aString
.Fields in org.codehaus.commons.compiler.util.resource with type parameters of type Resource Modifier and Type Field Description private java.util.Map<java.lang.String,Resource>
MapResourceFinder. map
Methods in org.codehaus.commons.compiler.util.resource that return Resource Modifier and Type Method Description Resource
MapResourceFinder. addResource(java.lang.String fileName, byte[] data)
Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.Resource
MapResourceFinder. addResource(java.lang.String fileName, java.lang.String data)
Resource
MapResourceFinder. addResource(Resource resource)
Adds anotherResource
, so that it can later be found withMapResourceFinder.findResource(String)
,ResourceFinder.findResourceAsStream(String)
andMapResourceFinder.resources()
.Resource
FileResourceFinder. findResource(java.lang.String resourceName)
Resource
MapResourceFinder. findResource(java.lang.String resourceName)
Resource
MultiResourceFinder. findResource(java.lang.String resourceName)
abstract Resource
ResourceFinder. findResource(java.lang.String resourceName)
Finds a resource by name and return it as aResource
object.Resource
ZipFileResourceFinder. findResource(java.lang.String resourceName)
Methods in org.codehaus.commons.compiler.util.resource that return types with arguments of type Resource Modifier and Type Method Description java.lang.Iterable<Resource>
DirectoryResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
abstract java.lang.Iterable<Resource>
ListableResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
java.lang.Iterable<Resource>
MapResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
java.lang.Iterable<Resource>
MultiResourceFinder. list(java.lang.String resourceNamePrefix, boolean recurse)
java.util.Collection<Resource>
MapResourceFinder. resources()
Methods in org.codehaus.commons.compiler.util.resource with parameters of type Resource Modifier and Type Method Description Resource
MapResourceFinder. 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 Resource Modifier and Type Method Description void
Compiler. compile(Resource[] sourceResources)
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, java.lang.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.
-