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

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

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

An edge in an automaton state.

Author:
Orlando Hill

Constructor Summary
Edge(ITransition<E> trans, int state, boolean voided)
          Creates a new Edge.
 
Method Summary
 int getState()
          Returns the state.
 ITransition<E> getTrans()
          Returns the trans.
 boolean isVoided()
          Returns the voided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(ITransition<E> trans,
            int state,
            boolean voided)
Creates a new Edge.

Parameters:
trans - The transition cost.
state - The state to transition to.
voided - Whether the edge is voided.
Method Detail

getTrans

public ITransition<E> getTrans()
Returns the trans.

Returns:
Returns the trans.

getState

public int getState()
Returns the state.

Returns:
Returns the state.

isVoided

public boolean isVoided()
Returns the voided.

Returns:
Returns the voided.


Waxeye Parser Generator