01: /*
02: * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * 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: import com.sun.tools.javac.util.Version;
29:
30: /**
31: * TODO: describe com.sun.tools.javac.main.OptionName
32: *
33: * <p><b>This is NOT part of any API supported by Sun Microsystems.
34: * If you write code that depends on this, you do so at your own
35: * risk. This code and its internal interfaces are subject to change
36: * or deletion without notice.</b></p>
37: */
38: @Version("@(#)OptionName.java 1.8 07/05/05")
39: public enum OptionName {
40: G("-g"), G_NONE("-g:none"), G_CUSTOM("-g:{lines,vars,source}"), XLINT(
41: "-Xlint"), XLINT_CUSTOM(
42: "-Xlint:{"
43: + "all,"
44: + "cast,deprecation,divzero,empty,unchecked,fallthrough,path,serial,finally,overrides,"
45: + "-cast,-deprecation,-divzero,-empty,-unchecked,-fallthrough,-path,-serial,-finally,-overrides,"
46: + "none}"), NOWARN("-nowarn"), VERBOSE("-verbose"), DEPRECATION(
47: "-deprecation"), CLASSPATH("-classpath"), CP("-cp"), SOURCEPATH(
48: "-sourcepath"), BOOTCLASSPATH("-bootclasspath"), XBOOTCLASSPATH_PREPEND(
49: "-Xbootclasspath/p:"), XBOOTCLASSPATH_APPEND(
50: "-Xbootclasspath/a:"), XBOOTCLASSPATH("-Xbootclasspath:"), EXTDIRS(
51: "-extdirs"), DJAVA_EXT_DIRS("-Djava.ext.dirs="), ENDORSEDDIRS(
52: "-endorseddirs"), DJAVA_ENDORSED_DIRS(
53: "-Djava.endorsed.dirs="), PROC_CUSTOM("-proc:{none,only}"), PROCESSOR(
54: "-processor"), PROCESSORPATH("-processorpath"), D("-d"), S(
55: "-s"), IMPLICIT("-implicit:{none,class}"), ENCODING(
56: "-encoding"), SOURCE("-source"), TARGET("-target"), VERSION(
57: "-version"), FULLVERSION("-fullversion"), HELP("-help"), A(
58: "-A"), X("-X"), J("-J"), MOREINFO("-moreinfo"), WERROR(
59: "-Werror"), COMPLEXINFERENCE("-complexinference"), PROMPT(
60: "-prompt"), DOE("-doe"), PRINTSOURCE("-printsource"), WARNUNCHECKED(
61: "-warnunchecked"), XMAXERRS("-Xmaxerrs"), XMAXWARNS(
62: "-Xmaxwarns"), XSTDOUT("-Xstdout"), XPRINT("-Xprint"), XPRINTROUNDS(
63: "-XprintRounds"), XPRINTPROCESSORINFO(
64: "-XprintProcessorInfo"), XPREFER("-Xprefer:{source,newer}"), O(
65: "-O"), XJCOV("-Xjcov"), XD("-XD"), SOURCEFILE("sourcefile");
66:
67: public final String optionName;
68:
69: OptionName(String optionName) {
70: this .optionName = optionName;
71: }
72:
73: @Override
74: public String toString() {
75: return optionName;
76: }
77:
78: }
|