net.sf.parser4j.parser.entity.data
Class GotoByTerminalEntry
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GotoByTerminalEntry
public GotoByTerminalEntry()
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.