public class VolatileClassOutputManager extends ForwardingJavaFileManager<JavaFileManager>
JavaFileManager which stores generated contents onto the heap.JavaFileManager.Location| Modifier and Type | Field and Description |
|---|---|
static char |
NAME_SEPARATOR
The Java name separator character.
|
static char |
SEGMENT_SEPARATOR
The path name separator character.
|
fileManager| Constructor and Description |
|---|
VolatileClassOutputManager(JavaFileManager fileManager)
Creates a new instance.
|
flush, getClassLoader, handleOption, inferBinaryName, isSupportedOptionpublic static final char NAME_SEPARATOR
public static final char SEGMENT_SEPARATOR
public VolatileClassOutputManager(JavaFileManager fileManager)
fileManager - the delegation target file managerNullPointerException - if the parameter is nullpublic Collection<VolatileJavaFile> getSources()
public Collection<VolatileResourceFile> getResources()
public Collection<VolatileClassFile> getCompiled()
public void close()
throws IOException
getSources(), getResources(), and getCompiled() will return empty collections
after this operation. Please obtain the each result before closing this object, then the results will
be still available after this was closed.close in interface Closeableclose in interface AutoCloseableclose in interface JavaFileManagerclose in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic boolean hasLocation(JavaFileManager.Location location)
hasLocation in interface JavaFileManagerhasLocation in class ForwardingJavaFileManager<JavaFileManager>public FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException
getFileForInput in interface JavaFileManagergetFileForInput in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic FileObject getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) throws IOException
getFileForOutput in interface JavaFileManagergetFileForOutput in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic JavaFileObject getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) throws IOException
getJavaFileForInput in interface JavaFileManagergetJavaFileForInput in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException
getJavaFileForOutput in interface JavaFileManagergetJavaFileForOutput in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException
list in interface JavaFileManagerlist in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic boolean isSameFile(FileObject a, FileObject b)
isSameFile in interface JavaFileManagerisSameFile in class ForwardingJavaFileManager<JavaFileManager>Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.