net.sf.parser4j.parser.entity
Enum EnumNodeType

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

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

grammar node type enumeration

Author:
luc peuvrier

Enum Constant Summary
ALTERNATIVE
          node for one of alternative son node
CHARACTER_TERMINAL
          character terminal node
CONCAT
          node for concat of node
EMPTY
          empty node
NULL
          null grammar node
STRING_TERMINAL
          string terminal node
 
Method Summary
 boolean isConcat()
           
 boolean isNonTerminal()
           
 boolean isTerminal()
           
static EnumNodeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumNodeType[] 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

CONCAT

public static final EnumNodeType CONCAT
node for concat of node


ALTERNATIVE

public static final EnumNodeType ALTERNATIVE
node for one of alternative son node


EMPTY

public static final EnumNodeType EMPTY
empty node


CHARACTER_TERMINAL

public static final EnumNodeType CHARACTER_TERMINAL
character terminal node


STRING_TERMINAL

public static final EnumNodeType STRING_TERMINAL
string terminal node


NULL

public static final EnumNodeType NULL
null grammar node

Method Detail

values

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

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

valueOf

public static EnumNodeType 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()

isNonTerminal

public boolean isNonTerminal()

isConcat

public boolean isConcat()
Returns:
true if concat rule


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