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

java.lang.Object
  extended by org.waxeye.parser.AutomatonTransition<E>
Type Parameters:
E - The AST type.
All Implemented Interfaces:
ITransition<E>

public final class AutomatonTransition<E extends java.lang.Enum<?>>
extends java.lang.Object
implements ITransition<E>

A transition cost of matching an automaton.

Author:
Orlando Hill

Constructor Summary
AutomatonTransition(int index)
          Create a new AutomatonTransition.
 
Method Summary
 IAST<E> acceptVisitor(ITransitionVisitor<E> visitor)
          If this transition cost can be accepted by the parser.
 int getIndex()
          Returns the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomatonTransition

public AutomatonTransition(int index)
Create a new AutomatonTransition.

Parameters:
index - The index of the automaton.
Method Detail

getIndex

public int getIndex()
Returns the index.

Returns:
Returns the index.

acceptVisitor

public IAST<E> acceptVisitor(ITransitionVisitor<E> visitor)
If this transition cost can be accepted by the parser.

Specified by:
acceptVisitor in interface ITransition<E extends java.lang.Enum<?>>
Parameters:
visitor - The transition visitor.
Returns:
If this transition cost can be accepted by the parser.


Waxeye Parser Generator