1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <!-- |
|
3 Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. |
|
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 |
|
6 This code is free software; you can redistribute it and/or modify it |
|
7 under the terms of the GNU General Public License version 2 only, as |
|
8 published by the Free Software Foundation. Sun designates this |
|
9 particular file as subject to the "Classpath" exception as provided |
|
10 by Sun in the LICENSE file that accompanied this code. |
|
11 |
|
12 This code is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 version 2 for more details (a copy is included in the LICENSE file that |
|
16 accompanied this code). |
|
17 |
|
18 You should have received a copy of the GNU General Public License version |
|
19 2 along with this work; if not, write to the Free Software Foundation, |
|
20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
21 |
|
22 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
23 CA 95054 USA or visit www.sun.com if you need additional information or |
|
24 have any questions. |
|
25 |
|
26 --> |
|
27 <html> |
|
28 <head> |
|
29 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> |
|
30 <meta name="author" content="Jonathan Gibbons"> |
|
31 <link type="text/css" rel="stylesheet" href="style.css"> |
|
32 <title>Packages</title> |
|
33 <style type="text/css"> |
|
34 th { text-align:left } |
|
35 </style> |
|
36 </head> |
|
37 <body> |
|
38 |
|
39 <h3>javac Packages</h3> |
|
40 |
|
41 <p>With the exception of a publicly supported entry point at |
|
42 <a href="../../src/share/classes/com/sun/tools/javac/Main.java" class="code">com.sun.tools.javac.Main</a>, |
|
43 javac is organized as a set of packages under |
|
44 <span class="code">com.sun.tools.javac</span>. |
|
45 </p> |
|
46 |
|
47 <table> |
|
48 <tr><th>Sub-package<th>Description |
|
49 <tr> |
|
50 <td valign=top><span class=code>code</code> |
|
51 <td>Classes to represent the internal semantics of a Java program -- |
|
52 types, symbols, etc. |
|
53 |
|
54 <tr> |
|
55 <td valign=top><span class=code>comp</code> |
|
56 <td>Classes that analyse and annotate the parse tree with semantic |
|
57 details, such as determining the types and symbols referred to by identifiers. |
|
58 |
|
59 <tr> |
|
60 <td valign=top><span class=code>jvm</code> |
|
61 <td>Back end classes to read and write class files. |
|
62 |
|
63 <tr> |
|
64 <td valign=top><span class=code>main</code> |
|
65 <td>Top-level driver classes. The standard entry point to the compiler is |
|
66 <a href="../../src/share/classes/com/sun/tools/javac/main/Main.java" class="code">com.sun.tools.javac.main.Main</a> <i>(<a href="Main.html">more...</a>)</i> |
|
67 |
|
68 <tr> |
|
69 <td valign=top><span class=code>parser</code> |
|
70 <td>Classes to read a Java source file and create a corresponding parse tree. |
|
71 |
|
72 <tr> |
|
73 <td valign=top><span class=code>resources</code> |
|
74 <td>Resource classes for messages generated by the compiler. Two of the |
|
75 three classes are automagically generated by a "property file compiler" |
|
76 from a property source file; the third is automagically generated during |
|
77 the build to contain build version information. |
|
78 |
|
79 <tr> |
|
80 <td valign=top><span class=code>tree</code> |
|
81 <td>Classes representing an annotated syntax tree for a Java program. |
|
82 The top level node, representing the contents of a source file is |
|
83 <span sclass="code">Tree.TopLevel</code>. |
|
84 |
|
85 <tr> |
|
86 <td valign=top><span class=code>util</code> |
|
87 <td>Utility classes used throughout the compiler, providing support for |
|
88 diagnostics, access to the file system, and javac's collection classes. |
|
89 |
|
90 </body> |
|
91 </html> |
|