1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/classes/com/sun/tools/javac/main/OptionName.java Sat Dec 01 00:00:00 2007 +0000 1.3 @@ -0,0 +1,106 @@ 1.4 +/* 1.5 + * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Sun designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Sun in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 1.25 + * CA 95054 USA or visit www.sun.com if you need additional information or 1.26 + * have any questions. 1.27 + */ 1.28 + 1.29 +package com.sun.tools.javac.main; 1.30 + 1.31 + 1.32 +/** 1.33 + * TODO: describe com.sun.tools.javac.main.OptionName 1.34 + * 1.35 + * <p><b>This is NOT part of any API supported by Sun Microsystems. 1.36 + * If you write code that depends on this, you do so at your own 1.37 + * risk. This code and its internal interfaces are subject to change 1.38 + * or deletion without notice.</b></p> 1.39 + */ 1.40 +public enum OptionName { 1.41 + G("-g"), 1.42 + G_NONE("-g:none"), 1.43 + G_CUSTOM("-g:{lines,vars,source}"), 1.44 + XLINT("-Xlint"), 1.45 + XLINT_CUSTOM("-Xlint:{" 1.46 + + "all," 1.47 + + "cast,deprecation,divzero,empty,unchecked,fallthrough,path,serial,finally,overrides," 1.48 + + "-cast,-deprecation,-divzero,-empty,-unchecked,-fallthrough,-path,-serial,-finally,-overrides," 1.49 + + "none}"), 1.50 + NOWARN("-nowarn"), 1.51 + VERBOSE("-verbose"), 1.52 + DEPRECATION("-deprecation"), 1.53 + CLASSPATH("-classpath"), 1.54 + CP("-cp"), 1.55 + SOURCEPATH("-sourcepath"), 1.56 + BOOTCLASSPATH("-bootclasspath"), 1.57 + XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"), 1.58 + XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"), 1.59 + XBOOTCLASSPATH("-Xbootclasspath:"), 1.60 + EXTDIRS("-extdirs"), 1.61 + DJAVA_EXT_DIRS("-Djava.ext.dirs="), 1.62 + ENDORSEDDIRS("-endorseddirs"), 1.63 + DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="), 1.64 + PROC_CUSTOM("-proc:{none,only}"), 1.65 + PROCESSOR("-processor"), 1.66 + PROCESSORPATH("-processorpath"), 1.67 + D("-d"), 1.68 + S("-s"), 1.69 + IMPLICIT("-implicit:{none,class}"), 1.70 + ENCODING("-encoding"), 1.71 + SOURCE("-source"), 1.72 + TARGET("-target"), 1.73 + VERSION("-version"), 1.74 + FULLVERSION("-fullversion"), 1.75 + HELP("-help"), 1.76 + A("-A"), 1.77 + X("-X"), 1.78 + J("-J"), 1.79 + MOREINFO("-moreinfo"), 1.80 + WERROR("-Werror"), 1.81 + COMPLEXINFERENCE("-complexinference"), 1.82 + PROMPT("-prompt"), 1.83 + DOE("-doe"), 1.84 + PRINTSOURCE("-printsource"), 1.85 + WARNUNCHECKED("-warnunchecked"), 1.86 + XMAXERRS("-Xmaxerrs"), 1.87 + XMAXWARNS("-Xmaxwarns"), 1.88 + XSTDOUT("-Xstdout"), 1.89 + XPRINT("-Xprint"), 1.90 + XPRINTROUNDS("-XprintRounds"), 1.91 + XPRINTPROCESSORINFO("-XprintProcessorInfo"), 1.92 + XPREFER("-Xprefer:{source,newer}"), 1.93 + O("-O"), 1.94 + XJCOV("-Xjcov"), 1.95 + XD("-XD"), 1.96 + SOURCEFILE("sourcefile"); 1.97 + 1.98 + public final String optionName; 1.99 + 1.100 + OptionName(String optionName) { 1.101 + this.optionName = optionName; 1.102 + } 1.103 + 1.104 + @Override 1.105 + public String toString() { 1.106 + return optionName; 1.107 + } 1.108 + 1.109 +}