author | mcimadamore |
Fri, 13 Feb 2009 11:57:33 +0000 | |
changeset 2085 | 4792e12a8ca2 |
parent 735 | 372aa565a221 |
child 2212 | 1d3dc0e0ba0c |
permissions | -rw-r--r-- |
10 | 1 |
/* |
735 | 2 |
* Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Sun designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
* have any questions. |
|
24 |
*/ |
|
25 |
||
26 |
package com.sun.tools.javac.main; |
|
27 |
||
28 |
||
29 |
/** |
|
30 |
* TODO: describe com.sun.tools.javac.main.OptionName |
|
31 |
* |
|
32 |
* <p><b>This is NOT part of any API supported by Sun Microsystems. |
|
33 |
* If you write code that depends on this, you do so at your own |
|
34 |
* risk. This code and its internal interfaces are subject to change |
|
35 |
* or deletion without notice.</b></p> |
|
36 |
*/ |
|
37 |
public enum OptionName { |
|
38 |
G("-g"), |
|
39 |
G_NONE("-g:none"), |
|
168 | 40 |
G_CUSTOM("-g:"), |
10 | 41 |
XLINT("-Xlint"), |
168 | 42 |
XLINT_CUSTOM("-Xlint:"), |
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
735
diff
changeset
|
43 |
DIAGS("-XDdiags="), |
10 | 44 |
NOWARN("-nowarn"), |
45 |
VERBOSE("-verbose"), |
|
46 |
DEPRECATION("-deprecation"), |
|
47 |
CLASSPATH("-classpath"), |
|
48 |
CP("-cp"), |
|
49 |
SOURCEPATH("-sourcepath"), |
|
50 |
BOOTCLASSPATH("-bootclasspath"), |
|
51 |
XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"), |
|
52 |
XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"), |
|
53 |
XBOOTCLASSPATH("-Xbootclasspath:"), |
|
54 |
EXTDIRS("-extdirs"), |
|
55 |
DJAVA_EXT_DIRS("-Djava.ext.dirs="), |
|
56 |
ENDORSEDDIRS("-endorseddirs"), |
|
57 |
DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="), |
|
168 | 58 |
PROC("-proc:"), |
10 | 59 |
PROCESSOR("-processor"), |
60 |
PROCESSORPATH("-processorpath"), |
|
61 |
D("-d"), |
|
62 |
S("-s"), |
|
168 | 63 |
IMPLICIT("-implicit:"), |
10 | 64 |
ENCODING("-encoding"), |
65 |
SOURCE("-source"), |
|
66 |
TARGET("-target"), |
|
67 |
VERSION("-version"), |
|
68 |
FULLVERSION("-fullversion"), |
|
69 |
HELP("-help"), |
|
70 |
A("-A"), |
|
71 |
X("-X"), |
|
72 |
J("-J"), |
|
73 |
MOREINFO("-moreinfo"), |
|
74 |
WERROR("-Werror"), |
|
75 |
COMPLEXINFERENCE("-complexinference"), |
|
76 |
PROMPT("-prompt"), |
|
77 |
DOE("-doe"), |
|
78 |
PRINTSOURCE("-printsource"), |
|
79 |
WARNUNCHECKED("-warnunchecked"), |
|
80 |
XMAXERRS("-Xmaxerrs"), |
|
81 |
XMAXWARNS("-Xmaxwarns"), |
|
82 |
XSTDOUT("-Xstdout"), |
|
83 |
XPRINT("-Xprint"), |
|
84 |
XPRINTROUNDS("-XprintRounds"), |
|
85 |
XPRINTPROCESSORINFO("-XprintProcessorInfo"), |
|
168 | 86 |
XPREFER("-Xprefer:"), |
10 | 87 |
O("-O"), |
88 |
XJCOV("-Xjcov"), |
|
89 |
XD("-XD"), |
|
90 |
SOURCEFILE("sourcefile"); |
|
91 |
||
92 |
public final String optionName; |
|
93 |
||
94 |
OptionName(String optionName) { |
|
95 |
this.optionName = optionName; |
|
96 |
} |
|
97 |
||
98 |
@Override |
|
99 |
public String toString() { |
|
100 |
return optionName; |
|
101 |
} |
|
102 |
||
103 |
} |