net.sf.parser4j.kernelgenerator.entity.state.syntax
Class State
java.lang.Object
net.sf.parser4j.kernelgenerator.entity.state.AbstractState
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
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 |
State
public State(NonTerminalMap nonTerminalMap)
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.