Iterable<Leaf>, ParsedPatternList, WriterNodepublic 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 | Description |
|---|---|---|
protected |
Node(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.
|
Iterator<Leaf> |
iterator() |
Iterates all the children.
|
forEach, spliteratorpublic Leaf leaf
Copyright © 2018 Oracle Corporation. All rights reserved.