public class HierarchyTraverser extends Object
|Modifier and Type||Field and Description|
The set of visitors that can perform visits of one or more of a set of VisitKind.
|Constructor and Description|
Create a HierarchyTraverser that can perform visits of the specified set of VisitKind.
|Modifier and Type||Method and Description|
Carry out the appropriate visits on an object and then traverse down the hierarchy of its children.
public void traverse(Object o, List ancestry, Set<VisitReport> reports, boolean includeTimeConsuming)
o- The object to visit
ancestry- The, possibly empty, list of the ancestors (ordered parents) of the object with the most recent ancestor being the first in the list.
reports- The set to which to add reports generated about the object and its descendents
includeTimeConsuming- Whether to include visits that are time-consuming.
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.