|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.parser4j.kernelgenerator.entity.state.AbstractState
public abstract class AbstractState
state is a set of recognition point
Field Summary | |
---|---|
protected java.util.Map<java.lang.Integer,StateAndWhiteSpaceFlag> |
gotoByNonTerminalMap
goto by non terminal map for non token |
protected GotoByTerminalMap |
gotoByTerminalMap
goto by terminal map for non token |
protected java.util.List<RecognitionPoint> |
matchList
matched non terminal list for non token |
protected NonTerminalMap |
nonTerminalMap
|
protected java.util.Map<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag> |
recognitionPointByNonTerminal
recognition point by non terminal from this state for non token |
protected RecognitionPointByTerminalMap |
recognitionPointByTerminal
recognition point by terminal from this state for non token |
protected java.util.Set<RecognitionPoint> |
recognitionPointSet
recognition point set of this state for non token |
protected int |
stateIdentifier
identifier of this state |
Constructor Summary | |
---|---|
AbstractState(NonTerminalMap nonTerminalMap)
|
Method Summary | |
---|---|
void |
addGotoByNonTerminal(int nonTerminalIdentifier,
IState state,
boolean whiteSpace)
|
void |
addGotoByTerminal(TerminalCharRange terminalCharRange,
IState state)
|
protected abstract void |
addMatch(RecognitionPoint recognitionPoint)
add recognition point to match list |
void |
addRecognitionPoint(RecognitionPoint rootRecognitionPoint,
boolean acceptStringTokenRecognitionPoint)
add a recognition point to this state |
protected boolean |
addRecognitionPointToNonTokenSet(RecognitionPoint recognitionPoint)
|
protected abstract boolean |
addRecognitionPointToSet(RecognitionPoint recognitionPoint)
|
protected abstract void |
addToRecognitionPointByNonTerminal(int nonTerminalIdentifier,
RecognitionPoint recognitionPoint,
boolean whiteSpace)
|
protected abstract void |
addToRecognitionPointByTerminal(TerminalCharRange terminalCharRange,
RecognitionPoint recognitionPoint)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Set<RecognitionPoint> |
getRecognitionPointSet()
|
int |
getStateIdentifier()
|
java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> |
gotoByNonTerminalIterator()
|
protected void |
gotoByNonTerminalToString(java.lang.StringBuilder builder,
java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> iteratorByNonTerminal)
|
java.util.Iterator<StateByTerminalRange> |
gotoByTerminalIterator()
|
protected void |
gotoByTerminalToString(java.lang.StringBuilder builder,
java.util.Iterator<StateByTerminalRange> iteratorByTerminal)
|
int |
hashCode()
|
protected abstract boolean |
isNewRecognitionPoint(OperandGrammarNode expectedGrammarNode)
|
java.util.Iterator<RecognitionPoint> |
matchListIterator()
|
java.util.Iterator<java.util.Map.Entry<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag>> |
recognitionPointByNonTerminalIterator()
|
java.util.Iterator<RecognitionPointForTerminalRange> |
recognitionPointByTerminalIterator()
|
void |
setStateIdentifier(int stateIdentifier)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int stateIdentifier
protected final java.util.Set<RecognitionPoint> recognitionPointSet
protected final RecognitionPointByTerminalMap recognitionPointByTerminal
protected final java.util.Map<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag> recognitionPointByNonTerminal
protected final GotoByTerminalMap gotoByTerminalMap
protected final java.util.Map<java.lang.Integer,StateAndWhiteSpaceFlag> gotoByNonTerminalMap
protected final java.util.List<RecognitionPoint> matchList
protected final NonTerminalMap nonTerminalMap
Constructor Detail |
---|
public AbstractState(NonTerminalMap nonTerminalMap)
Method Detail |
---|
public void setStateIdentifier(int stateIdentifier)
public int getStateIdentifier()
getStateIdentifier
in interface IState
public void addRecognitionPoint(RecognitionPoint rootRecognitionPoint, boolean acceptStringTokenRecognitionPoint)
rootRecognitionPoint
- root recognition point for this stateprotected abstract void addMatch(RecognitionPoint recognitionPoint)
recognitionPoint
- protected abstract boolean isNewRecognitionPoint(OperandGrammarNode expectedGrammarNode)
expectedGrammarNode
-
protected abstract boolean addRecognitionPointToSet(RecognitionPoint recognitionPoint)
recognitionPoint
-
protected boolean addRecognitionPointToNonTokenSet(RecognitionPoint recognitionPoint)
protected abstract void addToRecognitionPointByTerminal(TerminalCharRange terminalCharRange, RecognitionPoint recognitionPoint)
terminalCharRange
- recognitionPoint
- protected abstract void addToRecognitionPointByNonTerminal(int nonTerminalIdentifier, RecognitionPoint recognitionPoint, boolean whiteSpace)
nonTerminalIdentifier
- recognitionPoint
- whiteSpace
- public java.util.Iterator<RecognitionPointForTerminalRange> recognitionPointByTerminalIterator()
public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,RecognitionPointSetAndWhiteSpaceFlag>> recognitionPointByNonTerminalIterator()
public java.util.Set<RecognitionPoint> getRecognitionPointSet()
public void addGotoByTerminal(TerminalCharRange terminalCharRange, IState state)
public void addGotoByNonTerminal(int nonTerminalIdentifier, IState state, boolean whiteSpace)
public java.util.Iterator<StateByTerminalRange> gotoByTerminalIterator()
public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> gotoByNonTerminalIterator()
public java.util.Iterator<RecognitionPoint> matchListIterator()
protected void gotoByNonTerminalToString(java.lang.StringBuilder builder, java.util.Iterator<java.util.Map.Entry<java.lang.Integer,StateAndWhiteSpaceFlag>> iteratorByNonTerminal)
protected void gotoByTerminalToString(java.lang.StringBuilder builder, java.util.Iterator<StateByTerminalRange> iteratorByTerminal)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |