Class TokenStreamRewriter.RewriteOperation

    • Field Detail

      • instructionIndex

        protected int instructionIndex
        What index into rewrites List are we?
      • index

        protected int index
        Token buffer index.
    • Constructor Detail

      • RewriteOperation

        protected RewriteOperation​(int index)
      • RewriteOperation

        protected RewriteOperation​(int index,
                                   Object text)
    • Method Detail

      • execute

        public int execute​(StringBuilder buf)
        Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.