net.sf.parser4j.generator.entity.grammardefnode
Enum EnumStatementDefType

java.lang.Object
  extended by java.lang.Enum<EnumStatementDefType>
      extended by net.sf.parser4j.generator.entity.grammardefnode.EnumStatementDefType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumStatementDefType>

public enum EnumStatementDefType
extends java.lang.Enum<EnumStatementDefType>


Enum Constant Summary
ALTERNATIVE
          alternative
CONCAT
          concatenation
EMPTY
          empty
NON_TERMINAL
          non terminal
TERMINAL_CHAR
          terminal char
TERMINAL_CHAR_RANGE
          terminal char range
TERMINAL_CHAR_SET
          terminal char set
TERMINAL_SET_OF_TERMINAL
          terminal set of terminal
TERMINAL_STRING
          terminal string
 
Method Summary
 boolean isEmptyDef()
           
 boolean isNonTerminalDef()
           
 boolean isTerminal()
           
static EnumStatementDefType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumStatementDefType[] 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

ALTERNATIVE

public static final EnumStatementDefType ALTERNATIVE
alternative


CONCAT

public static final EnumStatementDefType CONCAT
concatenation


EMPTY

public static final EnumStatementDefType EMPTY
empty


NON_TERMINAL

public static final EnumStatementDefType NON_TERMINAL
non terminal


TERMINAL_STRING

public static final EnumStatementDefType TERMINAL_STRING
terminal string


TERMINAL_CHAR

public static final EnumStatementDefType TERMINAL_CHAR
terminal char


TERMINAL_SET_OF_TERMINAL

public static final EnumStatementDefType TERMINAL_SET_OF_TERMINAL
terminal set of terminal


TERMINAL_CHAR_RANGE

public static final EnumStatementDefType TERMINAL_CHAR_RANGE
terminal char range


TERMINAL_CHAR_SET

public static final EnumStatementDefType TERMINAL_CHAR_SET
terminal char set

Method Detail

values

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

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

valueOf

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

isTerminal

public boolean isTerminal()

isNonTerminalDef

public boolean isNonTerminalDef()

isEmptyDef

public boolean isEmptyDef()


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.