net.sf.parser4j.kernelgenerator.entity.state.lex
Class LexState
java.lang.Object
net.sf.parser4j.kernelgenerator.entity.state.AbstractState
net.sf.parser4j.kernelgenerator.entity.state.lex.LexState
- All Implemented Interfaces:
- java.lang.Comparable<LexState>, IState
public class LexState
- extends AbstractState
- implements java.lang.Comparable<LexState>
- Author:
- luc peuvrier
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.state.AbstractState |
addGotoByNonTerminal, addGotoByTerminal, addRecognitionPoint, addRecognitionPointToNonTokenSet, equals, getRecognitionPointSet, getStateIdentifier, gotoByNonTerminalIterator, gotoByNonTerminalToString, gotoByTerminalIterator, gotoByTerminalToString, hashCode, matchListIterator, recognitionPointByNonTerminalIterator, recognitionPointByTerminalIterator, setStateIdentifier |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LexState
public LexState(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
addGotoByNonTerminal
public void addGotoByNonTerminal(int nonTerminalIdentifier,
LexState state,
boolean whiteSpace)
addGotoByTerminal
public void addGotoByTerminal(TerminalCharRange terminalCharRange,
LexState state)
setFromState
public void setFromState(LexState fromState)
getFromState
public LexState getFromState()
getStartState
public LexState getStartState(int length)
toStateByNonterminal
public LexState toStateByNonterminal(int nonTerminalIdentifier)
compareTo
public int compareTo(LexState other)
- Specified by:
compareTo
in interface java.lang.Comparable<LexState>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.