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.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static interface | |
| private class | |
| private class | |
| private static class | |
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final boolean | |
| private static final Set | |
| private FSInfo | |
| private JRTIndex | |
| private static final JavacFileManager. | |
| private static final Set | |
| private Map | nonIndexingContainersByLocation
Containers that have no indexing by |
| private StandardJavaFileManager. | |
| private Map | pathsAndContainersByLocationAndRelativeDirectory
We use a two-layered map instead of a map with a complex key because we don't want to reindex the values for every Location+RelativeDirectory pair. |
| protected JavacFileManager. | |
| private static final Set | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | JavacFileManager(Context context, boolean register, Charset charset)
Create a JavacFileManager using a given context, optionally registering it as the JavaFileManager for that context. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private static Iterable | asFiles(final Iterable<? extends Path> paths)
Redeclares private: javax.
|
| public Path | asPath(FileObject file)
Overrides default javax. Returns the path, if any, underlying this file object (optional operation). |
| private static Iterable | asPaths(final Iterable<? extends File> files)
Redeclares private: javax.
|
| private boolean | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | close()
Implements javax. Close the JavaFileManager, releasing resources. |
| public boolean | contains(JavaFileManager.
Overrides default javax. Determines whether or not a given file object is "contained in" a specified location. |
| public void | |
| public ClassLoader | getClassLoader(JavaFileManager.
Implements javax. Returns a class loader for loading plug-ins from the given package-oriented location. |
| private Path | |
| pack-priv synchronized JavacFileManager. | |
| public FileObject | getFileForInput(JavaFileManager.
Implements javax. Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location. |
| private JavaFileObject | |
| public JavaFileObject | |
| public FileObject | getFileForOutput(JavaFileManager.
Implements javax. Returns a file object for output representing the specified relative name in the specified package in the given location. |
| private JavaFileObject | getFileForOutput(JavaFileManager.
|
| public JavaFileObject | getJavaFileForInput(JavaFileManager.
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.
Implements javax. Returns a file object for output representing the specified class of the specified kind in the given package-oriented location. |
| public JavaFileObject | |
| public JavaFileObject | |
| public Iterable | getJavaFileObjects(String... names)
Implements javax. Returns file objects representing the given file names. |
| public Iterable | getJavaFileObjects(File... files)
Implements javax. Returns file objects representing the given files. |
| public Iterable | getJavaFileObjects(Path... paths)
Overrides default javax. Returns file objects representing the given paths. |
| public Iterable | getJavaFileObjectsFromFiles(Iterable<? extends File> files)
Implements javax. Returns file objects representing the given files. |
| public Iterable | getJavaFileObjectsFromPaths(Collection<? extends Path> paths)
Overrides default javax. Returns file objects representing the given paths. |
| public Iterable | getJavaFileObjectsFromStrings(Iterable<String> names)
Implements javax. Returns file objects representing the given file names. |
| private synchronized JRTIndex | |
| public Iterable | getLocation(JavaFileManager.
Implements javax. Returns the search path associated with the given location. |
| public Collection | getLocationAsPaths(JavaFileManager.
Overrides default javax. Returns the search path associated with the given location. |
| public JavaFileManager. | getLocationForModule(JavaFileManager.
Overrides default javax. Gets a location for a named module within a location, which may be either a module-oriented location or an output location. |
| public JavaFileManager. | getLocationForModule(JavaFileManager.
Overrides default javax. Gets a location for the module containing a specific file to be found within a location, which may be either a module-oriented location or an output location. |
| public static String | Returns: a string to include in a compiler diagnostican IOException e)Get a detail message from an IOException. |
| private Path | |
| public static String | Returns: a relative URIa relative file name file)Converts a relative file name to a relative URI. |
| public <S> ServiceLoader | getServiceLoader(JavaFileManager.
Overrides default javax. Get a service loader for a specific service class from a given location. |
| private Path | |
| public boolean | handleOption(Option option, String value)
Overrides com. Common back end for OptionHelper handleFileManagerOption. |
| protected boolean | |
| public boolean | hasLocation(JavaFileManager.
Implements javax. Determines if a location is known to this file manager. |
| private Map | |
| public String | inferBinaryName(JavaFileManager.
Implements javax. Infers a binary name of a file object based on a package-oriented location. |
| public String | inferModuleName(JavaFileManager.
Overrides default javax. Infer the name of the module from its location, as returned by
|
| protected static boolean | |
| protected static boolean | |
| public boolean | isSameFile(FileObject a, FileObject b)
Implements javax. Compares two file objects and return true if they represent the same canonical file, zip file entry, or entry in any file system based container. |
| public boolean | |
| private boolean | isValidFile(String s, Set<JavaFileObject.
container is a directory, a zip file, or a non-existent path. |
| private static boolean | |
| public Iterable | list(JavaFileManager.
Implements javax. Lists all file objects matching the given criteria in the given package-oriented location. |
| public Iterable | listLocationsForModules(JavaFileManager.
Overrides default javax. Lists the locations for all the modules in a module-oriented location or an output location. |
| private List | pathsAndContainers(JavaFileManager.
|
| private List | pathsAndContainers(JavaFileManager.
For each path of the location, compute the
corresponding |
| public static void | |
| private static void | |
| public void | setContext(Context context)
Overrides com. Set the context for JavacFileManager. |
| public void | setLocation(JavaFileManager.
Implements javax. Associates the given search path with the given location. |
| public void | setLocationForModule(JavaFileManager.
Overrides default javax. Associates the given search path with the given module and location, which must be a module-oriented or output location. |
| public void | setLocationFromPaths(JavaFileManager.
Overrides default javax. Associates the given search path with the given location. |
| public void | setPathFactory(StandardJavaFileManager.
Overrides default javax. Specify a factory that can be used to generate a path from a string, or series of strings. |
| public void | setSymbolFileEnabled(boolean b)
Set whether or not to use ct.sym as an alternate to the current runtime. |
| public static void | |
| public static char[] | |
| private static void | |
| private static void |