Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Interface
javax.tools.JavaFileObject

Packages that use JavaFileObject
Package Description
javax.annotation.processing Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment. 
javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers. 
 

Uses of JavaFileObject in javax.annotation.processing
 

Methods in javax.annotation.processing that return JavaFileObject
Modifier and Type Method and Description
 JavaFileObject Filer.createClassFile(CharSequence name, Element... originatingElements)
          Creates a new class file, and returns an object to allow writing to it.
 JavaFileObject 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
 

Classes in javax.tools with type parameters of type JavaFileObject
Modifier and Type Class and Description
 class ForwardingJavaFileObject<F extends JavaFileObject>
          Forwards calls to a given file object.
 

Classes in javax.tools that implement JavaFileObject
Modifier and Type Class and Description
 class ForwardingJavaFileObject<F extends JavaFileObject>
          Forwards calls to a given file object.
 class SimpleJavaFileObject
          Provides simple implementations for most methods in JavaFileObject.
 

Methods in javax.tools that return JavaFileObject
Modifier and Type Method and Description
 JavaFileObject JavaFileManager.getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind)
          Gets a file object for input representing the specified class of the specified kind in the given location.
 JavaFileObject ForwardingJavaFileManager.getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind)
           
 JavaFileObject JavaFileManager.getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling)
          Gets a file object for output representing the specified class of the specified kind in the given location.
 JavaFileObject ForwardingJavaFileManager.getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling)
           
 

Methods in javax.tools that return types with arguments of type JavaFileObject
Modifier and Type Method and Description
 Iterable<? extends JavaFileObject> StandardJavaFileManager.getJavaFileObjects(File... files)
          Gets file objects representing the given files.
 Iterable<? extends JavaFileObject> StandardJavaFileManager.getJavaFileObjects(String... names)
          Gets file objects representing the given file names.
 Iterable<? extends JavaFileObject> StandardJavaFileManager.getJavaFileObjectsFromFiles(Iterable<? extends File> files)
          Gets file objects representing the given files.
 Iterable<? extends JavaFileObject> StandardJavaFileManager.getJavaFileObjectsFromStrings(Iterable<String> names)
          Gets file objects representing the given file names.
 Iterable<JavaFileObject> JavaFileManager.list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse)
          Lists all file objects matching the given criteria in the given location.
 Iterable<JavaFileObject> ForwardingJavaFileManager.list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse)
           
 

Methods in javax.tools with parameters of type JavaFileObject
Modifier and Type Method and Description
 String JavaFileManager.inferBinaryName(JavaFileManager.Location location, JavaFileObject file)
          Infers a binary name of a file object based on a location.
 String ForwardingJavaFileManager.inferBinaryName(JavaFileManager.Location location, JavaFileObject file)
           
 

Method parameters in javax.tools with type arguments of type JavaFileObject
Modifier and Type Method and Description
 StandardJavaFileManager JavaCompiler.getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
          Gets a new instance of the standard file manager implementation for this tool.
 JavaCompiler.CompilationTask 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.
 JavaCompiler.CompilationTask 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.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.