Class EclipseFileManager
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.tool.EclipseFileManager
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,JavaFileManager,OptionChecker,StandardJavaFileManager
- Direct Known Subclasses:
EclipseFileManager
Implementation of the Standard Java File Manager
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
JavaFileManager.LocationNested classes/interfaces inherited from interface javax.tools.StandardJavaFileManager
StandardJavaFileManager.PathFactory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNewEntry(ArrayList paths, String currentClasspathName, ArrayList currentRuleSpecs, String customEncoding, String destPath, boolean isSourceOnly, boolean rejectDestinationPathOnJars) asPath(FileObject file) voidclose()booleancontains(JavaFileManager.Location location, FileObject fo) voidflush()getClassLoader(JavaFileManager.Location location) getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) Iterable<? extends JavaFileObject> getJavaFileObjects(File... files) Iterable<? extends JavaFileObject> getJavaFileObjects(String... names) Iterable<? extends JavaFileObject> getJavaFileObjects(Path... paths) Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(Iterable<? extends File> files) Iterable<? extends JavaFileObject> getJavaFileObjectsFromPaths(Iterable<? extends Path> paths) Iterable<? extends JavaFileObject> getLocation(JavaFileManager.Location location) getLocationAsPaths(JavaFileManager.Location location) getLocationForModule(JavaFileManager.Location location, String moduleName) getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) <S> ServiceLoader<S> getServiceLoader(JavaFileManager.Location location, Class<S> service) booleanhandleOption(String current, Iterator<String> remaining) booleanhasLocation(JavaFileManager.Location location) inferBinaryName(JavaFileManager.Location location, JavaFileObject file) inferModuleName(JavaFileManager.Location location) protected voidinitialize(File javahome) booleanisSameFile(FileObject fileObject1, FileObject fileObject2) intisSupportedOption(String option) list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) voidprocessPathEntries(int defaultSize, ArrayList paths, String currentPath, String customEncoding, boolean isSourceOnly, boolean rejectDestinationPathOnJars) voidvoidsetLocation(JavaFileManager.Location location, Iterable<? extends File> files) voidsetLocationForModule(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths) voidsetLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> paths) protected voidvalidateModuleLocation(JavaFileManager.Location location, String modName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.tools.JavaFileManager
getFileForOutputForOriginatingFiles, getJavaFileForOutputForOriginatingFilesMethods inherited from interface javax.tools.StandardJavaFileManager
getJavaFileObjectsFromPaths, setPathFactory
-
Field Details
-
locationHandler
-
bundle
-
-
Constructor Details
-
EclipseFileManager
-
-
Method Details
-
initialize
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceJavaFileManager- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceJavaFileManager- Throws:
IOException
-
getClassLoader
- Specified by:
getClassLoaderin interfaceJavaFileManager
-
getFileForInput
public FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException - Specified by:
getFileForInputin interfaceJavaFileManager- Throws:
IOException
-
getFileForOutput
public FileObject getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) throws IOException - Specified by:
getFileForOutputin interfaceJavaFileManager- Throws:
IOException
-
getJavaFileForInput
public JavaFileObject getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) throws IOException - Specified by:
getJavaFileForInputin interfaceJavaFileManager- Throws:
IOException
-
getJavaFileForOutput
public JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException - Specified by:
getJavaFileForOutputin interfaceJavaFileManager- Throws:
IOException
-
getJavaFileObjects
- Specified by:
getJavaFileObjectsin interfaceStandardJavaFileManager
-
getJavaFileObjects
- Specified by:
getJavaFileObjectsin interfaceStandardJavaFileManager
-
getJavaFileObjectsFromFiles
public Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(Iterable<? extends File> files) - Specified by:
getJavaFileObjectsFromFilesin interfaceStandardJavaFileManager
-
getJavaFileObjectsFromStrings
- Specified by:
getJavaFileObjectsFromStringsin interfaceStandardJavaFileManager
-
getKind
-
getLocation
- Specified by:
getLocationin interfaceStandardJavaFileManager
-
handleOption
- Specified by:
handleOptionin interfaceJavaFileManager
-
hasLocation
- Specified by:
hasLocationin interfaceJavaFileManager
-
inferBinaryName
- Specified by:
inferBinaryNamein interfaceJavaFileManager
-
isSameFile
- Specified by:
isSameFilein interfaceJavaFileManager- Specified by:
isSameFilein interfaceStandardJavaFileManager
-
isSupportedOption
- Specified by:
isSupportedOptionin interfaceOptionChecker
-
list
public Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException - Specified by:
listin interfaceJavaFileManager- Throws:
IOException
-
setLocation
public void setLocation(JavaFileManager.Location location, Iterable<? extends File> files) throws IOException - Specified by:
setLocationin interfaceStandardJavaFileManager- Throws:
IOException
-
setLocale
-
processPathEntries
-
addNewEntry
-
getFiles
-
getPaths
-
validateModuleLocation
-
getJavaFileObjects
- Specified by:
getJavaFileObjectsin interfaceStandardJavaFileManager
-
getJavaFileObjectsFromPaths
public Iterable<? extends JavaFileObject> getJavaFileObjectsFromPaths(Iterable<? extends Path> paths) - Specified by:
getJavaFileObjectsFromPathsin interfaceStandardJavaFileManager
-
getLocationAsPaths
- Specified by:
getLocationAsPathsin interfaceStandardJavaFileManager
-
setLocationFromPaths
public void setLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> paths) throws IOException - Specified by:
setLocationFromPathsin interfaceStandardJavaFileManager- Throws:
IOException
-
contains
- Specified by:
containsin interfaceJavaFileManager- Throws:
IOException
-
getLocationForModule
public JavaFileManager.Location getLocationForModule(JavaFileManager.Location location, String moduleName) throws IOException - Specified by:
getLocationForModulein interfaceJavaFileManager- Throws:
IOException
-
getLocationForModule
public JavaFileManager.Location getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) - Specified by:
getLocationForModulein interfaceJavaFileManager
-
getServiceLoader
public <S> ServiceLoader<S> getServiceLoader(JavaFileManager.Location location, Class<S> service) throws IOException - Specified by:
getServiceLoaderin interfaceJavaFileManager- Throws:
IOException
-
inferModuleName
- Specified by:
inferModuleNamein interfaceJavaFileManager- Throws:
IOException
-
listLocationsForModules
public Iterable<Set<JavaFileManager.Location>> listLocationsForModules(JavaFileManager.Location location) - Specified by:
listLocationsForModulesin interfaceJavaFileManager
-
asPath
- Specified by:
asPathin interfaceStandardJavaFileManager
-
setLocationForModule
public void setLocationForModule(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths) throws IOException - Specified by:
setLocationForModulein interfaceStandardJavaFileManager- Throws:
IOException
-