T
- The type of the objects being visited.public interface Visitor<T>
Modifier and Type | Method and Description |
---|---|
boolean |
canVisit(Object o)
Returns true if the visitor can visit the specified object.
|
boolean |
isTimeConsuming()
An indication if the visit would take sufficient time that it should only
be run upon user request
|
VisitReport |
visit(T o,
List<Object> ancestry)
Visit an object which has the specified ancestry (list of parents) and
possibly return a VisitReport detailing the result of the visit.
|
boolean canVisit(Object o)
o
- The object that might be visitedVisitReport visit(T o, List<Object> ancestry)
o
- The object to visitancestry
- A list of the ancestors of the object with the immediate
parent at the start of the list.boolean isTimeConsuming()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.