Interface IVisit<R>

  • Type Parameters:
    R - type of object the visitor is expected to return, if none use Void
    All Known Implementing Classes:
    Visit

    public interface IVisit<R>
    Allows visitors to control the visit/traversal
    Author:
    igor.vaynberg
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dontGoDeeper()
      Prevents the visitor from visiting any children of the object currently visited
      void stop()
      Stops the visit/traversal
      void stop​(R result)
      Stops the visit/traversal and returns result
    • Method Detail

      • stop

        void stop()
        Stops the visit/traversal
      • stop

        void stop​(R result)
        Stops the visit/traversal and returns result
        Parameters:
        result -
      • dontGoDeeper

        void dontGoDeeper()
        Prevents the visitor from visiting any children of the object currently visited