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, isSupportedOption
public 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 null
public 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 Closeable
close
in interface AutoCloseable
close
in interface JavaFileManager
close
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public boolean hasLocation(JavaFileManager.Location location)
hasLocation
in interface JavaFileManager
hasLocation
in class ForwardingJavaFileManager<JavaFileManager>
public FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException
getFileForInput
in interface JavaFileManager
getFileForInput
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public FileObject getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) throws IOException
getFileForOutput
in interface JavaFileManager
getFileForOutput
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public JavaFileObject getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) throws IOException
getJavaFileForInput
in interface JavaFileManager
getJavaFileForInput
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException
getJavaFileForOutput
in interface JavaFileManager
getJavaFileForOutput
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException
list
in interface JavaFileManager
list
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public boolean isSameFile(FileObject a, FileObject b)
isSameFile
in interface JavaFileManager
isSameFile
in class ForwardingJavaFileManager<JavaFileManager>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.