public abstract class SplitNodeAdapter extends Object implements SplitNodeVisitor
SplitNodeVisitor
, all methods call handle(SplitNode)
.Constructor and Description |
---|
SplitNodeAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
handle(SplitNode node) |
void |
handleLeaf(Leaf leaf)
Invoked when visiting a leaf of the tree.
|
void |
handleNode(Node node)
Invoked when visiting a node of the tree.
|
void |
handlePlaceholder(Placeholder placeholder)
Invoked when visiting a leaf that is a placeholder.
|
void |
handleRoot(Root root)
Invoked when visiting the root of the tree.
|
public void handleLeaf(Leaf leaf)
SplitNodeVisitor
handleLeaf
in interface SplitNodeVisitor
leaf
- the treepublic void handleNode(Node node)
SplitNodeVisitor
handleNode
in interface SplitNodeVisitor
node
- a nodepublic void handlePlaceholder(Placeholder placeholder)
SplitNodeVisitor
handlePlaceholder
in interface SplitNodeVisitor
placeholder
- the placeholderpublic void handleRoot(Root root)
SplitNodeVisitor
handleRoot
in interface SplitNodeVisitor
root
- the rootprotected void handle(SplitNode node)