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

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

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

goto table entry for non terminal: to state by non terminal map

Author:
luc peuvrier
See Also:
Serialized Form

Constructor Summary
GotoByNonTerminalEntry(int numberOfNonterminal)
           
 
Method Summary
 void addGoto(int nonTerminalIdentifier, boolean stringToken, ToStateAndWhiteSpaceFlag toStateAndWhiteSpaceFlag)
          add a goto state by non terminal
 java.util.Set<java.lang.Integer> expected()
          expected non terminal
 void fixState()
           
 java.util.Map<java.lang.Integer,ToStateAndWhiteSpaceFlag> getGotoMap()
           
 boolean hasGoto()
           
 boolean hasGotoByStringToken()
           
 ToStateAndWhiteSpaceFlag toStateAndWhiteSpaceFlag(int nonTerminalIdentifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GotoByNonTerminalEntry

public GotoByNonTerminalEntry(int numberOfNonterminal)
Method Detail

fixState

public void fixState()

addGoto

public void addGoto(int nonTerminalIdentifier,
                    boolean stringToken,
                    ToStateAndWhiteSpaceFlag toStateAndWhiteSpaceFlag)
add a goto state by non terminal

Parameters:
nonTerminalIdentifier -
stringToken -
toStateAndWhiteSpaceFlag -

toStateAndWhiteSpaceFlag

public ToStateAndWhiteSpaceFlag toStateAndWhiteSpaceFlag(int nonTerminalIdentifier)
Parameters:
nonTerminalIdentifier -
Returns:
to state and white space flag by non terminal, null if no transition

expected

public java.util.Set<java.lang.Integer> expected()
expected non terminal

Returns:
set of non terminal identifier

getGotoMap

public java.util.Map<java.lang.Integer,ToStateAndWhiteSpaceFlag> getGotoMap()

hasGoto

public boolean hasGoto()
Returns:
true if has goto by non terminal

hasGotoByStringToken

public boolean hasGotoByStringToken()


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