Class TreeRewriter

    • Field Detail

      • showTransformations

        protected boolean showTransformations
      • originalTokenStream

        protected TokenStream originalTokenStream
      • originalAdaptor

        protected TreeAdaptor originalAdaptor
    • Method Detail

      • applyOnce

        public java.lang.Object applyOnce​(java.lang.Object t,
                                          TreeRewriter.fptr whichRule)
      • applyRepeatedly

        public java.lang.Object applyRepeatedly​(java.lang.Object t,
                                                TreeRewriter.fptr whichRule)
      • downup

        public java.lang.Object downup​(java.lang.Object t)
      • downup

        public java.lang.Object downup​(java.lang.Object t,
                                       boolean showTransformations)
      • reportTransformation

        public void reportTransformation​(java.lang.Object oldTree,
                                         java.lang.Object newTree)
        Override this if you need transformation tracing to go somewhere other than stdout or if you're not using Tree-derived trees.