| com.sun.tools.javac.api.WrappingJavaFileManager
WrappingJavaFileManager | public class WrappingJavaFileManager extends ForwardingJavaFileManager (Code) | | Wraps all calls to a given file manager. Subclasses of this class
might override some of these methods and might also provide
additional fields and methods.
This class might be moved to
javax.tools in a future
release.
This is NOT part of any API supported by Sun Microsystems.
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.
< Parameters: M - > the type of file manager wrapped to by this object author: Peter von der Ahé since: 1.6 |
Constructor Summary | |
protected | WrappingJavaFileManager(M fileManager) Creates a new instance of WrappingJavaFileManager. |
Method Summary | |
public FileObject | getFileForInput(Location location, String packageName, String relativeName) | public FileObject | getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) | public JavaFileObject | getJavaFileForInput(Location location, String className, Kind kind) | public JavaFileObject | getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) | public String | inferBinaryName(Location location, JavaFileObject file) | public Iterable<JavaFileObject> | list(Location location, String packageName, Set<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
WrappingJavaFileManager.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 JavaFileObject | wrap(JavaFileObject fileObject) This implementation forwards to
WrappingJavaFileManager.wrap(FileObject) . | protected Iterable<JavaFileObject> | wrap(Iterable<JavaFileObject> fileObjects) This implementation maps the given list of file objects by
calling wrap on each. |
WrappingJavaFileManager | protected WrappingJavaFileManager(M fileManager)(Code) | | Creates a new instance of WrappingJavaFileManager.
Parameters: fileManager - file manager to be wrapped |
unwrap | protected FileObject unwrap(FileObject fileObject)(Code) | | This implementation returns the given file object. Subclasses
may override this behavior.
Parameters: fileObject - a file object |
unwrap | protected URI unwrap(URI uri)(Code) | | This implementation returns the given URI. Subclasses may
override this behavior.
Parameters: uri - a URI |
wrap | protected FileObject wrap(FileObject fileObject)(Code) | | This implementation returns the given file object. Subclasses
may override this behavior.
Parameters: fileObject - a file object |
wrap | protected Iterable<JavaFileObject> wrap(Iterable<JavaFileObject> fileObjects)(Code) | | This implementation maps the given list of file objects by
calling wrap on each. Subclasses may override this behavior.
Parameters: fileObjects - a list of file objects the mapping |
|
|