public interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
Files.walkFileTree(java.nio.file.Path, java.nio.file.FileVisitor)
with its visitor interface. But it is used for more as file access.Modifier and Type | Interface and Description |
---|---|
static class |
TreeNodeCallback.Result
It is similar
FileVisitResult . |
Modifier and Type | Method and Description |
---|---|
void |
finished()
Invoked after finishing a .
|
TreeNodeCallback.Result |
finishedChildren(DerivedNode node)
Invoked on end of walking through children of its parent.
|
TreeNodeCallback.Result |
offerLeaf(DerivedNode node)
Invoked for any node which has no children.
|
TreeNodeCallback.Result |
offerParent(DerivedNode node)
Invoked for any parent which has children.
|
boolean |
shouldAborted()
Checks whether the tree walking should be terminated respectively aborted.
|
void |
start()
Invoked before start of
Files.walkFileTree(java.nio.file.Path, java.util.Set, int, java.nio.file.FileVisitor) . |
void start()
Files.walkFileTree(java.nio.file.Path, java.util.Set, int, java.nio.file.FileVisitor)
.
or an adequate communication.TreeNodeCallback.Result offerParent(DerivedNode node)
node
- a node which has children.TreeNodeCallback.Result finishedChildren(DerivedNode node)
node
- a node which has children.TreeNodeCallback.Result offerLeaf(DerivedNode node)
node
- a node which has children.void finished()
boolean shouldAborted()