org.duelengine.duel.ast
Enum CommandName

java.lang.Object
  extended by java.lang.Enum<CommandName>
      extended by org.duelengine.duel.ast.CommandName
All Implemented Interfaces:
Serializable, Comparable<CommandName>

public enum CommandName
extends Enum<CommandName>


Enum Constant Summary
CALL
          Calls into another view
FOR
          Produces an iterator block
IF
          Represents single or default conditional blocks
NONE
          No command
PART
          Allows a view to define templated parts of another
VIEW
          Defines view metadata
XOR
          Wraps a set of mutually exclusive conditional blocks
 
Method Summary
static CommandName valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandName[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final CommandName NONE
No command


VIEW

public static final CommandName VIEW
Defines view metadata


FOR

public static final CommandName FOR
Produces an iterator block


XOR

public static final CommandName XOR
Wraps a set of mutually exclusive conditional blocks


IF

public static final CommandName IF
Represents single or default conditional blocks


CALL

public static final CommandName CALL
Calls into another view


PART

public static final CommandName PART
Allows a view to define templated parts of another

Method Detail

values

public static CommandName[] 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 (CommandName c : CommandName.values())
    System.out.println(c);

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

valueOf

public static CommandName 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


Copyright © 2012. All Rights Reserved.