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 Details

    • getIndex

      public int getIndex()
    • isComposite

      public boolean isComposite()
    • getMovesArrayName

      public String getMovesArrayName()
    • getMethodName

      public String getMethodName()
    • getMoveRanges

      public List<Integer> getMoveRanges()
    • getAsciiMoveRanges

      public List<Integer> getAsciiMoveRanges()
    • getNonAsciiMoveRanges

      public List<Integer> getNonAsciiMoveRanges()
    • 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()
    • getEpsilonMoves

      public Set<NfaState> getEpsilonMoves()
    • getCanonicalState

      public NfaState getCanonicalState()
    • overlaps

      public boolean overlaps(Collection<NfaState> states)