Package org.revapi
Interface ElementForest.Visitor<E extends Element<E>>
-
- Enclosing interface:
- ElementForest<E extends Element<E>>
public static interface ElementForest.Visitor<E extends Element<E>>
A visitor of the element forest. Passed to theElementForest.walk(Element, Visitor)
so that the callers can easily walk the forest.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finishWalk()
Called when the whole forest has been visited.void
finishWalk(E element)
Called when all the children of the element were also visited.void
startWalk(E element)
Called when the provided element is first visited.
-
-
-
Method Detail
-
startWalk
void startWalk(E element)
Called when the provided element is first visited.- Parameters:
element
-
-
finishWalk
void finishWalk(E element)
Called when all the children of the element were also visited.- Parameters:
element
-
-
finishWalk
void finishWalk()
Called when the whole forest has been visited.
-
-