accept

abstract fun <R, A> accept(v: GenericVisitor<R, A>, arg: A): R(source)

Accept method for visitor support.

Return

the result of the visit (of type R)

Parameters

<R>

the type of the return value of the visitor

<A>

the type the user argument passed to the visitor

v

the visitor implementation

arg

the argument passed to the visitor (of type A)


abstract fun <A> accept(v: VoidVisitor<A>, arg: A)(source)

Accept method for visitor support.

Parameters

<A>

the type the argument passed for the visitor

v

the visitor implementation

arg

any value relevant for the visitor (of type A)