net.sf.parser4j.kernelgenerator.entity.state.lex
Class LexState

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.entity.state.AbstractState
      extended by 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

Field Summary
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.state.AbstractState
gotoByNonTerminalMap, gotoByTerminalMap, matchList, nonTerminalMap, recognitionPointByNonTerminal, recognitionPointByTerminal, recognitionPointSet, stateIdentifier
 
Constructor Summary
LexState(NonTerminalMap nonTerminalMap)
           
 
Method Summary
 void addGotoByNonTerminal(int nonTerminalIdentifier, LexState state, boolean whiteSpace)
           
 void addGotoByTerminal(TerminalCharRange terminalCharRange, LexState state)
           
protected  void addMatch(RecognitionPoint recognitionPoint)
          add recognition point to match list
protected  boolean addRecognitionPointToSet(RecognitionPoint recognitionPoint)
           
protected  void addToRecognitionPointByNonTerminal(int nonTerminalIdentifier, RecognitionPoint recognitionPoint, boolean whiteSpace)
           
protected  void addToRecognitionPointByTerminal(TerminalCharRange terminalCharRange, RecognitionPoint recognitionPoint)
           
 int compareTo(LexState other)
           
 LexState getFromState()
           
 LexState getStartState(int length)
           
protected  boolean isNewRecognitionPoint(OperandGrammarNode expectedGrammarNode)
           
 void setFromState(LexState fromState)
           
 LexState toStateByNonterminal(int nonTerminalIdentifier)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

LexState

public LexState(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

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.