public class MemoryBasedJavaFileManager extends Object implements JavaFileManager
JavaFileManager.Location| Constructor and Description |
|---|
MemoryBasedJavaFileManager() |
public int isSupportedOption(String option)
isSupportedOption in interface OptionCheckerpublic ClassLoader getClassLoader(JavaFileManager.Location location)
getClassLoader in interface JavaFileManagerpublic Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException
list in interface JavaFileManagerIOExceptionpublic boolean hasLocation(JavaFileManager.Location location)
hasLocation in interface JavaFileManagerpublic String inferBinaryName(JavaFileManager.Location location, JavaFileObject file)
inferBinaryName in interface JavaFileManagerpublic boolean isSameFile(FileObject a, FileObject b)
isSameFile in interface JavaFileManagerpublic boolean handleOption(String current, Iterator<String> remaining)
handleOption in interface JavaFileManagerpublic JavaFileObject getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) throws IOException
getJavaFileForInput in interface JavaFileManagerIOExceptionpublic JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException
getJavaFileForOutput in interface JavaFileManagerIOExceptionpublic FileObject getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) throws IOException
getFileForInput in interface JavaFileManagerIOExceptionpublic FileObject getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) throws IOException
getFileForOutput in interface JavaFileManagerIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in interface JavaFileManagerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface JavaFileManagerIOExceptionpublic List<CompiledClassDefinition> getCompiledClasses()
public List<CompilationMessage> addAndResolveDependencies(String[] dependencies)
public String inferModuleName(JavaFileManager.Location location) throws IOException
IOExceptionpublic Iterable<Set<JavaFileManager.Location>> listLocationsForModules(JavaFileManager.Location location) throws IOException
IOExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.