Class SequentialMatchers

java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.Matchers
com.oracle.truffle.regex.tregex.nodes.dfa.SequentialMatchers
Direct Known Subclasses:
SequentialMatchers.SimpleSequentialMatchers, SequentialMatchers.UTF16Or32SequentialMatchers, SequentialMatchers.UTF16RawSequentialMatchers, SequentialMatchers.UTF8SequentialMatchers

public abstract class SequentialMatchers extends Matchers
Container for character matchers of DFA transitions, potentially specialized for a given string encoding.
  • Method Details

    • getNoMatchSuccessor

      public short getNoMatchSuccessor()
    • size

      public abstract int size()
      Returns the number of transitions represented by this object.
    • match

      public abstract boolean match(int i, int c)
      Returns true iff transition i matches c.
    • match

      public int match(int c)
      Returns the index of the transition that matches the given character c, or noMatchSuccessor. For debugging purposes.
    • toString

      public abstract String toString(int i)
      Returns a String representation of transition i.