001    /*
002     * Copyright 2006-2008 Sun Microsystems, Inc.  All Rights Reserved.
003     * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004     *
005     * This code is free software; you can redistribute it and/or modify it
006     * under the terms of the GNU General Public License version 2 only, as
007     * published by the Free Software Foundation.  Sun designates this
008     * particular file as subject to the "Classpath" exception as provided
009     * by Sun in the LICENSE file that accompanied this code.
010     *
011     * This code is distributed in the hope that it will be useful, but WITHOUT
012     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013     * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014     * version 2 for more details (a copy is included in the LICENSE file that
015     * accompanied this code).
016     *
017     * You should have received a copy of the GNU General Public License version
018     * 2 along with this work; if not, write to the Free Software Foundation,
019     * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020     *
021     * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022     * CA 95054 USA or visit www.sun.com if you need additional information or
023     * have any questions.
024     */
025    
026    package com.sun.tools.javac.main;
027    
028    
029    /**
030     * TODO: describe com.sun.tools.javac.main.OptionName
031     *
032     * <p><b>This is NOT part of any API supported by Sun Microsystems.
033     * If you write code that depends on this, you do so at your own
034     * risk.  This code and its internal interfaces are subject to change
035     * or deletion without notice.</b></p>
036     */
037    public enum OptionName {
038        G("-g"),
039        G_NONE("-g:none"),
040        G_CUSTOM("-g:"),
041        XLINT("-Xlint"),
042        XLINT_CUSTOM("-Xlint:"),
043        NOWARN("-nowarn"),
044        VERBOSE("-verbose"),
045        DEPRECATION("-deprecation"),
046        CLASSPATH("-classpath"),
047        CP("-cp"),
048        SOURCEPATH("-sourcepath"),
049        BOOTCLASSPATH("-bootclasspath"),
050        XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"),
051        XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"),
052        XBOOTCLASSPATH("-Xbootclasspath:"),
053        EXTDIRS("-extdirs"),
054        DJAVA_EXT_DIRS("-Djava.ext.dirs="),
055        ENDORSEDDIRS("-endorseddirs"),
056        DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="),
057        PROC("-proc:"),
058        PROCESSOR("-processor"),
059        PROCESSORPATH("-processorpath"),
060        D("-d"),
061        S("-s"),
062        IMPLICIT("-implicit:"),
063        ENCODING("-encoding"),
064        SOURCE("-source"),
065        TARGET("-target"),
066        VERSION("-version"),
067        FULLVERSION("-fullversion"),
068        HELP("-help"),
069        A("-A"),
070        X("-X"),
071        J("-J"),
072        MOREINFO("-moreinfo"),
073        WERROR("-Werror"),
074        COMPLEXINFERENCE("-complexinference"),
075        PROMPT("-prompt"),
076        DOE("-doe"),
077        PRINTSOURCE("-printsource"),
078        WARNUNCHECKED("-warnunchecked"),
079        XMAXERRS("-Xmaxerrs"),
080        XMAXWARNS("-Xmaxwarns"),
081        XSTDOUT("-Xstdout"),
082        XPRINT("-Xprint"),
083        XPRINTROUNDS("-XprintRounds"),
084        XPRINTPROCESSORINFO("-XprintProcessorInfo"),
085        XPREFER("-Xprefer:"),
086        O("-O"),
087        XJCOV("-Xjcov"),
088        XD("-XD"),
089        SOURCEFILE("sourcefile");
090    
091        public final String optionName;
092    
093        OptionName(String optionName) {
094            this.optionName = optionName;
095        }
096    
097        @Override
098        public String toString() {
099            return optionName;
100        }
101    
102    }