org.waxeye.parser
Class FA<E extends java.lang.Enum<?>>

java.lang.Object
  extended by org.waxeye.parser.FA<E>
Type Parameters:
E - The node types for the AST.

public final class FA<E extends java.lang.Enum<?>>
extends java.lang.Object

A finite state automaton.

Author:
Orlando Hill

Field Summary
static int LEFT
          The normal automaton mode.
static int PRUNE
          The vertical prune mode.
static int VOID
          The void mode.
 
Constructor Summary
FA(E type, int mode, java.util.List<State<E>> states)
          Creates a new finite state automaton.
 
Method Summary
 int getMode()
          Returns the mode.
 java.util.List<State<E>> getStates()
          Returns the states.
 E getType()
          Returns the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
The normal automaton mode.

See Also:
Constant Field Values

VOID

public static final int VOID
The void mode.

See Also:
Constant Field Values

PRUNE

public static final int PRUNE
The vertical prune mode.

See Also:
Constant Field Values
Constructor Detail

FA

public FA(E type,
          int mode,
          java.util.List<State<E>> states)
Creates a new finite state automaton.

Parameters:
type - The type of the automaton.
mode - The automaton mode.
states - The states of the automaton.
Method Detail

getType

public E getType()
Returns the type.

Returns:
Returns the type.

getMode

public int getMode()
Returns the mode.

Returns:
Returns the mode.

getStates

public java.util.List<State<E>> getStates()
Returns the states.

Returns:
Returns the states.


Waxeye Parser Generator