Class RewindableTokenStream

  • All Implemented Interfaces:
    TokenStream

    public class RewindableTokenStream
    extends java.lang.Object
    implements TokenStream
    Allows a TokenStream to be repeated as long as a sequence start is kept.
    • Field Detail

      • history

        protected java.util.List<Token> history
      • currentIndex

        protected int currentIndex
      • committedSize

        protected int committedSize
    • Constructor Detail

      • RewindableTokenStream

        public RewindableTokenStream​(TokenStream parent)