Uses of Interface
javax.tools.FileObject
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
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.
The Doclet API provides an environment which, in conjunction with
the Language Model API and Compiler Tree API, allows clients
to inspect the source-level structures of programs and
libraries, including API comments embedded in the source.
-
Uses of FileObject in com.sun.source.util
Modifier and TypeMethodDescriptionabstract DocCommentTree
DocTrees.getDocCommentTree
(FileObject fileObject) Returns the doc comment tree of the given file, which must be of one of the supported file types.abstract DocTreePath
DocTrees.getDocTreePath
(FileObject fileObject, PackageElement packageElement) Returns a doc tree path containing the doc comment tree of the given file, which must be of one of the supported file types. -
Uses of FileObject in javax.annotation.processing
Modifier and TypeMethodDescriptionFiler.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 FileObject in javax.tools
Modifier and TypeClassDescriptionclass
ForwardingFileObject<F extends FileObject>
Forwards calls to a given file object.Modifier and TypeInterfaceDescriptioninterface
File abstraction for tools operating on Java programming language source and class files.Modifier and TypeClassDescriptionclass
ForwardingFileObject<F extends FileObject>
Forwards calls to a given file object.class
ForwardingJavaFileObject<F extends JavaFileObject>
Forwards calls to a given file object.class
Provides simple implementations for most methods in JavaFileObject.Modifier and TypeFieldDescriptionprotected final F
ForwardingFileObject.fileObject
The file object to which all methods are delegated.Modifier and TypeMethodDescriptionForwardingJavaFileManager.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 FileObject
JavaFileManager.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.Modifier and TypeMethodDescriptiondefault Path
StandardJavaFileManager.asPath
(FileObject file) Returns the path, if any, underlying this file object (optional operation).boolean
ForwardingJavaFileManager.contains
(JavaFileManager.Location location, FileObject fo) default boolean
JavaFileManager.contains
(JavaFileManager.Location location, FileObject fo) Determines whether or not a given file object is "contained in" a specified 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 FileObject
JavaFileManager.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.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 JavaFileObject
JavaFileManager.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.boolean
ForwardingJavaFileManager.isSameFile
(FileObject a, FileObject b) boolean
JavaFileManager.isSameFile
(FileObject a, FileObject b) Compares two file objects and returns true if they represent the same underlying object.boolean
StandardJavaFileManager.isSameFile
(FileObject a, FileObject b) Compares two file objects and return true if they represent the same canonical file, zip file entry, or entry in any file system based container. -
Uses of FileObject in jdk.javadoc.doclet
Modifier and TypeMethodDescriptiondefault void
Reporter.print
(Diagnostic.Kind kind, FileObject file, int start, int pos, int end, String message) Prints a diagnostic message related to a position within a range of characters in a file.