Interface Composite.Visitor<T,​R>

    • Method Detail

      • preVisit

        void preVisit​(@Nonnull
                      T object)
        Visits an object. This method is called before visiting children (pre-order).
        Parameters:
        object - the visited object
      • visit

        void visit​(@Nonnull
                   T object)
        Visits an object. This method is actually called just after preVisit(Object), it makes sense to implement it when you don't need to distinguish between pre-order and post-order traversal.
        Parameters:
        object - the visited object
      • postVisit

        void postVisit​(@Nonnull
                       T object)
        Visits an object. This method is called after visiting children (post-order).
        Parameters:
        object - the visited object