Class TreeAppendable.Visitor

    • Constructor Summary

      Constructors 
      Constructor Description
      Visitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String visit​(java.lang.String string)
      Manipulate the given string and return the result.
      protected TreeAppendable visit​(TreeAppendable original)
      Manipulate the given appendable or return a new one.
      protected void visitChildren​(TreeAppendable parent)
      Traverses the children of the given appendable and manipulates it in-place.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Visitor

        public Visitor()
    • Method Detail

      • visit

        protected TreeAppendable visit​(TreeAppendable original)
        Manipulate the given appendable or return a new one.
        Parameters:
        original - the visited TreeAppendable
        Returns:
        the original appendable or a new one.
      • visitChildren

        protected void visitChildren​(TreeAppendable parent)
        Traverses the children of the given appendable and manipulates it in-place.
        Parameters:
        parent - the appendable whose children should be visited.
      • visit

        protected java.lang.String visit​(java.lang.String string)
        Manipulate the given string and return the result.
        Parameters:
        string - the visited String
        Returns:
        the original string or a new one.