Uses of Interface
javax.tools.JavaFileObject
Package
Description
Provides interfaces to represent documentation comments as abstract syntax
trees (AST).
Provides interfaces to represent source code as abstract syntax
trees (AST).
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.
-
Uses of JavaFileObject in com.sun.source.doctree
Modifier and TypeMethodDescriptionErroneousTree.getDiagnostic()
Returns a diagnostic object giving details about the reason the body text is in error. -
Uses of JavaFileObject in com.sun.source.tree
Modifier and TypeMethodDescriptionCompilationUnitTree.getSourceFile()
Returns the file object containing the source for this compilation unit. -
Uses of JavaFileObject in com.sun.source.util
Modifier and TypeMethodDescriptionTaskEvent.getSourceFile()
Returns the source file for this event.Modifier and TypeMethodDescriptionabstract Iterable<? extends JavaFileObject>
JavacTask.generate()
Generates code.Modifier and TypeMethodDescriptionDocTreeFactory.newErroneousTree(String text, Diagnostic<JavaFileObject> diag)
Creates a newErroneousTree
object, to represent some unparseable input.ModifierConstructorDescriptionTaskEvent(TaskEvent.Kind kind, JavaFileObject sourceFile)
Creates a task event for a given kind and source file. -
Uses of JavaFileObject in javax.annotation.processing
Modifier and TypeMethodDescriptionFiler.createClassFile(CharSequence name, Element... originatingElements)
Creates a new class file, and returns an object to allow writing to it.Filer.createSourceFile(CharSequence name, Element... originatingElements)
Creates a new source file and returns an object to allow writing to it. -
Uses of JavaFileObject in javax.tools
Modifier and TypeClassDescriptionclass
ForwardingJavaFileObject<F extends JavaFileObject>
Forwards calls to a given file object.Modifier and TypeClassDescriptionclass
ForwardingJavaFileObject<F extends JavaFileObject>
Forwards calls to a given file object.class
Provides simple implementations for most methods in JavaFileObject.Modifier and TypeMethodDescriptionForwardingJavaFileManager.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.Modifier and TypeMethodDescriptionIterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjects(File... files)
Returns file objects representing the given files.Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjects(String... names)
Returns file objects representing the given file names.default Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjects(Path... paths)
Returns file objects representing the given paths.Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjectsFromFiles(Iterable<? extends File> files)
Returns file objects representing the given files.default Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjectsFromPaths(Iterable<? extends Path> paths)
Deprecated.default Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjectsFromPaths(Collection<? extends Path> paths)
Returns file objects representing the given paths.Iterable<? extends JavaFileObject>
StandardJavaFileManager.getJavaFileObjectsFromStrings(Iterable<String> names)
Returns file objects representing the given file names.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.Modifier and TypeMethodDescriptionForwardingJavaFileManager.getLocationForModule(JavaFileManager.Location location, JavaFileObject fo)
default JavaFileManager.Location
JavaFileManager.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.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.Modifier and TypeMethodDescriptionDocumentationTool.getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
Returns a new instance of the standard file manager implementation for this tool.JavaCompiler.getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
Returns a new instance of the standard file manager implementation for this tool.DocumentationTool.getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits)
Creates a future for a documentation task with the given components and arguments.JavaCompiler.getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)
Creates a future for a compilation task with the given components and arguments.
StandardJavaFileManager.getJavaFileObjectsFromPaths(Collection)
instead, to prevent the possibility of accidentally calling the method with a singlePath
as such an argument.