Package antlr

Class TokenStreamRewriteEngine.RewriteOperation

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int index  
      protected java.lang.String text  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RewriteOperation​(int index, java.lang.String 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

      • index

        protected int index
      • text

        protected java.lang.String text
    • Constructor Detail

      • RewriteOperation

        protected RewriteOperation​(int index,
                                   java.lang.String 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