Class JavaFileManagers
- java.lang.Object
-
- org.codehaus.commons.compiler.jdk.util.JavaFileManagers
-
public final class JavaFileManagers extends java.lang.Object
Utility methods related toJavaFileManager
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <M extends javax.tools.JavaFileManager>
javax.tools.ForwardingJavaFileManager<M>fromResourceCreator(M delegate, javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject.Kind kind, ResourceCreator resourceCreator, java.nio.charset.Charset charset)
static <M extends javax.tools.JavaFileManager>
javax.tools.ForwardingJavaFileManager<M>fromResourceFinder(M delegate, javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject.Kind kind, ResourceFinder resourceFinder, java.nio.charset.Charset charset)
AForwardingJavaFileManager
that maps accesses to a particularJavaFileManager.Location
andJavaFileObject.Kind
to a search in aResourceFinder
.static <M extends javax.tools.JavaFileManager>
javax.tools.ForwardingJavaFileManager<M>inMemory(M delegate, java.nio.charset.Charset charset)
-
-
-
Method Detail
-
fromResourceFinder
public static <M extends javax.tools.JavaFileManager> javax.tools.ForwardingJavaFileManager<M> fromResourceFinder(M delegate, javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject.Kind kind, ResourceFinder resourceFinder, java.nio.charset.Charset charset)
AForwardingJavaFileManager
that maps accesses to a particularJavaFileManager.Location
andJavaFileObject.Kind
to a search in aResourceFinder
.
-
fromResourceCreator
public static <M extends javax.tools.JavaFileManager> javax.tools.ForwardingJavaFileManager<M> fromResourceCreator(M delegate, javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject.Kind kind, ResourceCreator resourceCreator, java.nio.charset.Charset charset)
- Returns:
- A
ForwardingJavaFileManager
that storesJavaFileObject
s through aResourceCreator
-
inMemory
public static <M extends javax.tools.JavaFileManager> javax.tools.ForwardingJavaFileManager<M> inMemory(M delegate, java.nio.charset.Charset charset)
- Returns:
- A
ForwardingJavaFileManager
that storesJavaFileObject
s in byte arrays, i.e. in memory (as opposed to theStandardJavaFileManager
, which stores them in files)
-
-