langtools/src/share/classes/com/sun/tools/javac/main/OptionName.java
author jjg
Wed, 19 Oct 2011 15:29:46 -0700
changeset 10813 95b39a692cd0
parent 9087 e9e44877cd18
permissions -rw-r--r--
7101146: Paths should more directly managed by BaseFileManager Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
9087
e9e44877cd18 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8637
diff changeset
     2
 * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2212
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2212
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2212
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2212
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2212
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.javac.main;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
 * TODO: describe com.sun.tools.javac.main.OptionName
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
 *
5847
1908176fd6e3 6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
    32
 * <p><b>This is NOT part of any supported API.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * If you write code that depends on this, you do so at your own
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * risk.  This code and its internal interfaces are subject to change
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * or deletion without notice.</b></p>
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
public enum OptionName {
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
    G("-g"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
    G_NONE("-g:none"),
168
25697c18650b 6307187: clean up code for -Xlint:options
jjg
parents: 10
diff changeset
    40
    G_CUSTOM("-g:"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
    XLINT("-Xlint"),
168
25697c18650b 6307187: clean up code for -Xlint:options
jjg
parents: 10
diff changeset
    42
    XLINT_CUSTOM("-Xlint:"),
2085
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 735
diff changeset
    43
    DIAGS("-XDdiags="),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
    NOWARN("-nowarn"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
    VERBOSE("-verbose"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
    DEPRECATION("-deprecation"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
    CLASSPATH("-classpath"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
    CP("-cp"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    SOURCEPATH("-sourcepath"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    BOOTCLASSPATH("-bootclasspath"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
    XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    XBOOTCLASSPATH("-Xbootclasspath:"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
    EXTDIRS("-extdirs"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    DJAVA_EXT_DIRS("-Djava.ext.dirs="),
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
    ENDORSEDDIRS("-endorseddirs"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
    DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="),
168
25697c18650b 6307187: clean up code for -Xlint:options
jjg
parents: 10
diff changeset
    58
    PROC("-proc:"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
    PROCESSOR("-processor"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
    PROCESSORPATH("-processorpath"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
    D("-d"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    S("-s"),
168
25697c18650b 6307187: clean up code for -Xlint:options
jjg
parents: 10
diff changeset
    63
    IMPLICIT("-implicit:"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
    ENCODING("-encoding"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    SOURCE("-source"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    TARGET("-target"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
    VERSION("-version"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    FULLVERSION("-fullversion"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
    HELP("-help"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
    A("-A"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
    X("-X"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
    J("-J"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
    MOREINFO("-moreinfo"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
    WERROR("-Werror"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
    COMPLEXINFERENCE("-complexinference"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
    PROMPT("-prompt"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
    DOE("-doe"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
    PRINTSOURCE("-printsource"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
    WARNUNCHECKED("-warnunchecked"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
    XMAXERRS("-Xmaxerrs"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
    XMAXWARNS("-Xmaxwarns"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    XSTDOUT("-Xstdout"),
6575
ae1798028008 6960424: new option -Xpkginfo for better control of when package-info.class is generated
jjg
parents: 5847
diff changeset
    83
    XPKGINFO("-Xpkginfo:"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    XPRINT("-Xprint"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
    XPRINTROUNDS("-XprintRounds"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
    XPRINTPROCESSORINFO("-XprintProcessorInfo"),
168
25697c18650b 6307187: clean up code for -Xlint:options
jjg
parents: 10
diff changeset
    87
    XPREFER("-Xprefer:"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
    O("-O"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
    XJCOV("-Xjcov"),
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
    XD("-XD"),
8637
be1b564b50aa 6980021: javac should document @file command line option
jjg
parents: 7681
diff changeset
    91
    AT("@"),
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
    SOURCEFILE("sourcefile");
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
    public final String optionName;
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
    OptionName(String optionName) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
        this.optionName = optionName;
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
    @Override
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
    public String toString() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
        return optionName;
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
}