With the exception of a publicly supported entry point at com.sun.tools.javac.Main, javac is organized as a set of packages under com.sun.tools.javac.
| Sub-package | Description | ||
|---|---|---|---|
| code | Classes to represent the internal semantics of a Java program -- types, symbols, etc. | ||
| comp | Classes that analyse and annotate the parse tree with semantic details, such as determining the types and symbols referred to by identifiers. | ||
| jvm | Back end classes to read and write class files. | ||
| main | Top-level driver classes. The standard entry point to the compiler is com.sun.tools.javac.main.Main (more...) | ||
| parser | Classes to read a Java source file and create a corresponding parse tree. | ||
| resources | Resource classes for messages generated by the compiler. Two of the three classes are automagically generated by a "property file compiler" from a property source file; the third is automagically generated during the build to contain build version information. | ||
| tree | Classes representing an annotated syntax tree for a Java program.
The top level node, representing the contents of a source file is
Tree.TopLevel.
| util
| Utility classes used throughout the compiler, providing support for
diagnostics, access to the file system, and javac's collection classes.
| |