public class SimonVisitors extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
visitList(Manager manager,
String pattern,
Set<SimonType> types,
SimonVisitor visitor)
Visit simons as a list.
|
static void |
visitTree(Simon simon,
SimonVisitor visitor)
Visit Simons recursively as a tree starting from the specified Simon.
|
public static void visitList(Manager manager, String pattern, Set<SimonType> types, SimonVisitor visitor) throws IOException
Manager.getSimons(org.javasimon.SimonFilter) method
then Simons are sorted by name and filtered by type
finally the visitor is called on each of them.manager - Simon managerpattern - Patterntypes - set of Simon typesvisitor - VisitorIOExceptionpublic static void visitTree(Simon simon, SimonVisitor visitor) throws IOException
simon - Parent simonvisitor - VisitorIOExceptionCopyright © 2019. All rights reserved.