types
Enum GUIFile.Flag

java.lang.Object
  extended by java.lang.Enum<GUIFile.Flag>
      extended by types.GUIFile.Flag
All Implemented Interfaces:
Serializable, Comparable<GUIFile.Flag>
Enclosing class:
GUIFile

public static enum GUIFile.Flag
extends Enum<GUIFile.Flag>

The enumeration type of flags set in the file.


Enum Constant Summary
GENERATE_MAIN
          Indicates that public static void main() should be generated.
MOCKUP
          Sets GENERATE_MAIN and SUPPRESS_MODIFIERS.
SUPPRESS_MODIFIERS
          Suppresses the generation of methods to modify attributes.
 
Field Summary
 String keyword
          The keyword in the syntax corresponding to the flag.
static Map<String,GUIFile.Flag> keywordTable
          A mapping of keywords to associated flags.
 
Method Summary
static GUIFile.Flag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GUIFile.Flag[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GENERATE_MAIN

public static final GUIFile.Flag GENERATE_MAIN
Indicates that public static void main() should be generated.


SUPPRESS_MODIFIERS

public static final GUIFile.Flag SUPPRESS_MODIFIERS
Suppresses the generation of methods to modify attributes.


MOCKUP

public static final GUIFile.Flag MOCKUP
Sets GENERATE_MAIN and SUPPRESS_MODIFIERS.

Field Detail

keyword

public final String keyword
The keyword in the syntax corresponding to the flag.


keywordTable

public static final Map<String,GUIFile.Flag> keywordTable
A mapping of keywords to associated flags.

Method Detail

values

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

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

valueOf

public static GUIFile.Flag 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