net.sf.parser4j.parser.entity.data
Class GotoByTerminalEntry

java.lang.Object
  extended by net.sf.parser4j.parser.entity.data.GotoByTerminalEntry
All Implemented Interfaces:
java.io.Serializable

public class GotoByTerminalEntry
extends java.lang.Object
implements java.io.Serializable

Author:
luc peuvrier
See Also:
Serialized Form

Constructor Summary
GotoByTerminalEntry()
           
 
Method Summary
 void addGoto(TerminalCharRange terminalCharRange, int toStateIdentifier)
          add goto by terminal range
 java.util.Set<TerminalCharRange> expected()
           
 java.util.Map<TerminalCharRange,java.lang.Integer> getGotoByLongRangeMap()
           
 boolean hasGoto()
           
 int toState(int terminal)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GotoByTerminalEntry

public GotoByTerminalEntry()
Method Detail

addGoto

public void addGoto(TerminalCharRange terminalCharRange,
                    int toStateIdentifier)
add goto by terminal range

Parameters:
terminalCharRange -
toStateIdentifier -

toState

public int toState(int terminal)
Parameters:
terminal -
Returns:
to state by non terminal, -1 if no transition

expected

public java.util.Set<TerminalCharRange> expected()

getGotoByLongRangeMap

public java.util.Map<TerminalCharRange,java.lang.Integer> getGotoByLongRangeMap()

hasGoto

public boolean hasGoto()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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