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| 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
|
Node |
first()
Return the first collected node
|
java.util.List<Node> |
getNodes() |
Node.Visitor.Status |
visit(Node n,
Node.Visitor.State state) |
public Collector(Collector.Mode mode)
public java.util.List<Node> getNodes()
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