| Modifier and Type | Method and Description |
|---|---|
| public default <N> Optional | findAncestor(Class<N> type)
Walks the parents of this node and returns the first node of type |
| public default <N> Optional | findAncestor(Class<N> type, Predicate<N> predicate)
Walks the parents of this node and returns the first node of type |
| public Optional | |
| public Node | getParentNodeForChildren()
Returns the parent node from the perspective of the children of this node. |
| public default boolean | Returns: true if this node is a descendant of the given node, and false otherwise.the node for which to determine whether it has this node as an ancestor. ancestor)Determines whether this |
| public T | Returns: returnthisthe parent node, or parentNode)null to set no parent.Sets the parent node. |
| findAncestor | back to summary |
|---|---|
| public default <N> Optional Walks the parents of this node and returns the first node of type | |
| findAncestor | back to summary |
|---|---|
| public default <N> Optional Walks the parents of this node and returns the first node of type | |
| getParentNode | back to summary |
|---|---|
| public Optional Returns the parent node, or | |
| getParentNodeForChildren | back to summary |
|---|---|
| public Node getParentNodeForChildren() Returns the parent node from the perspective of the children of this node.
That is, this method returns | |
| isDescendantOf | back to summary |
|---|---|
| public default boolean isDescendantOf(Node ancestor) Determines whether this
| |
| setParentNode | back to summary |
|---|---|
| public T setParentNode(Node parentNode) Sets the parent node.
| |