Package com._1c.g5.v8.dt.lcore.util
Class Visitors.CompositeVisitor
java.lang.Object
com._1c.g5.v8.dt.lcore.util.Visitors.CompositeVisitor
- All Implemented Interfaces:
Visitors.IVisitor
- Enclosing class:
- Visitors
Composes several visitors into one. Sequentially calls the given visitors,
returning
false iff all of them returned false.-
Constructor Summary
ConstructorsConstructorDescriptionCompositeVisitor(Visitors.IVisitor... visitors) Constructs a composite visitor from the given visitors.CompositeVisitor(Collection<Visitors.IVisitor> visitors) Constructs a composite visitor from the given visitors. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvisit(org.eclipse.emf.ecore.EObject eObject) Visits the given object.
-
Constructor Details
-
CompositeVisitor
Constructs a composite visitor from the given visitors. The given array is copied.- Parameters:
visitors- the visitors to compose
-
CompositeVisitor
Constructs a composite visitor from the given visitors. The given collection is copied.- Parameters:
visitors- the visitors to compose (notnull)
-
-
Method Details
-
visit
public boolean visit(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:Visitors.IVisitorVisits the given object. Returns whether the contents of the object should also be visited.- Specified by:
visitin interfaceVisitors.IVisitor- Parameters:
eObject- notnull- Returns:
trueif the contents of the given object should be visited, andfalseotherwise
-