Class TokenRewriteStream.RewriteOperation

  • Enclosing class:
    TokenRewriteStream

    public class TokenRewriteStream.RewriteOperation
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int index
      Token buffer index.
      protected int instructionIndex
      What index into rewrites List are we?
      protected java.lang.Object text  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RewriteOperation​(int index)  
      protected RewriteOperation​(int index, java.lang.Object text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int execute​(java.lang.StringBuffer buf)
      Execute the rewrite operation by possibly adding to the buffer.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • instructionIndex

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

        protected int index
        Token buffer index.
      • text

        protected java.lang.Object text
    • Constructor Detail

      • RewriteOperation

        protected RewriteOperation​(int index)
      • RewriteOperation

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

      • execute

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object