duke@1: /* ohair@962: * Copyright (c) 2006, 2011, Oracle and/or its affiliates. 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 ohair@554: * published by the Free Software Foundation. Oracle designates this duke@1: * particular file as subject to the "Classpath" exception as provided ohair@554: * by Oracle 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: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * 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: * jjg@581: *

This is NOT part of any supported API. 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"), jjg@11: G_CUSTOM("-g:"), duke@1: XLINT("-Xlint"), jjg@11: XLINT_CUSTOM("-Xlint:"), mcimadamore@221: DIAGS("-XDdiags="), 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="), jjg@11: PROC("-proc:"), duke@1: PROCESSOR("-processor"), duke@1: PROCESSORPATH("-processorpath"), duke@1: D("-d"), duke@1: S("-s"), jjg@11: IMPLICIT("-implicit:"), 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"), jjg@657: XPKGINFO("-Xpkginfo:"), duke@1: XPRINT("-Xprint"), duke@1: XPRINTROUNDS("-XprintRounds"), duke@1: XPRINTPROCESSORINFO("-XprintProcessorInfo"), jjg@11: XPREFER("-Xprefer:"), duke@1: O("-O"), duke@1: XJCOV("-Xjcov"), duke@1: XD("-XD"), jjg@916: AT("@"), 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: }