net.sf.parser4j.kernelgenerator.entity.state.lex
Class LexStateMap
java.lang.Object
net.sf.parser4j.kernelgenerator.entity.state.lex.LexStateMap
public class LexStateMap
- extends java.lang.Object
- Author:
- luc peuvrier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextStateIdentifier
protected int nextStateIdentifier
stateByIdentifierMap
protected final java.util.Map<java.lang.Integer,LexState> stateByIdentifierMap
LexStateMap
public LexStateMap()
addState
public void addState(LexState state)
- add state
if state exist return false, else add new state and set its state
identifier number
- Parameters:
state
- state to add, can already exist
stateByIdentifier
public LexState stateByIdentifier(int stateIdentifier)
- Parameters:
stateIdentifier
-
- Returns:
- existing state for state identifier
numberOfState
public int numberOfState()
lexStateCollection
public java.util.Collection<LexState> lexStateCollection()
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.