Interface Visitable

    • Method Detail

      • visitIfNotNull

        static void visitIfNotNull​(Visitable visitable,
                                   Visitor visitor)
        A helper method that presents the visitor to the visitable if the visitable is not null. Not meant to be overridden.
        Parameters:
        visitable - The visitable to visit if not null
        visitor - The visitor to use
      • accept

        default void accept​(Visitor visitor)
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Parameters:
        visitor - the visitor to notify, must not be null.