Class MachineInput

  • Direct Known Subclasses:
    MachineInput.UTF16Input, MachineInput.UTF8Input

    abstract class MachineInput
    extends java.lang.Object
    MachineInput abstracts different representations of the input text supplied to the Machine. It provides one-character lookahead.
    • Constructor Detail

      • MachineInput

        MachineInput()
    • Method Detail

      • fromUTF8

        static MachineInput fromUTF8​(byte[] b,
                                     int start,
                                     int end)
      • fromUTF16

        static MachineInput fromUTF16​(java.lang.CharSequence s)
      • fromUTF16

        static MachineInput fromUTF16​(java.lang.CharSequence s,
                                      int start,
                                      int end)
      • step

        abstract int step​(int pos)
      • canCheckPrefix

        abstract boolean canCheckPrefix()
      • index

        abstract int index​(RE2 re2,
                           int pos)
      • context

        abstract int context​(int pos)
      • endPos

        abstract int endPos()