Top Methods
com.github.javaparser.ast.visitor

public Interface Visitable

Known Direct Implementers
com.github.javaparser.utils.VisitorList.EqualsHashcodeOverridingFacade, com.github.javaparser.utils.VisitorMap.EqualsHashcodeOverridingFacade, com.github.javaparser.utils.VisitorSet.EqualsHashcodeOverridingFacade, com.github.javaparser.ast.Node, com.github.javaparser.ast.NodeList

Method Summary

Modifier and TypeMethod and Description
public <
the type of the return value of the visitor
R
,
the type the user argument passed to the visitor
A
>
R

Returns:

the result of the visit (of type R)
accept
(GenericVisitor<R, A>
the visitor implementation
v
,
A
the argument passed to the visitor (of type A)
arg
)

Accept method for visitor support.

public <
the type the argument passed for the visitor
A
>
void
accept(VoidVisitor<A>
the visitor implementation
v
,
A
any value relevant for the visitor (of type A)
arg
)

Accept method for visitor support.

Method Detail

acceptback to summary
public <R, A> R accept(GenericVisitor<R, A> v, A arg)

Accept method for visitor support.

Parameters
<R>
the type of the return value of the visitor
<A>
the type the user argument passed to the visitor
v:GenericVisitor<R, A>

the visitor implementation

arg:A

the argument passed to the visitor (of type A)

Returns:R

the result of the visit (of type R)

acceptback to summary
public <A> void accept(VoidVisitor<A> v, A arg)

Accept method for visitor support.

Parameters
<A>
the type the argument passed for the visitor
v:VoidVisitor<A>

the visitor implementation

arg:A

any value relevant for the visitor (of type A)