src/share/classes/com/sun/tools/javac/main/OptionName.java

Wed, 06 Apr 2011 20:33:44 -0700

author
ohair
date
Wed, 06 Apr 2011 20:33:44 -0700
changeset 962
0ff2bbd38f10
parent 916
cb9493a80341
permissions
-rw-r--r--

7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes

     1 /*
     2  * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package com.sun.tools.javac.main;
    29 /**
    30  * TODO: describe com.sun.tools.javac.main.OptionName
    31  *
    32  * <p><b>This is NOT part of any supported API.
    33  * If you write code that depends on this, you do so at your own
    34  * risk.  This code and its internal interfaces are subject to change
    35  * or deletion without notice.</b></p>
    36  */
    37 public enum OptionName {
    38     G("-g"),
    39     G_NONE("-g:none"),
    40     G_CUSTOM("-g:"),
    41     XLINT("-Xlint"),
    42     XLINT_CUSTOM("-Xlint:"),
    43     DIAGS("-XDdiags="),
    44     NOWARN("-nowarn"),
    45     VERBOSE("-verbose"),
    46     DEPRECATION("-deprecation"),
    47     CLASSPATH("-classpath"),
    48     CP("-cp"),
    49     SOURCEPATH("-sourcepath"),
    50     BOOTCLASSPATH("-bootclasspath"),
    51     XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"),
    52     XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"),
    53     XBOOTCLASSPATH("-Xbootclasspath:"),
    54     EXTDIRS("-extdirs"),
    55     DJAVA_EXT_DIRS("-Djava.ext.dirs="),
    56     ENDORSEDDIRS("-endorseddirs"),
    57     DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="),
    58     PROC("-proc:"),
    59     PROCESSOR("-processor"),
    60     PROCESSORPATH("-processorpath"),
    61     D("-d"),
    62     S("-s"),
    63     IMPLICIT("-implicit:"),
    64     ENCODING("-encoding"),
    65     SOURCE("-source"),
    66     TARGET("-target"),
    67     VERSION("-version"),
    68     FULLVERSION("-fullversion"),
    69     HELP("-help"),
    70     A("-A"),
    71     X("-X"),
    72     J("-J"),
    73     MOREINFO("-moreinfo"),
    74     WERROR("-Werror"),
    75     COMPLEXINFERENCE("-complexinference"),
    76     PROMPT("-prompt"),
    77     DOE("-doe"),
    78     PRINTSOURCE("-printsource"),
    79     WARNUNCHECKED("-warnunchecked"),
    80     XMAXERRS("-Xmaxerrs"),
    81     XMAXWARNS("-Xmaxwarns"),
    82     XSTDOUT("-Xstdout"),
    83     XPKGINFO("-Xpkginfo:"),
    84     XPRINT("-Xprint"),
    85     XPRINTROUNDS("-XprintRounds"),
    86     XPRINTPROCESSORINFO("-XprintProcessorInfo"),
    87     XPREFER("-Xprefer:"),
    88     O("-O"),
    89     XJCOV("-Xjcov"),
    90     XD("-XD"),
    91     AT("@"),
    92     SOURCEFILE("sourcefile");
    94     public final String optionName;
    96     OptionName(String optionName) {
    97         this.optionName = optionName;
    98     }
   100     @Override
   101     public String toString() {
   102         return optionName;
   103     }
   105 }

mercurial