xtc.parser
Enum Element.Tag

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

public static enum Element.Tag
extends java.lang.Enum<Element.Tag>

An element's tag.


Enum Constant Summary
ACTION
          An action.
ACTION_BASE_VALUE
          An action base value.
ANY_CHAR
          The any character constant.
BINDING
          A binding.
BINDING_VALUE
          A binding value.
CHAR_CLASS
          A character class.
CHAR_LITERAL
          A character literal.
CHAR_SWITCH
          A character switch.
CHOICE
          An ordered choice.
EMPTY_LIST_VALUE
          An empty list value.
FOLLOWED_BY
          A followed-by predicate.
GENERIC_ACTION_VALUE
          A generic action value.
GENERIC_NODE_VALUE
          A generic node vlaue.
GENERIC_RECURSION_VALUE
          A generic recursion value.
NODE_MARKER
          A node marker.
NONTERMINAL
          A nonterminal.
NOT_FOLLOWED_BY
          A not-followed-by predicate.
NULL
          A null literal.
NULL_VALUE
          A null value.
OPTION
          An option.
PARSE_TREE_NODE
          A parse tree node.
PARSER_ACTION
          A parser action.
PROPER_LIST_VALUE
          A proper list value.
REPETITION
          A repetition.
SEMANTIC_PREDICATE
          A semantic predicate.
SEQUENCE
          A sequence.
STRING_LITERAL
          A string literal.
STRING_MATCH
          A string match.
STRING_VALUE
          A string value.
TOKEN_VALUE
          A token value.
VOIDED
          A voided element.
 
Method Summary
static Element.Tag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Element.Tag[] 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

ACTION

public static final Element.Tag ACTION
An action.


NODE_MARKER

public static final Element.Tag NODE_MARKER
A node marker.


NONTERMINAL

public static final Element.Tag NONTERMINAL
A nonterminal.


NULL

public static final Element.Tag NULL
A null literal.


CHOICE

public static final Element.Tag CHOICE
An ordered choice.


PARSE_TREE_NODE

public static final Element.Tag PARSE_TREE_NODE
A parse tree node.


SEQUENCE

public static final Element.Tag SEQUENCE
A sequence.


ANY_CHAR

public static final Element.Tag ANY_CHAR
The any character constant.


CHAR_CLASS

public static final Element.Tag CHAR_CLASS
A character class.


CHAR_LITERAL

public static final Element.Tag CHAR_LITERAL
A character literal.


CHAR_SWITCH

public static final Element.Tag CHAR_SWITCH
A character switch.


STRING_LITERAL

public static final Element.Tag STRING_LITERAL
A string literal.


BINDING

public static final Element.Tag BINDING
A binding.


PARSER_ACTION

public static final Element.Tag PARSER_ACTION
A parser action.


FOLLOWED_BY

public static final Element.Tag FOLLOWED_BY
A followed-by predicate.


NOT_FOLLOWED_BY

public static final Element.Tag NOT_FOLLOWED_BY
A not-followed-by predicate.


SEMANTIC_PREDICATE

public static final Element.Tag SEMANTIC_PREDICATE
A semantic predicate.


OPTION

public static final Element.Tag OPTION
An option.


REPETITION

public static final Element.Tag REPETITION
A repetition.


STRING_MATCH

public static final Element.Tag STRING_MATCH
A string match.


VOIDED

public static final Element.Tag VOIDED
A voided element.


ACTION_BASE_VALUE

public static final Element.Tag ACTION_BASE_VALUE
An action base value.


BINDING_VALUE

public static final Element.Tag BINDING_VALUE
A binding value.


GENERIC_ACTION_VALUE

public static final Element.Tag GENERIC_ACTION_VALUE
A generic action value.


GENERIC_RECURSION_VALUE

public static final Element.Tag GENERIC_RECURSION_VALUE
A generic recursion value.


GENERIC_NODE_VALUE

public static final Element.Tag GENERIC_NODE_VALUE
A generic node vlaue.


EMPTY_LIST_VALUE

public static final Element.Tag EMPTY_LIST_VALUE
An empty list value.


PROPER_LIST_VALUE

public static final Element.Tag PROPER_LIST_VALUE
A proper list value.


NULL_VALUE

public static final Element.Tag NULL_VALUE
A null value.


STRING_VALUE

public static final Element.Tag STRING_VALUE
A string value.


TOKEN_VALUE

public static final Element.Tag TOKEN_VALUE
A token value.

Method Detail

values

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

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

valueOf

public static Element.Tag 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.