Package com.javacc.core
Class NfaState
- java.lang.Object
-
- com.javacc.core.NfaState
-
- Direct Known Subclasses:
CompositeStateSet
public class NfaState extends Object
Class representing a single state of a Non-deterministic Finite Automaton (NFA) Note that any given lexical state is implemented as an NFA. Thus, any given NfaState object is associated with one lexical state.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>getAsciiMoveRanges()NfaStategetCanonicalState()Set<NfaState>getEpsilonMoves()booleangetHasAsciiMoves()booleangetHasNonAsciiMoves()intgetIndex()LexicalStateDatagetLexicalState()StringgetMethodName()List<Integer>getMoveRanges()StringgetMovesArrayName()NfaStategetNextState()intgetNextStateIndex()RegularExpressiongetNextStateType()List<Integer>getNonAsciiMoveRanges()intgetOrdinal()RegularExpressiongetType()booleanisComposite()booleanoverlaps(Collection<NfaState> states)
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
isComposite
public boolean isComposite()
-
getMovesArrayName
public String getMovesArrayName()
-
getMethodName
public String getMethodName()
-
getHasAsciiMoves
public boolean getHasAsciiMoves()
-
getHasNonAsciiMoves
public boolean getHasNonAsciiMoves()
-
getOrdinal
public int getOrdinal()
-
getType
public RegularExpression getType()
-
getLexicalState
public LexicalStateData getLexicalState()
-
getNextState
public NfaState getNextState()
-
getNextStateType
public RegularExpression getNextStateType()
-
getNextStateIndex
public int getNextStateIndex()
-
getCanonicalState
public NfaState getCanonicalState()
-
overlaps
public boolean overlaps(Collection<NfaState> states)
-
-