public class SmartFileManager extends ForwardingJavaFileManager<JavaFileManager>
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
JavaFileManager.LocationfileManager| Constructor and Description |
|---|
SmartFileManager(JavaFileManager fileManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanArtifacts() |
void |
close() |
void |
flush() |
FileObject |
getFileForInput(JavaFileManager.Location location,
String packageName,
String relativeName) |
FileObject |
getFileForOutput(JavaFileManager.Location location,
String packageName,
String relativeName,
FileObject sibling) |
JavaFileObject |
getJavaFileForInput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind) |
JavaFileObject |
getJavaFileForOutput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind,
FileObject sibling) |
Map<String,Set<URI>> |
getPackageArtifacts() |
boolean |
hasLocation(JavaFileManager.Location location) |
Iterable<JavaFileObject> |
list(JavaFileManager.Location location,
String packageName,
Set<JavaFileObject.Kind> kinds,
boolean recurse) |
void |
setLog(PrintWriter pw) |
void |
setVisibleSources(Set<URI> s) |
contains, getClassLoader, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, inferBinaryName, inferModuleName, isSameFile, isSupportedOption, listLocationsForModulespublic SmartFileManager(JavaFileManager fileManager)
public void cleanArtifacts()
public void setLog(PrintWriter pw)
public 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 hasLocation(JavaFileManager.Location location)
hasLocation in interface JavaFileManagerhasLocation in class ForwardingJavaFileManager<JavaFileManager>public 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 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 void flush()
throws IOException
flush in interface Flushableflush in interface JavaFileManagerflush in class ForwardingJavaFileManager<JavaFileManager>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface JavaFileManagerclose in class ForwardingJavaFileManager<JavaFileManager>IOExceptionCopyright © 2017 earcam. All rights reserved.