Uses of Interface
javax.tools.JavaFileManager.Location
Packages that use JavaFileManager.Location
包
Description
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
-
Uses of JavaFileManager.Location in javax.annotation.processing
Methods in javax.annotation.processing with parameters of type JavaFileManager.Location修饰符和类方法DescriptionFiler.createResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements) Creates a new auxiliary resource file for writing and returns a file object for it.Filer.getResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) Returns an object for reading an existing resource. -
Uses of JavaFileManager.Location in javax.tools
Classes in javax.tools that implement JavaFileManager.Location修饰符和类ClassDescriptionstatic enumLocations specific toDocumentationTool.enumStandard locations of file objects.Methods in javax.tools that return JavaFileManager.Location修饰符和类方法DescriptionForwardingJavaFileManager.getLocationForModule(JavaFileManager.Location location, String moduleName) ForwardingJavaFileManager.getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) default JavaFileManager.LocationJavaFileManager.getLocationForModule(JavaFileManager.Location location, String moduleName) Gets a location for a named module within a location, which may be either a module-oriented location or an output location.default JavaFileManager.LocationJavaFileManager.getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) 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.static JavaFileManager.LocationStandardLocation.locationFor(String name) Returns a location object with the given name.Methods in javax.tools that return types with arguments of type JavaFileManager.Location修饰符和类方法DescriptionForwardingJavaFileManager.listLocationsForModules(JavaFileManager.Location location) default Iterable<Set<JavaFileManager.Location>> JavaFileManager.listLocationsForModules(JavaFileManager.Location location) Lists the locations for all the modules in a module-oriented location or an output location.Methods in javax.tools with parameters of type JavaFileManager.Location修饰符和类方法DescriptionbooleanForwardingJavaFileManager.contains(JavaFileManager.Location location, FileObject fo) default booleanJavaFileManager.contains(JavaFileManager.Location location, FileObject fo) Determines whether or not a given file object is "contained in" a specified location.ForwardingJavaFileManager.getClassLoader(JavaFileManager.Location location) JavaFileManager.getClassLoader(JavaFileManager.Location location) Returns a class loader for loading plug-ins from the given package-oriented location.ForwardingJavaFileManager.getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) JavaFileManager.getFileForInput(JavaFileManager.Location location, String packageName, String relativeName) Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location.ForwardingJavaFileManager.getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) JavaFileManager.getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) Returns a file object for output representing the specified relative name in the specified package in the given location.ForwardingJavaFileManager.getFileForOutputForOriginatingFiles(JavaFileManager.Location location, String packageName, String relativeName, FileObject... originatingFiles) Returns a file object for output representing the specified relative name in the specified package in the given location.default FileObjectJavaFileManager.getFileForOutputForOriginatingFiles(JavaFileManager.Location location, String packageName, String relativeName, FileObject... originatingFiles) Returns a file object for output representing the specified relative name in the specified package in the given location.ForwardingJavaFileManager.getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) JavaFileManager.getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) Returns a file object for input representing the specified class of the specified kind in the given package-oriented location.ForwardingJavaFileManager.getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) JavaFileManager.getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.ForwardingJavaFileManager.getJavaFileForOutputForOriginatingFiles(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject... originatingFiles) Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.default JavaFileObjectJavaFileManager.getJavaFileForOutputForOriginatingFiles(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject... originatingFiles) Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.StandardJavaFileManager.getLocation(JavaFileManager.Location location) Returns the search path associated with the given location.StandardJavaFileManager.getLocationAsPaths(JavaFileManager.Location location) Returns the search path associated with the given location.ForwardingJavaFileManager.getLocationForModule(JavaFileManager.Location location, String moduleName) ForwardingJavaFileManager.getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) default JavaFileManager.LocationJavaFileManager.getLocationForModule(JavaFileManager.Location location, String moduleName) Gets a location for a named module within a location, which may be either a module-oriented location or an output location.default JavaFileManager.LocationJavaFileManager.getLocationForModule(JavaFileManager.Location location, JavaFileObject fo) 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.<S> ServiceLoader<S> ForwardingJavaFileManager.getServiceLoader(JavaFileManager.Location location, Class<S> service) default <S> ServiceLoader<S> JavaFileManager.getServiceLoader(JavaFileManager.Location location, Class<S> service) Get a service loader for a specific service class from a given location.booleanForwardingJavaFileManager.hasLocation(JavaFileManager.Location location) booleanJavaFileManager.hasLocation(JavaFileManager.Location location) Determines if a location is known to this file manager.ForwardingJavaFileManager.inferBinaryName(JavaFileManager.Location location, JavaFileObject file) JavaFileManager.inferBinaryName(JavaFileManager.Location location, JavaFileObject file) Infers a binary name of a file object based on a package-oriented location.ForwardingJavaFileManager.inferModuleName(JavaFileManager.Location location) default StringJavaFileManager.inferModuleName(JavaFileManager.Location location) Infer the name of the module from its location, as returned bygetLocationForModuleorlistModuleLocations.ForwardingJavaFileManager.list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) JavaFileManager.list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) Lists all file objects matching the given criteria in the given package-oriented location.ForwardingJavaFileManager.listLocationsForModules(JavaFileManager.Location location) default Iterable<Set<JavaFileManager.Location>> JavaFileManager.listLocationsForModules(JavaFileManager.Location location) Lists the locations for all the modules in a module-oriented location or an output location.voidStandardJavaFileManager.setLocation(JavaFileManager.Location location, Iterable<? extends File> files) Associates the given search path with the given location.default voidStandardJavaFileManager.setLocationForModule(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths) Associates the given search path with the given module and location, which must be a module-oriented or output location.default voidStandardJavaFileManager.setLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> paths) Associates the given search path with the given location.