fr.umlv.tatoo.runtime.parser
Enum ActionReturn

java.lang.Object
  extended by java.lang.Enum<ActionReturn>
      extended by fr.umlv.tatoo.runtime.parser.ActionReturn
All Implemented Interfaces:
Serializable, Comparable<ActionReturn>

public enum ActionReturn
extends Enum<ActionReturn>

Instruct the parser about what it has to do.

Author:
julien

Enum Constant Summary
KEEP
          continue with the same terminal
NEXT
          wait for the next terminal
NEXT_ERROR
          current terminal must be discarded because there is an error.
RELEX
          Asks the lexer to reconsider the active rule to parse the input since the expected lookahead set has decreased
 
Method Summary
static ActionReturn valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActionReturn[] 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

NEXT

public static final ActionReturn NEXT
wait for the next terminal


KEEP

public static final ActionReturn KEEP
continue with the same terminal


NEXT_ERROR

public static final ActionReturn NEXT_ERROR
current terminal must be discarded because there is an error.


RELEX

public static final ActionReturn RELEX
Asks the lexer to reconsider the active rule to parse the input since the expected lookahead set has decreased

Method Detail

values

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

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

valueOf

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