public interface Producer extends Visitor
Visitor that "produces" a named object that is added to the
ExecutionContext for use by a Consumer of some sort. Note that a Visitor
does not qualify as a producer just because it "produces" something. It is only a producer
if it produces something that is added to the ExecutionContext for use by a
Consumer.
The Producer/Consumer interfaces allows us to order the execution of multiple
Visitor instances, targetted at the same element selector, based on what the Visitor
produces and/or consumes.Consumer| Modifier and Type | Method and Description |
|---|---|
Set<? extends Object> |
getProducts()
Get the set of products produced by this producer instance.
|
Copyright © 2020. All rights reserved.