Module jdk.compiler
The com.sun.source.* packages provide the Compiler Tree API:
 an API for accessing the abstract trees (ASTs) representing Java source code
 and documentation comments, used by javac, javadoc and related tools.
 
javac
 This module provides the equivalent of command-line access to javac
 via the ToolProvider and
 Tool service provider interfaces (SPIs),
 and more flexible access via the JavaCompiler
 SPI.
 Instances of the tools can be obtained by calling
 ToolProvider.findFirst
 or the service loader with the name
 "javac".
 
 In addition, instances of JavaCompiler.CompilationTask
 obtained from JavaCompiler can be
 downcast to JavacTask for access to
 lower level aspects of javac, such as the
 Abstract Syntax Tree (AST).
This module uses the FileSystemProvider API to locate file system providers. In particular,
 this means that a jar file system provider, such as that in the
 jdk.zipfs module, must be available if the compiler is to be able
 to read JAR files.
- Module Graph:
- Tool Guides:
- javac
- Since:
- 9
- 
PackagesExportsPackageDescriptionProvides 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).This package provides a legacy entry point for the javac tool.Indirect Exports
- 
ModulesRequiresModifierModuleDescriptiontransitiveDefines the Language Model, Annotation Processing, and Java Compiler APIs.
- 
ServicesProvidesTypeDescriptionInterface to invoke Java programming language compilers from programs.Common interface for tools that can be invoked from a program.An interface for command-line tools to provide a way to be invoked without necessarily starting a new VM.Uses