Uses of Interface
javax.tools.FileObject
Packages that use 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
Methods in com.sun.source.util with parameters of type FileObjectModifier and TypeMethodDescriptionabstract DocCommentTreeDocTrees.getDocCommentTree(FileObject fileObject) Returns the doc comment tree of the given file.abstract DocTreePathDocTrees.getDocTreePath(FileObject fileObject, PackageElement packageElement) Returns a doc tree path containing the doc comment tree of the given file. -
Uses of FileObject in javax.annotation.processing
Methods in javax.annotation.processing that return FileObjectModifier 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
Classes in javax.tools with type parameters of type FileObjectModifier and TypeClassDescriptionclassForwardingFileObject<F extends FileObject>Forwards calls to a given file object.Subinterfaces of FileObject in javax.toolsModifier and TypeInterfaceDescriptioninterfaceFile abstraction for tools operating on Java programming language source and class files.Classes in javax.tools that implement FileObjectModifier and TypeClassDescriptionclassForwardingFileObject<F extends FileObject>Forwards calls to a given file object.classForwardingJavaFileObject<F extends JavaFileObject>Forwards calls to a given file object.classProvides simple implementations for most methods in JavaFileObject.Fields in javax.tools declared as FileObjectModifier and TypeFieldDescriptionprotected final FForwardingFileObject.fileObjectThe file object which all methods are delegated to.Methods in javax.tools that return FileObjectModifier 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.Methods in javax.tools with parameters of type FileObjectModifier and TypeMethodDescriptiondefault PathStandardJavaFileManager.asPath(FileObject file) Returns the path, if any, underlying this file object (optional operation).booleanForwardingJavaFileManager.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.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.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.booleanForwardingJavaFileManager.isSameFile(FileObject a, FileObject b) booleanJavaFileManager.isSameFile(FileObject a, FileObject b) Compares two file objects and return true if they represent the same underlying object.booleanStandardJavaFileManager.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
Methods in jdk.javadoc.doclet with parameters of type FileObjectModifier and TypeMethodDescriptiondefault voidReporter.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.