author | jjg |
Wed, 19 Oct 2011 15:29:46 -0700 | |
changeset 10813 | 95b39a692cd0 |
parent 9087 | e9e44877cd18 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
9087
e9e44877cd18
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8637
diff
changeset
|
2 |
* Copyright (c) 2006, 2011, Oracle and/or its affiliates. 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 |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 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 |
* |
|
5520 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.tools.javac.main; |
|
27 |
||
28 |
||
29 |
/** |
|
30 |
* TODO: describe com.sun.tools.javac.main.OptionName |
|
31 |
* |
|
5847
1908176fd6e3
6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5520
diff
changeset
|
32 |
* <p><b>This is NOT part of any supported API. |
10 | 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"), |
|
6575
ae1798028008
6960424: new option -Xpkginfo for better control of when package-info.class is generated
jjg
parents:
5847
diff
changeset
|
83 |
XPKGINFO("-Xpkginfo:"), |
10 | 84 |
XPRINT("-Xprint"), |
85 |
XPRINTROUNDS("-XprintRounds"), |
|
86 |
XPRINTPROCESSORINFO("-XprintProcessorInfo"), |
|
168 | 87 |
XPREFER("-Xprefer:"), |
10 | 88 |
O("-O"), |
89 |
XJCOV("-Xjcov"), |
|
90 |
XD("-XD"), |
|
8637
be1b564b50aa
6980021: javac should document @file command line option
jjg
parents:
7681
diff
changeset
|
91 |
AT("@"), |
10 | 92 |
SOURCEFILE("sourcefile"); |
93 |
||
94 |
public final String optionName; |
|
95 |
||
96 |
OptionName(String optionName) { |
|
97 |
this.optionName = optionName; |
|
98 |
} |
|
99 |
||
100 |
@Override |
|
101 |
public String toString() { |
|
102 |
return optionName; |
|
103 |
} |
|
104 |
||
105 |
} |