Coverage Report - com.sun.tools.javafx.main.OptionName
 
Classes in this File Line Coverage Branch Coverage Complexity
OptionName
98%
59/60
N/A
0
 
 1  
 /*
 2  
  * Copyright 1999-2007 Sun Microsystems, Inc.  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.  Sun designates this
 8  
  * particular file as subject to the "Classpath" exception as provided
 9  
  * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 22  
  * CA 95054 USA or visit www.sun.com if you need additional information or
 23  
  * have any questions.
 24  
  */
 25  
 
 26  
 package com.sun.tools.javafx.main;
 27  
 
 28  
 /**
 29  
  * TODO: describe com.sun.tools.javac.main.OptionName
 30  
  *
 31  
  * <p><b>This is NOT part of any API supported by Sun Microsystems.
 32  
  * If you write code that depends on this, you do so at your own
 33  
  * risk.  This code and its internal interfaces are subject to change
 34  
  * or deletion without notice.</b></p>
 35  
  */
 36  24
 public enum OptionName {
 37  12
     G("-g"),
 38  12
     G_NONE("-g:none"),
 39  12
     G_CUSTOM("-g:{lines,vars,source}"),
 40  12
     XLINT("-Xlint"),
 41  12
     XLINT_CUSTOM("-Xlint:{"
 42  
                  + "all,"
 43  
                  + "cast,deprecation,divzero,empty,unchecked,fallthrough,path,serial,finally,overrides,"
 44  
                  + "-cast,-deprecation,-divzero,-empty,-unchecked,-fallthrough,-path,-serial,-finally,-overrides,"
 45  
                  + "none}"),
 46  12
     NOWARN("-nowarn"),
 47  12
     VERBOSE("-verbose"),
 48  12
     DEPRECATION("-deprecation"),
 49  12
     CLASSPATH("-classpath"),
 50  12
     CP("-cp"),
 51  12
     SOURCEPATH("-sourcepath"),
 52  12
     BOOTCLASSPATH("-bootclasspath"),
 53  12
     XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"),
 54  12
     XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"),
 55  12
     XBOOTCLASSPATH("-Xbootclasspath:"),
 56  12
     EXTDIRS("-extdirs"),
 57  12
     DJAVA_EXT_DIRS("-Djava.ext.dirs="),
 58  12
     ENDORSEDDIRS("-endorseddirs"),
 59  12
     DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="),
 60  12
     PROC_CUSTOM("-proc:{none,only}"),
 61  12
     PROCESSOR("-processor"),
 62  12
     PROCESSORPATH("-processorpath"),
 63  12
     D("-d"),
 64  12
     S("-s"),
 65  12
     IMPLICIT("-implicit:{none,class}"),
 66  12
     ENCODING("-encoding"),
 67  12
     SOURCE("-source"),
 68  12
     TARGET("-target"),
 69  12
     PLATFORM("-platform"),
 70  12
     VERSION("-version"),
 71  12
     FULLVERSION("-fullversion"),
 72  12
     HELP("-help"),
 73  12
     A("-A"),
 74  12
     X("-X"),
 75  12
     J("-J"),
 76  12
     MOREINFO("-moreinfo"),
 77  12
     WERROR("-Werror"),
 78  12
     COMPLEXINFERENCE("-complexinference"),
 79  12
     PROMPT("-prompt"),
 80  12
     DOE("-doe"),
 81  12
     PRINTSOURCE("-printsource"),
 82  12
     WARNUNCHECKED("-warnunchecked"),
 83  12
     XMAXERRS("-Xmaxerrs"),
 84  12
     XMAXWARNS("-Xmaxwarns"),
 85  12
     XSTDOUT("-Xstdout"),
 86  12
     XPRINT("-Xprint"),
 87  12
     XPRINTROUNDS("-XprintRounds"),
 88  12
     XPRINTPROCESSORINFO("-XprintProcessorInfo"),
 89  12
     XPREFER("-Xprefer:{source,newer}"),
 90  12
     O("-O"),
 91  12
     XJCOV("-Xjcov"),
 92  12
     XD("-XD"),
 93  12
     SOURCEFILE("sourcefile"),
 94  12
     DUMPJAVA("-dumpjava"),
 95  12
     DUMPFX("-dumpfx");
 96  
 
 97  
     public final String optionName;
 98  
 
 99  660
     OptionName(String optionName) {
 100  660
         this.optionName = optionName;
 101  660
     }
 102  
 
 103  
     @Override
 104  
     public String toString() {
 105  0
         return optionName;
 106  
     }
 107  
 
 108  
 }