xtc.parser
Enum ChoiceExpander.Mode

java.lang.Object
  extended by java.lang.Enum<ChoiceExpander.Mode>
      extended by xtc.parser.ChoiceExpander.Mode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChoiceExpander.Mode>
Enclosing class:
ChoiceExpander

public static enum ChoiceExpander.Mode
extends java.lang.Enum<ChoiceExpander.Mode>

The processing mode. In regular mode, this visitor traverses a grammar and inlines into choices; in remove values mode, it removes value elements; in void values mode, it converts all value elements into null value elements; and in text values mode, it converts all value elements into text value elements.


Enum Constant Summary
INLINE
          Traverse grammar and inline into choices.
RM_VALUES
          Remove value elements.
TEXT_VALUES
          Convert value elements into text value elements.
TOKEN_VALUES
          Convert value elements into token value elements.
VOID_VALUES
          Convert value elements into null value elements.
 
Method Summary
static ChoiceExpander.Mode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChoiceExpander.Mode[] 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

INLINE

public static final ChoiceExpander.Mode INLINE
Traverse grammar and inline into choices.


RM_VALUES

public static final ChoiceExpander.Mode RM_VALUES
Remove value elements.


VOID_VALUES

public static final ChoiceExpander.Mode VOID_VALUES
Convert value elements into null value elements.


TEXT_VALUES

public static final ChoiceExpander.Mode TEXT_VALUES
Convert value elements into text value elements.


TOKEN_VALUES

public static final ChoiceExpander.Mode TOKEN_VALUES
Convert value elements into token value elements.

Method Detail

values

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

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

valueOf

public static ChoiceExpander.Mode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.