Class AbstractTreeNode
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.model.AbstractTreeNode
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
ColumnNodeImpl
,ModelElementNodeImpl
,ModuleNodeImpl
,RootNodeImpl
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTreeNode
(@Nullable TreeNode parent, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
<R> R
visitChildren
(NodeVisitor<TreeNode, R> visitor) Visits all children recursively in depth-first order (root-children).<R> R
visitChildren
(Predicate<TreeNode> predicate, NodeVisitor<TreeNode, R> visitor) Visits all children recursively in depth-first order (root-children) that apply to the specified predicate.<R> R
visitParents
(NodeVisitor<TreeNode, R> visitor) Visits all parents from this node up to the root.<R> R
visitParents
(Predicate<TreeNode> predicate, NodeVisitor<TreeNode, R> visitor) Visits all parents from this node up to the root that apply to the specified predicate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dbrefactoring.api.model.TreeNode
getShortDescription
-
Constructor Details
-
AbstractTreeNode
-
-
Method Details
-
getName
-
getParentNode
- Specified by:
getParentNode
in interfaceTreeNode
-
getChildren
- Specified by:
getChildren
in interfaceTreeNode
-
visitParents
Description copied from interface:TreeNode
Visits all parents from this node up to the root.- Specified by:
visitParents
in interfaceTreeNode
-
visitParents
Description copied from interface:TreeNode
Visits all parents from this node up to the root that apply to the specified predicate.- Specified by:
visitParents
in interfaceTreeNode
-
visitChildren
Description copied from interface:TreeNode
Visits all children recursively in depth-first order (root-children).- Specified by:
visitChildren
in interfaceTreeNode
-
visitChildren
Description copied from interface:TreeNode
Visits all children recursively in depth-first order (root-children) that apply to the specified predicate.- Specified by:
visitChildren
in interfaceTreeNode
-