public abstract class Node extends Leaf implements Iterable<Leaf>
Node is a Leaf that has children.
getting and setting the parent of a node, and for removing a node.| Modifier | Constructor and Description |
|---|---|
protected |
Node(Locator location,
Leaf leaf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Leaf child)
|
boolean |
hasOneChild()
Returns true if this node has only one child node.
|
Iterator<Leaf> |
iterator()
Iterates all the children.
|
public Leaf leaf
Copyright © 2015 Oracle Corporation. All Rights Reserved.