javax.tools
24 classes of the module java.compiler.
Load them with:
using {
"javax.tools"
}
Diagnostic#
interface · javax.tools.Diagnostic
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NOPOS | long | constant · static | o.NOPOS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCode | getCode() | String getCode() |
getColumnNumber | getColumnNumber() | long getColumnNumber() |
getEndPosition | getEndPosition() | long getEndPosition() |
getKind | getKind() | Kind getKind() |
getLineNumber | getLineNumber() | long getLineNumber() |
getMessage | getMessage(locale) | String getMessage(Locale locale) |
getPosition | getPosition() | long getPosition() |
getSource | getSource() | Object getSource() |
getStartPosition | getStartPosition() | long getStartPosition() |
DiagnosticCollector#
class final · extends Object · javax.tools.DiagnosticCollector
Implements: DiagnosticListener
Constructors
new DiagnosticCollector() |
Ring: new DiagnosticCollector(args) uses the constructor with the fewest parameters (at least one); new DiagnosticCollector makes the object with the constructor without parameters; the others: (new DiagnosticCollector).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDiagnostics | getDiagnostics() | List getDiagnostics() |
report | report(diagnostic) | void report(Diagnostic diagnostic) |
The methods and fields of Object are inherited.
DiagnosticKind#
enum · extends Enum · javax.tools.Diagnostic$Kind
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ERROR | Kind | constant · static | o.ERROR |
WARNING | Kind | constant · static | o.WARNING |
MANDATORY_WARNING | Kind | constant · static | o.MANDATORY_WARNING |
NOTE | Kind | constant · static | o.NOTE |
OTHER | Kind | constant · static | o.OTHER |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Kind valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Kind[] values() |
The methods and fields of Enum are inherited.
DiagnosticListener#
interface · javax.tools.DiagnosticListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
report | report(diagnostic) | void report(Diagnostic diagnostic) |
DocumentationTool#
interface · javax.tools.DocumentationTool
Extends: Tool, OptionChecker
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getSourceVersions | getSourceVersions() | Set getSourceVersions() |
getStandardFileManager | getStandardFileManager(diagnosticListener,locale,charset) | StandardJavaFileManager getStandardFileManager(DiagnosticListener diagnosticListener, Locale locale, Charset charset) |
getTask | getTask(out,fileManager,diagnosticListener,docletClass,options,compilationUnits) | DocumentationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener diagnosticListener, Class docletClass, Iterable options, Iterable compilationUnits) |
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
name | name() | String name() |
run | run(in,out,err,arguments) | int run(InputStream in, OutputStream out, OutputStream err, String[] arguments) |
DocumentationToolDocumentationTask#
interface · javax.tools.DocumentationTool$DocumentationTask
Extends: Callable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@call | @call() | Boolean call() |
addModules | addModules(moduleNames) | void addModules(Iterable moduleNames) |
setLocale | setLocale(locale) | void setLocale(Locale locale) |
DocumentationToolLocation#
enum · extends Enum · javax.tools.DocumentationTool$Location
Implements: JavaFileManagerLocation
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DOCUMENTATION_OUTPUT | Location | constant · static | o.DOCUMENTATION_OUTPUT |
DOCLET_PATH | Location | constant · static | o.DOCLET_PATH |
TAGLET_PATH | Location | constant · static | o.TAGLET_PATH |
SNIPPET_PATH | Location | constant · static | o.SNIPPET_PATH |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getName | getName() | String getName() |
isModuleOrientedLocation | isModuleOrientedLocation() | boolean isModuleOrientedLocation() |
isOutputLocation | isOutputLocation() | boolean isOutputLocation() |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Location valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Location[] values() |
The methods and fields of Enum are inherited.
FileObject#
interface · javax.tools.FileObject
Methods
| Method | Ring call | Java overloads |
|---|---|---|
delete | delete() | boolean delete() |
getCharContent | getCharContent(ignoreEncodingErrors) | CharSequence getCharContent(boolean ignoreEncodingErrors) |
getLastModified | getLastModified() | long getLastModified() |
getName | getName() | String getName() |
openInputStream | openInputStream() | InputStream openInputStream() |
openOutputStream | openOutputStream() | OutputStream openOutputStream() |
openReader | openReader(ignoreEncodingErrors) | Reader openReader(boolean ignoreEncodingErrors) |
openWriter | openWriter() | Writer openWriter() |
toUri | toUri() | URI toUri() |
ForwardingFileObject#
class · extends Object · javax.tools.ForwardingFileObject
Implements: FileObject
Methods
| Method | Ring call | Java overloads |
|---|---|---|
delete | delete() | boolean delete() |
getCharContent | getCharContent(ignoreEncodingErrors) | CharSequence getCharContent(boolean ignoreEncodingErrors) |
getLastModified | getLastModified() | long getLastModified() |
getName | getName() | String getName() |
openInputStream | openInputStream() | InputStream openInputStream() |
openOutputStream | openOutputStream() | OutputStream openOutputStream() |
openReader | openReader(ignoreEncodingErrors) | Reader openReader(boolean ignoreEncodingErrors) |
openWriter | openWriter() | Writer openWriter() |
toUri | toUri() | URI toUri() |
The methods and fields of Object are inherited.
ForwardingJavaFileManager#
class · extends Object · javax.tools.ForwardingJavaFileManager
Implements: JavaFileManager
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
contains | contains(location,fo) | boolean contains(Location location, FileObject fo) |
flush | flush() | void flush() |
getClassLoader | getClassLoader(location) | ClassLoader getClassLoader(Location location) |
getFileForInput | getFileForInput(location,packageName,relativeName) | FileObject getFileForInput(Location location, String packageName, String relativeName) |
getFileForOutput | getFileForOutput(location,packageName,relativeName,sibling) | FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) |
getFileForOutputForOriginatingFiles | getFileForOutputForOriginatingFiles(location,packageName,relativeName,originatingFiles) | FileObject getFileForOutputForOriginatingFiles(Location location, String packageName, String relativeName, FileObject[] originatingFiles) |
getJavaFileForInput | getJavaFileForInput(location,className,kind) | JavaFileObject getJavaFileForInput(Location location, String className, Kind kind) |
getJavaFileForOutput | getJavaFileForOutput(location,className,kind,sibling) | JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) |
getJavaFileForOutputForOriginatingFiles | getJavaFileForOutputForOriginatingFiles(location,className,kind,originatingFiles) | JavaFileObject getJavaFileForOutputForOriginatingFiles(Location location, String className, Kind kind, FileObject[] originatingFiles) |
getLocationForModule | getLocationForModule(location,moduleName) | Location getLocationForModule(Location location, String moduleName)Location getLocationForModule(Location location, JavaFileObject fo) |
getServiceLoader | getServiceLoader(location,service) | ServiceLoader getServiceLoader(Location location, Class service) |
handleOption | handleOption(current,remaining) | boolean handleOption(String current, Iterator remaining) |
hasLocation | hasLocation(location) | boolean hasLocation(Location location) |
inferBinaryName | inferBinaryName(location,file) | String inferBinaryName(Location location, JavaFileObject file) |
inferModuleName | inferModuleName(location) | String inferModuleName(Location location) |
isSameFile | isSameFile(a,b) | boolean isSameFile(FileObject a, FileObject b) |
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
list | list(location,packageName,kinds,recurse) | Iterable list(Location location, String packageName, Set kinds, boolean recurse) |
listLocationsForModules | listLocationsForModules(location) | Iterable listLocationsForModules(Location location) |
The methods and fields of Object are inherited.
ForwardingJavaFileObject#
class · extends ForwardingFileObject · javax.tools.ForwardingJavaFileObject
Implements: JavaFileObject
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAccessLevel | getAccessLevel() | Modifier getAccessLevel() |
getKind | getKind() | Kind getKind() |
getNestingKind | getNestingKind() | NestingKind getNestingKind() |
isNameCompatible | isNameCompatible(simpleName,kind) | boolean isNameCompatible(String simpleName, Kind kind) |
The methods and fields of ForwardingFileObject are inherited.
JavaCompiler#
interface · javax.tools.JavaCompiler
Extends: Tool, OptionChecker
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getSourceVersions | getSourceVersions() | Set getSourceVersions() |
getStandardFileManager | getStandardFileManager(diagnosticListener,locale,charset) | StandardJavaFileManager getStandardFileManager(DiagnosticListener diagnosticListener, Locale locale, Charset charset) |
getTask | getTask(out,fileManager,diagnosticListener,options,classes,compilationUnits) | CompilationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener diagnosticListener, Iterable options, Iterable classes, Iterable compilationUnits) |
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
name | name() | String name() |
run | run(in,out,err,arguments) | int run(InputStream in, OutputStream out, OutputStream err, String[] arguments) |
JavaCompilerCompilationTask#
interface · javax.tools.JavaCompiler$CompilationTask
Extends: Callable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@call | @call() | Boolean call() |
addModules | addModules(moduleNames) | void addModules(Iterable moduleNames) |
setLocale | setLocale(locale) | void setLocale(Locale locale) |
setProcessors | setProcessors(processors) | void setProcessors(Iterable processors) |
JavaFileManager#
interface · javax.tools.JavaFileManager
Extends: Closeable, Flushable, OptionChecker
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
contains | contains(location,fo) | boolean contains(Location location, FileObject fo) |
flush | flush() | void flush() |
getClassLoader | getClassLoader(location) | ClassLoader getClassLoader(Location location) |
getFileForInput | getFileForInput(location,packageName,relativeName) | FileObject getFileForInput(Location location, String packageName, String relativeName) |
getFileForOutput | getFileForOutput(location,packageName,relativeName,sibling) | FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) |
getFileForOutputForOriginatingFiles | getFileForOutputForOriginatingFiles(location,packageName,relativeName,originatingFiles) | FileObject getFileForOutputForOriginatingFiles(Location location, String packageName, String relativeName, FileObject[] originatingFiles) |
getJavaFileForInput | getJavaFileForInput(location,className,kind) | JavaFileObject getJavaFileForInput(Location location, String className, Kind kind) |
getJavaFileForOutput | getJavaFileForOutput(location,className,kind,sibling) | JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) |
getJavaFileForOutputForOriginatingFiles | getJavaFileForOutputForOriginatingFiles(location,className,kind,originatingFiles) | JavaFileObject getJavaFileForOutputForOriginatingFiles(Location location, String className, Kind kind, FileObject[] originatingFiles) |
getLocationForModule | getLocationForModule(location,fo) | Location getLocationForModule(Location location, JavaFileObject fo)Location getLocationForModule(Location location, String moduleName) |
getServiceLoader | getServiceLoader(location,service) | ServiceLoader getServiceLoader(Location location, Class service) |
handleOption | handleOption(current,remaining) | boolean handleOption(String current, Iterator remaining) |
hasLocation | hasLocation(location) | boolean hasLocation(Location location) |
inferBinaryName | inferBinaryName(location,file) | String inferBinaryName(Location location, JavaFileObject file) |
inferModuleName | inferModuleName(location) | String inferModuleName(Location location) |
isSameFile | isSameFile(a,b) | boolean isSameFile(FileObject a, FileObject b) |
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
list | list(location,packageName,kinds,recurse) | Iterable list(Location location, String packageName, Set kinds, boolean recurse) |
listLocationsForModules | listLocationsForModules(location) | Iterable listLocationsForModules(Location location) |
JavaFileManagerLocation#
interface · javax.tools.JavaFileManager$Location
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getName | getName() | String getName() |
isModuleOrientedLocation | isModuleOrientedLocation() | boolean isModuleOrientedLocation() |
isOutputLocation | isOutputLocation() | boolean isOutputLocation() |
JavaFileObject#
interface · javax.tools.JavaFileObject
Extends: FileObject
Methods
| Method | Ring call | Java overloads |
|---|---|---|
delete | delete() | boolean delete() |
getAccessLevel | getAccessLevel() | Modifier getAccessLevel() |
getCharContent | getCharContent(ignoreEncodingErrors) | CharSequence getCharContent(boolean ignoreEncodingErrors) |
getKind | getKind() | Kind getKind() |
getLastModified | getLastModified() | long getLastModified() |
getName | getName() | String getName() |
getNestingKind | getNestingKind() | NestingKind getNestingKind() |
isNameCompatible | isNameCompatible(simpleName,kind) | boolean isNameCompatible(String simpleName, Kind kind) |
openInputStream | openInputStream() | InputStream openInputStream() |
openOutputStream | openOutputStream() | OutputStream openOutputStream() |
openReader | openReader(ignoreEncodingErrors) | Reader openReader(boolean ignoreEncodingErrors) |
openWriter | openWriter() | Writer openWriter() |
toUri | toUri() | URI toUri() |
JavaFileObjectKind#
enum · extends Enum · javax.tools.JavaFileObject$Kind
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SOURCE | Kind | constant · static | o.SOURCE |
CLASS | Kind | constant · static | o.@CLASS |
HTML | Kind | constant · static | o.HTML |
OTHER | Kind | constant · static | o.OTHER |
extension | String | constant | o.extension |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Kind valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Kind[] values() |
The methods and fields of Enum are inherited.
OptionChecker#
interface · javax.tools.OptionChecker
Methods
| Method | Ring call | Java overloads |
|---|---|---|
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
SimpleJavaFileObject#
class · extends Object · javax.tools.SimpleJavaFileObject
Implements: JavaFileObject
Methods
| Method | Ring call | Java overloads |
|---|---|---|
delete | delete() | boolean delete() |
forSource | forSource(uri,content) | static JavaFileObject forSource(URI uri, String content) |
getAccessLevel | getAccessLevel() | Modifier getAccessLevel() |
getCharContent | getCharContent(ignoreEncodingErrors) | CharSequence getCharContent(boolean ignoreEncodingErrors) |
getKind | getKind() | Kind getKind() |
getLastModified | getLastModified() | long getLastModified() |
getName | getName() | String getName() |
getNestingKind | getNestingKind() | NestingKind getNestingKind() |
isNameCompatible | isNameCompatible(simpleName,kind) | boolean isNameCompatible(String simpleName, Kind kind) |
openInputStream | openInputStream() | InputStream openInputStream() |
openOutputStream | openOutputStream() | OutputStream openOutputStream() |
openReader | openReader(ignoreEncodingErrors) | Reader openReader(boolean ignoreEncodingErrors) |
openWriter | openWriter() | Writer openWriter() |
toUri | toUri() | URI toUri() |
The methods and fields of Object are inherited.
StandardJavaFileManager#
interface · javax.tools.StandardJavaFileManager
Extends: JavaFileManager
Methods
| Method | Ring call | Java overloads |
|---|---|---|
asPath | asPath(file) | Path asPath(FileObject file) |
close | close() | void close() |
contains | contains(location,fo) | boolean contains(Location location, FileObject fo) |
flush | flush() | void flush() |
getClassLoader | getClassLoader(location) | ClassLoader getClassLoader(Location location) |
getFileForInput | getFileForInput(location,packageName,relativeName) | FileObject getFileForInput(Location location, String packageName, String relativeName) |
getFileForOutput | getFileForOutput(location,packageName,relativeName,sibling) | FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) |
getFileForOutputForOriginatingFiles | getFileForOutputForOriginatingFiles(location,packageName,relativeName,originatingFiles) | FileObject getFileForOutputForOriginatingFiles(Location location, String packageName, String relativeName, FileObject[] originatingFiles) |
getJavaFileForInput | getJavaFileForInput(location,className,kind) | JavaFileObject getJavaFileForInput(Location location, String className, Kind kind) |
getJavaFileForOutput | getJavaFileForOutput(location,className,kind,sibling) | JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) |
getJavaFileForOutputForOriginatingFiles | getJavaFileForOutputForOriginatingFiles(location,className,kind,originatingFiles) | JavaFileObject getJavaFileForOutputForOriginatingFiles(Location location, String className, Kind kind, FileObject[] originatingFiles) |
getJavaFileObjects | getJavaFileObjects(names) | Iterable getJavaFileObjects(String[] names)Iterable getJavaFileObjects(Path[] paths)Iterable getJavaFileObjects(File[] files) |
getJavaFileObjectsFromFiles | getJavaFileObjectsFromFiles(files) | Iterable getJavaFileObjectsFromFiles(Iterable files) |
getJavaFileObjectsFromPaths | getJavaFileObjectsFromPaths(paths) | Iterable getJavaFileObjectsFromPaths(Collection paths)Iterable getJavaFileObjectsFromPaths(Iterable paths) |
getJavaFileObjectsFromStrings | getJavaFileObjectsFromStrings(names) | Iterable getJavaFileObjectsFromStrings(Iterable names) |
getLocation | getLocation(location) | Iterable getLocation(Location location) |
getLocationAsPaths | getLocationAsPaths(location) | Iterable getLocationAsPaths(Location location) |
getLocationForModule | getLocationForModule(location,fo) | Location getLocationForModule(Location location, JavaFileObject fo)Location getLocationForModule(Location location, String moduleName) |
getServiceLoader | getServiceLoader(location,service) | ServiceLoader getServiceLoader(Location location, Class service) |
handleOption | handleOption(current,remaining) | boolean handleOption(String current, Iterator remaining) |
hasLocation | hasLocation(location) | boolean hasLocation(Location location) |
inferBinaryName | inferBinaryName(location,file) | String inferBinaryName(Location location, JavaFileObject file) |
inferModuleName | inferModuleName(location) | String inferModuleName(Location location) |
isSameFile | isSameFile(a,b) | boolean isSameFile(FileObject a, FileObject b) |
isSupportedOption | isSupportedOption(option) | int isSupportedOption(String option) |
list | list(location,packageName,kinds,recurse) | Iterable list(Location location, String packageName, Set kinds, boolean recurse) |
listLocationsForModules | listLocationsForModules(location) | Iterable listLocationsForModules(Location location) |
setLocation | setLocation(location,files) | void setLocation(Location location, Iterable files) |
setLocationForModule | setLocationForModule(location,moduleName,paths) | void setLocationForModule(Location location, String moduleName, Collection paths) |
setLocationFromPaths | setLocationFromPaths(location,paths) | void setLocationFromPaths(Location location, Collection paths) |
setPathFactory | setPathFactory(f) | void setPathFactory(PathFactory f) |
StandardJavaFileManagerPathFactory#
interface · javax.tools.StandardJavaFileManager$PathFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getPath | getPath(first,more) | Path getPath(String first, String[] more) |
StandardLocation#
enum · extends Enum · javax.tools.StandardLocation
Implements: JavaFileManagerLocation
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CLASS_OUTPUT | StandardLocation | constant · static | o.CLASS_OUTPUT |
SOURCE_OUTPUT | StandardLocation | constant · static | o.SOURCE_OUTPUT |
CLASS_PATH | StandardLocation | constant · static | o.CLASS_PATH |
SOURCE_PATH | StandardLocation | constant · static | o.SOURCE_PATH |
ANNOTATION_PROCESSOR_PATH | StandardLocation | constant · static | o.ANNOTATION_PROCESSOR_PATH |
ANNOTATION_PROCESSOR_MODULE_PATH | StandardLocation | constant · static | o.ANNOTATION_PROCESSOR_MODULE_PATH |
PLATFORM_CLASS_PATH | StandardLocation | constant · static | o.PLATFORM_CLASS_PATH |
NATIVE_HEADER_OUTPUT | StandardLocation | constant · static | o.NATIVE_HEADER_OUTPUT |
MODULE_SOURCE_PATH | StandardLocation | constant · static | o.MODULE_SOURCE_PATH |
UPGRADE_MODULE_PATH | StandardLocation | constant · static | o.UPGRADE_MODULE_PATH |
SYSTEM_MODULES | StandardLocation | constant · static | o.SYSTEM_MODULES |
MODULE_PATH | StandardLocation | constant · static | o.MODULE_PATH |
PATCH_MODULE_PATH | StandardLocation | constant · static | o.PATCH_MODULE_PATH |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getName | getName() | String getName() |
isModuleOrientedLocation | isModuleOrientedLocation() | boolean isModuleOrientedLocation() |
isOutputLocation | isOutputLocation() | boolean isOutputLocation() |
locationFor | locationFor(name) | static Location locationFor(String name) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static StandardLocation valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static StandardLocation[] values() |
The methods and fields of Enum are inherited.
Tool#
interface · javax.tools.Tool
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getSourceVersions | getSourceVersions() | Set getSourceVersions() |
name | name() | String name() |
run | run(in,out,err,arguments) | int run(InputStream in, OutputStream out, OutputStream err, String[] arguments) |
ToolsToolProvider#
class · extends Object · javax.tools.ToolProvider
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getSystemDocumentationTool | getSystemDocumentationTool() | static DocumentationTool getSystemDocumentationTool() |
getSystemJavaCompiler | getSystemJavaCompiler() | static JavaCompiler getSystemJavaCompiler() |
getSystemToolClassLoader | getSystemToolClassLoader() | static ClassLoader getSystemToolClassLoader() |
The methods and fields of Object are inherited.