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.
|
createDataMethod, getNext, getPrev, merge, siblings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Leaf leaf
Copyright © 2019 Oracle Corporation. All rights reserved.