This class might be moved to javax. 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.
| Access | Constructor and Description |
|---|---|
| protected | WrappingJavaFileManager(M
file manager to be wrapped fileManager)Creates a new instance of WrappingJavaFileManager. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(JavaFileManager.
Overrides javax. Overrides default javax. Determines whether or not a given file object is "contained in" a specified location. |
| public FileObject | getFileForInput(JavaFileManager.
Overrides javax. Implements javax. Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location. |
| public FileObject | getFileForOutput(JavaFileManager.
Overrides javax. Implements javax. Returns a file object for output representing the specified relative name in the specified package in the given location. |
| public JavaFileObject | getJavaFileForInput(JavaFileManager.
Overrides javax. Implements javax. Returns a file object for input representing the specified class of the specified kind in the given package-oriented location. |
| public JavaFileObject | getJavaFileForOutput(JavaFileManager.
Overrides javax. Implements javax. Returns a file object for output representing the specified class of the specified kind in the given package-oriented location. |
| public String | inferBinaryName(JavaFileManager.
Overrides javax. Implements javax. Infers a binary name of a file object based on a package-oriented location. |
| public Iterable | list(JavaFileManager.
Overrides javax. Implements javax. Lists all file objects matching the given criteria in the given package-oriented location. |
| protected FileObject | |
| protected JavaFileObject | |
| protected URI | |
| protected FileObject | |
| protected JavaFileObject | |
| protected Iterable | Returns: the mappinga list of file objects fileObjects)This implementation maps the given list of file objects by calling wrap on each. |
| WrappingJavaFileManager | back to summary |
|---|---|
| protected WrappingJavaFileManager(M fileManager) Creates a new instance of WrappingJavaFileManager.
| |
| contains | back to summary |
|---|---|
| public boolean contains(JavaFileManager. Overrides javax. Overrides default javax. Doc from javax. Determines whether or not a given file object is "contained in" a specified location. For a package-oriented location, a file object is contained in the location if there exist
values for packageName and relativeName such that either of the following
calls would return the getFileForInput(location, packageName, relativeName) getFileForOutput(location, packageName, relativeName, null) For a module-oriented location, a file object is contained in the location if there exists a module that may be obtained by the call: getLocationForModule(location, moduleName)
| |
| getFileForInput | back to summary |
|---|---|
| public FileObject getFileForInput(JavaFileManager. Overrides javax. Implements javax. Doc from javax. Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location. If the returned object represents a source or class file, it must be an instance
of Informally, the file object returned by this method is located in the concatenation of the location, package name, and relative name. For example, to locate the properties file "resources/compiler.properties" in the package "com.sun.tools.javac" in the SOURCE_PATH location, this method might be called like so: getFileForInput(SOURCE_PATH, "com.sun.tools.javac", "resources/compiler.properties"); If the call was executed on Windows, with SOURCE_PATH set to
| |
| getFileForOutput | back to summary |
|---|---|
| public FileObject getFileForOutput(JavaFileManager. Overrides javax. Implements javax. Doc from javax. Returns a file object for output representing the specified relative name in the specified package in the given location. Optionally, this file manager might consider the sibling as a hint for where to place the output. The exact semantics of this hint is unspecified. The JDK compiler, javac, for example, will place class files in the same directories as originating source files unless a class file output directory is provided. To facilitate this behavior, javac might provide the originating source file as sibling when calling this method. If the returned object represents a source or class file, it must be an instance
of Informally, the file object returned by this method is
located in the concatenation of the location, package name, and
relative name or next to the sibling argument. See
| |
| getJavaFileForInput | back to summary |
|---|---|
| public JavaFileObject getJavaFileForInput(JavaFileManager. Overrides javax. Implements javax. Doc from javax. Returns a file object for input representing the specified class of the specified kind in the given package-oriented location.
| |
| getJavaFileForOutput | back to summary |
|---|---|
| public JavaFileObject getJavaFileForOutput(JavaFileManager. Overrides javax. Implements javax. Doc from javax. Returns a file object for output representing the specified class of the specified kind in the given package-oriented location. Optionally, this file manager might consider the sibling as a hint for where to place the output. The exact semantics of this hint is unspecified. The JDK compiler, javac, for example, will place class files in the same directories as originating source files unless a class file output directory is provided. To facilitate this behavior, javac might provide the originating source file as sibling when calling this method.
| |
| inferBinaryName | back to summary |
|---|---|
| public String inferBinaryName(JavaFileManager. Overrides javax. Implements javax. Doc from javax. Infers a binary name of a file object based on a package-oriented location. The binary name returned might not be a valid binary name according to The Java Language Specification.
| |
| list | back to summary |
|---|---|
| public Iterable Overrides javax. Implements javax. Doc from javax. Lists all file objects matching the given criteria in the given package-oriented location. List file objects in "subpackages" if recurse is true. Note even if the given location is unknown to this file
manager, it may not return
| |
| unwrap | back to summary |
|---|---|
| protected FileObject unwrap(FileObject fileObject) This implementation returns the given file object. Subclasses may override this behavior.
| |
| unwrap | back to summary |
|---|---|
| protected JavaFileObject unwrap(JavaFileObject fileObject) This implementation forwards to
| |
| unwrap | back to summary |
|---|---|
| protected URI unwrap(URI uri) This implementation returns the given URI. Subclasses may override this behavior.
| |
| wrap | back to summary |
|---|---|
| protected FileObject wrap(FileObject fileObject) This implementation returns the given file object. Subclasses may override this behavior.
| |
| wrap | back to summary |
|---|---|
| protected JavaFileObject wrap(JavaFileObject fileObject) This implementation forwards to
| |
| wrap | back to summary |
|---|---|
| protected Iterable This implementation maps the given list of file objects by calling wrap on each. Subclasses may override this behavior.
| |