Package org.dvare.dynamic.resources
Class MemoryFileManager
java.lang.Object
javax.tools.ForwardingJavaFileManager<JavaFileManager>
org.dvare.dynamic.resources.MemoryFileManager
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,JavaFileManager
,OptionChecker
- Direct Known Subclasses:
DynamicJavaFileManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
JavaFileManager.Location
-
Field Summary
Fields inherited from class javax.tools.ForwardingJavaFileManager
fileManager
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryFileManager
(JavaFileManager standardJavaFileManager, DynamicClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptiongetFileForInput
(JavaFileManager.Location location, String packageName, String relativeName) boolean
hasLocation
(JavaFileManager.Location location) inferBinaryName
(JavaFileManager.Location location, JavaFileObject file) list
(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) Methods inherited from class javax.tools.ForwardingJavaFileManager
close, contains, flush, getClassLoader, getFileForOutput, getJavaFileForInput, getJavaFileForOutput, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, inferModuleName, isSameFile, isSupportedOption, listLocationsForModules
-
Constructor Details
-
MemoryFileManager
-
-
Method Details
-
list
public Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException - Specified by:
list
in interfaceJavaFileManager
- Overrides:
list
in classForwardingJavaFileManager<JavaFileManager>
- Throws:
IOException
-
getFileForInput
public FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException - Specified by:
getFileForInput
in interfaceJavaFileManager
- Overrides:
getFileForInput
in classForwardingJavaFileManager<JavaFileManager>
- Throws:
IOException
-
hasLocation
- Specified by:
hasLocation
in interfaceJavaFileManager
- Overrides:
hasLocation
in classForwardingJavaFileManager<JavaFileManager>
-
inferBinaryName
- Specified by:
inferBinaryName
in interfaceJavaFileManager
- Overrides:
inferBinaryName
in classForwardingJavaFileManager<JavaFileManager>
-