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.Location
fileManager
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, listLocationsForModules
public 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 JavaFileManager
list
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public boolean hasLocation(JavaFileManager.Location location)
hasLocation
in interface JavaFileManager
hasLocation
in class ForwardingJavaFileManager<JavaFileManager>
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 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 void flush() throws IOException
flush
in interface Flushable
flush
in interface JavaFileManager
flush
in class ForwardingJavaFileManager<JavaFileManager>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface JavaFileManager
close
in class ForwardingJavaFileManager<JavaFileManager>
IOException
Copyright © 2017 earcam. All rights reserved.