java.lang.Iterable<Leaf>List, WriterNodepublic abstract class Node extends Leaf implements java.lang.Iterable<Leaf>
Node is a Leaf that has children.
getting and setting the parent of a node, and for removing a node.| Modifier | Constructor | Description |
|---|---|---|
protected |
Node(org.xml.sax.Locator location,
Leaf leaf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChild(Leaf child) |
|
boolean |
hasOneChild() |
Returns true if this node has only one child node.
|
java.util.Iterator<Leaf> |
iterator() |
Iterates all the children.
|
public Leaf leaf
protected Node(org.xml.sax.Locator location,
Leaf leaf)
public final java.util.Iterator<Leaf> iterator()
iterator in interface java.lang.Iterable<Leaf>public final boolean hasOneChild()
public final void addChild(Leaf child)
Copyright © 2018 Oracle Corporation. All rights reserved.