Class ForwardingStandardJavaFileManager
java.lang.Object
javax.tools.ForwardingJavaFileManager<StandardJavaFileManager>
com.google.testing.compile.ForwardingStandardJavaFileManager
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, JavaFileManager, OptionChecker, StandardJavaFileManager
public class ForwardingStandardJavaFileManager
extends ForwardingJavaFileManager<StandardJavaFileManager>
implements StandardJavaFileManager
Forwards calls to a given
StandardJavaFileManager. Subclasses of this class might
override some of these methods and might also provide additional fields and methods.-
Nested Class Summary
Nested classes/interfaces inherited from interface JavaFileManager
JavaFileManager.LocationNested classes/interfaces inherited from interface StandardJavaFileManager
StandardJavaFileManager.PathFactory -
Field Summary
Fields inherited from class ForwardingJavaFileManager
fileManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForwardingStandardJavaFileManager(StandardJavaFileManager fileManager) Creates a new instance of ForwardingStandardJavaFileManager. -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends JavaFileObject> getJavaFileObjects(File... files) Iterable<? extends JavaFileObject> getJavaFileObjects(String... names) Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(Iterable<? extends File> files) Iterable<? extends JavaFileObject> getLocation(JavaFileManager.Location location) voidsetLocation(JavaFileManager.Location location, Iterable<? extends File> path) voidsetLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> searchpath) Methods inherited from class ForwardingJavaFileManager
close, contains, flush, getClassLoader, getFileForInput, getFileForOutput, getFileForOutputForOriginatingFiles, getJavaFileForInput, getJavaFileForOutput, getJavaFileForOutputForOriginatingFiles, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, hasLocation, inferBinaryName, inferModuleName, isSameFile, isSupportedOption, list, listLocationsForModulesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JavaFileManager
close, contains, flush, getClassLoader, getFileForInput, getFileForOutput, getFileForOutputForOriginatingFiles, getJavaFileForInput, getJavaFileForOutput, getJavaFileForOutputForOriginatingFiles, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, hasLocation, inferBinaryName, inferModuleName, list, listLocationsForModulesMethods inherited from interface OptionChecker
isSupportedOptionMethods inherited from interface StandardJavaFileManager
asPath, getJavaFileObjects, getJavaFileObjectsFromPaths, getJavaFileObjectsFromPaths, getLocationAsPaths, isSameFile, setLocationForModule, setPathFactory
-
Constructor Details
-
ForwardingStandardJavaFileManager
Creates a new instance of ForwardingStandardJavaFileManager.- Parameters:
fileManager- delegate to this file manager
-
-
Method Details
-
getJavaFileObjectsFromFiles
public Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(Iterable<? extends File> files) - Specified by:
getJavaFileObjectsFromFilesin interfaceStandardJavaFileManager
-
getJavaFileObjects
- Specified by:
getJavaFileObjectsin interfaceStandardJavaFileManager
-
getJavaFileObjects
- Specified by:
getJavaFileObjectsin interfaceStandardJavaFileManager
-
getJavaFileObjectsFromStrings
- Specified by:
getJavaFileObjectsFromStringsin interfaceStandardJavaFileManager
-
setLocation
public void setLocation(JavaFileManager.Location location, Iterable<? extends File> path) throws IOException - Specified by:
setLocationin interfaceStandardJavaFileManager- Throws:
IOException
-
getLocation
- Specified by:
getLocationin interfaceStandardJavaFileManager
-
setLocationFromPaths
public void setLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> searchpath) throws IOException - Specified by:
setLocationFromPathsin interfaceStandardJavaFileManager- Throws:
IOException
-