duke@1: /* duke@1: * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: * duke@1: * This code is free software; you can redistribute it and/or modify it duke@1: * under the terms of the GNU General Public License version 2 only, as duke@1: * published by the Free Software Foundation. Sun designates this duke@1: * particular file as subject to the "Classpath" exception as provided duke@1: * by Sun in the LICENSE file that accompanied this code. duke@1: * duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: * version 2 for more details (a copy is included in the LICENSE file that duke@1: * accompanied this code). duke@1: * duke@1: * You should have received a copy of the GNU General Public License version duke@1: * 2 along with this work; if not, write to the Free Software Foundation, duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: * duke@1: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, duke@1: * CA 95054 USA or visit www.sun.com if you need additional information or duke@1: * have any questions. duke@1: */ duke@1: duke@1: package com.sun.tools.javac.main; duke@1: duke@1: duke@1: /** duke@1: * TODO: describe com.sun.tools.javac.main.OptionName duke@1: * duke@1: *

This is NOT part of any API supported by Sun Microsystems. duke@1: * If you write code that depends on this, you do so at your own duke@1: * risk. This code and its internal interfaces are subject to change duke@1: * or deletion without notice.

duke@1: */ duke@1: public enum OptionName { duke@1: G("-g"), duke@1: G_NONE("-g:none"), duke@1: G_CUSTOM("-g:{lines,vars,source}"), duke@1: XLINT("-Xlint"), duke@1: XLINT_CUSTOM("-Xlint:{" duke@1: + "all," duke@1: + "cast,deprecation,divzero,empty,unchecked,fallthrough,path,serial,finally,overrides," duke@1: + "-cast,-deprecation,-divzero,-empty,-unchecked,-fallthrough,-path,-serial,-finally,-overrides," duke@1: + "none}"), duke@1: NOWARN("-nowarn"), duke@1: VERBOSE("-verbose"), duke@1: DEPRECATION("-deprecation"), duke@1: CLASSPATH("-classpath"), duke@1: CP("-cp"), duke@1: SOURCEPATH("-sourcepath"), duke@1: BOOTCLASSPATH("-bootclasspath"), duke@1: XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"), duke@1: XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"), duke@1: XBOOTCLASSPATH("-Xbootclasspath:"), duke@1: EXTDIRS("-extdirs"), duke@1: DJAVA_EXT_DIRS("-Djava.ext.dirs="), duke@1: ENDORSEDDIRS("-endorseddirs"), duke@1: DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="), duke@1: PROC_CUSTOM("-proc:{none,only}"), duke@1: PROCESSOR("-processor"), duke@1: PROCESSORPATH("-processorpath"), duke@1: D("-d"), duke@1: S("-s"), duke@1: IMPLICIT("-implicit:{none,class}"), duke@1: ENCODING("-encoding"), duke@1: SOURCE("-source"), duke@1: TARGET("-target"), duke@1: VERSION("-version"), duke@1: FULLVERSION("-fullversion"), duke@1: HELP("-help"), duke@1: A("-A"), duke@1: X("-X"), duke@1: J("-J"), duke@1: MOREINFO("-moreinfo"), duke@1: WERROR("-Werror"), duke@1: COMPLEXINFERENCE("-complexinference"), duke@1: PROMPT("-prompt"), duke@1: DOE("-doe"), duke@1: PRINTSOURCE("-printsource"), duke@1: WARNUNCHECKED("-warnunchecked"), duke@1: XMAXERRS("-Xmaxerrs"), duke@1: XMAXWARNS("-Xmaxwarns"), duke@1: XSTDOUT("-Xstdout"), duke@1: XPRINT("-Xprint"), duke@1: XPRINTROUNDS("-XprintRounds"), duke@1: XPRINTPROCESSORINFO("-XprintProcessorInfo"), duke@1: XPREFER("-Xprefer:{source,newer}"), duke@1: O("-O"), duke@1: XJCOV("-Xjcov"), duke@1: XD("-XD"), duke@1: SOURCEFILE("sourcefile"); duke@1: duke@1: public final String optionName; duke@1: duke@1: OptionName(String optionName) { duke@1: this.optionName = optionName; duke@1: } duke@1: duke@1: @Override duke@1: public String toString() { duke@1: return optionName; duke@1: } duke@1: duke@1: }