astcentric.structure.query
Class Union
java.lang.Object
astcentric.structure.query.Union
- All Implemented Interfaces:
- NodeCollector
public class Union
- extends java.lang.Object
|
Constructor Summary |
Union()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_collectors
protected final java.util.List<NodeCollector> _collectors
Union
public Union()
collect
public NodeCollection collect(Node node,
QueryContext context)
- Description copied from interface:
NodeCollector
- Creates a node collection for the specified node.
- Parameters:
node - A non-null node which might be related to
the collection to be created.context - A non-null query context.
- Returns:
- never
null.
add
public void add(NodeCollector collector)
- Appends the specified collector to the list of collectors.
traverseCollectors
public void traverseCollectors(NodeCollectorHandler handler)
- Traverses over all collectors in the order their had been added and
sends them to the specified handler.
gatherNodes
protected java.util.Set<Node> gatherNodes(Node node,
QueryContext queryContext,
int startIndex)
createCollectorCollection
protected astcentric.structure.query.AbstractNodeCollectorCollection createCollectorCollection()