public abstract class Collector extends java.lang.Object implements Node.Visitor
| Modifier and Type | Class and Description |
|---|---|
static class |
Collector.Mode |
Node.Visitor.State, Node.Visitor.Status| Modifier and Type | Field and Description |
|---|---|
protected Collector.Mode |
mode |
protected java.util.List |
nodes |
| Constructor and Description |
|---|
Collector(Collector.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(Node n)
Return true if this node can be accepted by the Collector
|
protected void |
addNode(Node n) |
Node |
first()
Return the first collected node
|
java.util.List |
getNodes() |
Node.Visitor.Status |
visit(Node n,
Node.Visitor.State state) |
protected java.util.List nodes
protected Collector.Mode mode
public Collector(Collector.Mode mode)
public java.util.List getNodes()
protected void addNode(Node n)
public Node.Visitor.Status visit(Node n, Node.Visitor.State state) throws java.rmi.RemoteException, MXException
visit in interface Node.Visitorjava.rmi.RemoteExceptionMXExceptionpublic Node first()
public abstract boolean accept(Node n) throws java.rmi.RemoteException, MXException
n - java.rmi.RemoteExceptionMXException