| java.lang.Object com.sun.tools.javac.util.JavacFileManager
JavacFileManager | public class JavacFileManager implements StandardJavaFileManager(Code) | | This class provides access to the source, class and other files
used by the compiler and related tools.
|
Inner Class :public interface Archive | |
Inner Class :public class ZipArchive implements Archive | |
Inner Class :public class SymbolArchive extends ZipArchive | |
Inner Class :public class MissingArchive implements Archive | |
Inner Class :public class ZipFileIndexFileObject extends BaseFileObject | |
Inner Class :public class ZipFileIndexArchive implements Archive | |
Constructor Summary | |
public | JavacFileManager(Context context, boolean register, Charset charset) Create a JavacFileManager using a given context, optionally registering
it as the JavaFileManager for that context. |
Method Summary | |
public void | close() Close the JavaFileManager, releasing resources. | public void | flush() Flush any output resources. | public ClassLoader | getClassLoader(Location location) | protected String | getEncodingName() | public JavaFileObject | getFileForInput(String name) | public FileObject | getFileForInput(Location location, String packageName, String relativeName) | public JavaFileObject | getFileForOutput(String classname, JavaFileObject.Kind kind, JavaFileObject sibling) | public FileObject | getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) | public JavaFileObject | getJavaFileForInput(Location location, String className, JavaFileObject.Kind kind) | public JavaFileObject | getJavaFileForOutput(Location location, String className, JavaFileObject.Kind kind, FileObject sibling) | public Iterable<? extends JavaFileObject> | getJavaFileObjects(String... names) | public Iterable<? extends JavaFileObject> | getJavaFileObjects(File... files) | public Iterable<? extends JavaFileObject> | getJavaFileObjectsFromFiles(Iterable<? extends File> files) | public Iterable<? extends JavaFileObject> | getJavaFileObjectsFromStrings(Iterable<String> names) | protected static String | getJavacBaseFileName(FileObject file) | protected static String | getJavacFileName(FileObject file) | protected JavaFileObject.Kind | getKind(String extension) | public Iterable<? extends File> | getLocation(Location location) | public JavaFileObject | getRegularFile(File file) | public static String | getRelativeName(File file) Converts a relative file name to a relative URI. | protected Source | getSource() | public boolean | handleOption(String current, Iterator<String> remaining) | public boolean | hasLocation(Location location) | public String | inferBinaryName(Location location, JavaFileObject file) | protected static boolean | isRelativeUri(URI uri) Enforces the specification of a "relative" URI as used in
. | public boolean | isSameFile(FileObject a, FileObject b) | public int | isSupportedOption(String option) | public Iterable<JavaFileObject> | list(Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) | protected Archive | openArchive(File zipFileName) Open a new zip file directory. | public static void | preRegister(Context context) Register a Context.Factory to create a JavacFileManager. | public void | setContext(Context context) Set the context for JavacFileManager. | public void | setLocation(Location location, Iterable<? extends File> path) | public static void | testName(String name, boolean isValidPackageName, boolean isValidClassName) | public static char[] | toArray(CharBuffer buffer) |
archives | Map<File, Archive> archives(Code) | | A directory of zip files already opened.
|
charset | protected Charset charset(Code) | | User provided charset (through javax.tools).
|
ignoreSymbolFile | protected boolean ignoreSymbolFile(Code) | | |
log | protected Log log(Code) | | The log to be used for error reporting.
|
mmappedIO | protected boolean mmappedIO(Code) | | |
useZipFileIndex | boolean useZipFileIndex(Code) | | |
JavacFileManager | public JavacFileManager(Context context, boolean register, Charset charset)(Code) | | Create a JavacFileManager using a given context, optionally registering
it as the JavaFileManager for that context.
|
close | public void close()(Code) | | Close the JavaFileManager, releasing resources.
|
flush | public void flush()(Code) | | Flush any output resources.
|
getRelativeName | public static String getRelativeName(File file)(Code) | | Converts a relative file name to a relative URI. This is
different from File.toURI as this method does not canonicalize
the file before creating the URI. Furthermore, no schema is
used.
Parameters: file - a relative file name a relative URI throws: IllegalArgumentException - if the file name is notrelative according to the definition given in javax.tools.JavaFileManager.getFileForInput |
hasLocation | public boolean hasLocation(Location location)(Code) | | |
isRelativeUri | protected static boolean isRelativeUri(URI uri)(Code) | | Enforces the specification of a "relative" URI as used in
. This method must follow the rules defined in
that method, do not make any changes without consulting the
specification.
|
isSupportedOption | public int isSupportedOption(String option)(Code) | | |
openArchive | protected Archive openArchive(File zipFileName) throws IOException(Code) | | Open a new zip file directory.
|
preRegister | public static void preRegister(Context context)(Code) | | Register a Context.Factory to create a JavacFileManager.
|
setContext | public void setContext(Context context)(Code) | | Set the context for JavacFileManager.
|
testName | public static void testName(String name, boolean isValidPackageName, boolean isValidClassName)(Code) | | |
toArray | public static char[] toArray(CharBuffer buffer)(Code) | | |
|
|