M - the type of file manager wrapped to by this objectpublic class WrappingJavaFileManager<M extends JavaFileManager> extends ForwardingJavaFileManager<M>
This class might be moved to javax.tools in a future
release.
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| Modifier | Constructor and Description |
|---|---|
protected |
WrappingJavaFileManager(M fileManager)
Creates a new instance of WrappingJavaFileManager.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
String |
inferBinaryName(JavaFileManager.Location location,
JavaFileObject file) |
Iterable<JavaFileObject> |
list(JavaFileManager.Location location,
String packageName,
Set<JavaFileObject.Kind> kinds,
boolean recurse) |
protected FileObject |
unwrap(FileObject fileObject)
This implementation returns the given file object.
|
protected JavaFileObject |
unwrap(JavaFileObject fileObject)
This implementation forwards to
unwrap(FileObject). |
protected URI |
unwrap(URI uri)
This implementation returns the given URI.
|
protected FileObject |
wrap(FileObject fileObject)
This implementation returns the given file object.
|
protected Iterable<JavaFileObject> |
wrap(Iterable<JavaFileObject> fileObjects)
This implementation maps the given list of file objects by
calling wrap on each.
|
protected JavaFileObject |
wrap(JavaFileObject fileObject)
This implementation forwards to
wrap(FileObject). |
close, contains, flush, getClassLoader, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, hasLocation, inferModuleName, isSameFile, isSupportedOption, listLocationsForModulesprotected WrappingJavaFileManager(M fileManager)
fileManager - file manager to be wrappedprotected FileObject wrap(FileObject fileObject)
fileObject - a file objectprotected JavaFileObject wrap(JavaFileObject fileObject)
wrap(FileObject).
Subclasses may override this behavior.fileObject - a file objectClassCastException - if the file object returned from the
forwarded call is not a subtype of JavaFileObjectprotected FileObject unwrap(FileObject fileObject)
fileObject - a file objectprotected JavaFileObject unwrap(JavaFileObject fileObject)
unwrap(FileObject).
Subclasses may override this behavior.fileObject - a file objectClassCastException - if the file object returned from the
forwarded call is not a subtype of JavaFileObjectprotected Iterable<JavaFileObject> wrap(Iterable<JavaFileObject> fileObjects)
fileObjects - a list of file objectsprotected URI unwrap(URI uri)
uri - a URIpublic Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException
list in interface JavaFileManagerlist in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalStateExceptionIOExceptionpublic String inferBinaryName(JavaFileManager.Location location, JavaFileObject file)
inferBinaryName in interface JavaFileManagerinferBinaryName in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalStateExceptionpublic JavaFileObject getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) throws IOException
getJavaFileForInput in interface JavaFileManagergetJavaFileForInput in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalArgumentExceptionUnsupportedOperationExceptionIllegalStateExceptionIOExceptionpublic JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException
getJavaFileForOutput in interface JavaFileManagergetJavaFileForOutput in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalArgumentExceptionUnsupportedOperationExceptionIllegalStateExceptionIOExceptionpublic FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException
getFileForInput in interface JavaFileManagergetFileForInput in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalArgumentExceptionIllegalStateExceptionIOExceptionpublic FileObject getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) throws IOException
getFileForOutput in interface JavaFileManagergetFileForOutput in class ForwardingJavaFileManager<M extends JavaFileManager>IllegalArgumentExceptionIllegalStateExceptionIOExceptionCopyright © 2017 earcam. All rights reserved.