org.schmant.task.template.jdk.javac
Enum JavacDebugKeyword

java.lang.Object
  extended by java.lang.Enum<JavacDebugKeyword>
      extended by org.schmant.task.template.jdk.javac.JavacDebugKeyword
All Implemented Interfaces:
Serializable, Comparable<JavacDebugKeyword>

public enum JavacDebugKeyword
extends Enum<JavacDebugKeyword>

This is an enumeration over the different debug keywords that can be set with the -g flag to javac.

The ALL constant contains all keywords, the NONE constant contains no keywords.

Since:
0.5
Author:
Karl Gustafsson

Enum Constant Summary
LINE
           
SOURCE
           
VARS
           
 
Field Summary
static Collection<JavacDebugKeyword> ALL
          This constant contains all debug keywords.
static Collection<JavacDebugKeyword> NONE
          This constant contains no debug keywords.
 
Method Summary
 String getKeyword()
           
 String toString()
           
static JavacDebugKeyword valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavacDebugKeyword[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SOURCE

public static final JavacDebugKeyword SOURCE

LINE

public static final JavacDebugKeyword LINE

VARS

public static final JavacDebugKeyword VARS
Field Detail

ALL

public static final Collection<JavacDebugKeyword> ALL
This constant contains all debug keywords.


NONE

public static final Collection<JavacDebugKeyword> NONE
This constant contains no debug keywords.

Method Detail

values

public static JavacDebugKeyword[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JavacDebugKeyword c : JavacDebugKeyword.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JavacDebugKeyword valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getKeyword

public String getKeyword()

toString

public String toString()
Overrides:
toString in class Enum<JavacDebugKeyword>