Interface NFAState

All Known Implementing Classes:
NFAState.Accept, NFAState.Filter, NFAState.Replace

public interface NFAState
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Represents an accepting state - if the NFA ends up in this state, we have successfully matched the token indicated by 'mToken'.
    static class 
    Matches a character that satisfies a character filter.
    static class 
    A state which serves as a placeholder for the states indicated in 'mShadow'.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(char c)
     
    static NFAState
    Accept(int token)
     
    static NFAState
    Filter(IntPredicate filter, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next)
     
    @Unmodifiable it.unimi.dsi.fastutil.ints.IntList
     
    static NFAState
    Replace(@Unmodifiable it.unimi.dsi.fastutil.ints.IntList shadow)
     
  • Method Details

    • accept

      boolean accept(char c)
    • next

      @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next()
    • Accept

      @Nonnull static NFAState Accept(int token)
    • Filter

      @Nonnull static NFAState Filter(IntPredicate filter, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next)
    • Replace

      @Nonnull static NFAState Replace(@Unmodifiable it.unimi.dsi.fastutil.ints.IntList shadow)