net.sf.parser4j.kernelgenerator.entity.state.syntax
Class State

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.entity.state.AbstractState
      extended by net.sf.parser4j.kernelgenerator.entity.state.syntax.State
All Implemented Interfaces:
java.lang.Comparable<State>, IState

public class State
extends AbstractState
implements java.lang.Comparable<State>

Author:
luc peuvrier

Field Summary
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.state.AbstractState
gotoByNonTerminalMap, gotoByTerminalMap, matchList, nonTerminalMap, recognitionPointByNonTerminal, recognitionPointByTerminal, recognitionPointSet, stateIdentifier
 
Constructor Summary
State(NonTerminalMap nonTerminalMap)
           
 
Method Summary
protected  void addMatch(RecognitionPoint recognitionPoint)
          add recognition point to match list
protected  boolean addRecognitionPointToSet(RecognitionPoint recognitionPoint)
           
 void addTokenGotoByNonTerminal(int nonTerminal, State state)
           
 void addTokenGotoByTerminal(TerminalCharRange terminalCharRange, State state)
           
protected  void addToRecognitionPointByNonTerminal(int nonTerminalIdentifier, RecognitionPoint recognitionPoint, boolean whiteSpace)
           
protected  void addToRecognitionPointByTerminal(TerminalCharRange terminalCharRange, RecognitionPoint recognitionPoint)
           
 int compareTo(State state)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<IGrammarNode> getExpectedStringTokenSet()
           
 java.util.Set<RecognitionPoint> getTokenRecognitionPointSet()
           
 int hashCode()
           
protected  boolean isNewRecognitionPoint(OperandGrammarNode expectedGrammarNode)
           
 boolean isStringTokenRecognition()
           
 boolean isTokenRecognition()
           
 java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> tokenGotoByNonTerminalIterator()
           
 java.util.Iterator<StateByTerminalRange> tokenGotoByTerminalIterator()
           
 java.util.Iterator<RecognitionPoint> tokenMatchListIterator()
           
 java.util.Iterator<java.util.Map.Entry<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag>> tokenRecognitionPointByNonTerminalIterator()
           
 java.util.Iterator<RecognitionPointForTerminalRange> tokenRecognitionPointByTerminalIterator()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.state.AbstractState
addGotoByNonTerminal, addGotoByTerminal, addRecognitionPoint, addRecognitionPointToNonTokenSet, getRecognitionPointSet, getStateIdentifier, gotoByNonTerminalIterator, gotoByNonTerminalToString, gotoByTerminalIterator, gotoByTerminalToString, matchListIterator, recognitionPointByNonTerminalIterator, recognitionPointByTerminalIterator, setStateIdentifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

State

public State(NonTerminalMap nonTerminalMap)
Method Detail

addMatch

protected void addMatch(RecognitionPoint recognitionPoint)
Description copied from class: AbstractState
add recognition point to match list

Specified by:
addMatch in class AbstractState

isNewRecognitionPoint

protected boolean isNewRecognitionPoint(OperandGrammarNode expectedGrammarNode)
Specified by:
isNewRecognitionPoint in class AbstractState
Returns:

addRecognitionPointToSet

protected boolean addRecognitionPointToSet(RecognitionPoint recognitionPoint)
Specified by:
addRecognitionPointToSet in class AbstractState
Returns:

addToRecognitionPointByTerminal

protected void addToRecognitionPointByTerminal(TerminalCharRange terminalCharRange,
                                               RecognitionPoint recognitionPoint)
Specified by:
addToRecognitionPointByTerminal in class AbstractState

addToRecognitionPointByNonTerminal

protected void addToRecognitionPointByNonTerminal(int nonTerminalIdentifier,
                                                  RecognitionPoint recognitionPoint,
                                                  boolean whiteSpace)
Specified by:
addToRecognitionPointByNonTerminal in class AbstractState

tokenRecognitionPointByTerminalIterator

public java.util.Iterator<RecognitionPointForTerminalRange> tokenRecognitionPointByTerminalIterator()

tokenRecognitionPointByNonTerminalIterator

public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag>> tokenRecognitionPointByNonTerminalIterator()

getTokenRecognitionPointSet

public java.util.Set<RecognitionPoint> getTokenRecognitionPointSet()

addTokenGotoByNonTerminal

public void addTokenGotoByNonTerminal(int nonTerminal,
                                      State state)

addTokenGotoByTerminal

public void addTokenGotoByTerminal(TerminalCharRange terminalCharRange,
                                   State state)

tokenGotoByTerminalIterator

public java.util.Iterator<StateByTerminalRange> tokenGotoByTerminalIterator()

tokenGotoByNonTerminalIterator

public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> tokenGotoByNonTerminalIterator()

tokenMatchListIterator

public java.util.Iterator<RecognitionPoint> tokenMatchListIterator()

isTokenRecognition

public boolean isTokenRecognition()

isStringTokenRecognition

public boolean isStringTokenRecognition()

getExpectedStringTokenSet

public java.util.Set<IGrammarNode> getExpectedStringTokenSet()

compareTo

public int compareTo(State state)
Specified by:
compareTo in interface java.lang.Comparable<State>

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractState

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractState

toString

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


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