class CallbackTemplate<DerivedNode extends TreeNodeBase<DerivedNode,?,?>> extends java.lang.Object implements TreeNodeCallback<DerivedNode>
TreeNodeCallback.Result
Constructor and Description |
---|
CallbackTemplate() |
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) . |
public void start()
TreeNodeCallback
Files.walkFileTree(java.nio.file.Path, java.util.Set, int, java.nio.file.FileVisitor)
.
or an adequate communication.start
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
public void finished()
TreeNodeCallback
finished
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
public TreeNodeCallback.Result offerParent(DerivedNode node)
TreeNodeCallback
offerParent
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
node
- a node which has children.public TreeNodeCallback.Result finishedChildren(DerivedNode node)
TreeNodeCallback
finishedChildren
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
node
- a node which has children.public TreeNodeCallback.Result offerLeaf(DerivedNode node)
TreeNodeCallback
offerLeaf
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>
node
- a node which has children.public boolean shouldAborted()
TreeNodeCallback
shouldAborted
in interface TreeNodeCallback<DerivedNode extends TreeNodeBase<DerivedNode,?,?>>