Interface Visitable

    • Method Detail

      • accept

        <R,​A> R accept​(GenericVisitor<R,​A> v,
                             A arg)
        Accept method for visitor support.
        Type Parameters:
        R - the type of the return value of the visitor
        A - the type the user argument passed to the visitor
        Parameters:
        v - the visitor implementation
        arg - the argument passed to the visitor (of type A)
        Returns:
        the result of the visit (of type R)
      • accept

        <A> void accept​(VoidVisitor<A> v,
                        A arg)
        Accept method for visitor support.
        Type Parameters:
        A - the type the argument passed for the visitor
        Parameters:
        v - the visitor implementation
        arg - any value relevant for the visitor (of type A)