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
ConstructorsModifierConstructorDescriptionprotectedAbstractTreeNode(@Nullable TreeNode parent, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()<R> RvisitChildren(NodeVisitor<TreeNode, R> visitor) Visits all children recursively in depth-first order (root-children).<R> RvisitChildren(Predicate<TreeNode> predicate, NodeVisitor<TreeNode, R> visitor) Visits all children recursively in depth-first order (root-children) that apply to the specified predicate.<R> RvisitParents(NodeVisitor<TreeNode, R> visitor) Visits all parents from this node up to the root.<R> RvisitParents(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, waitMethods inherited from interface ch.tocco.nice2.dbrefactoring.api.model.TreeNode
getShortDescription
-
Constructor Details
-
AbstractTreeNode
-
-
Method Details
-
getName
-
getParentNode
- Specified by:
getParentNodein interfaceTreeNode
-
getChildren
- Specified by:
getChildrenin interfaceTreeNode
-
visitParents
Description copied from interface:TreeNodeVisits all parents from this node up to the root.- Specified by:
visitParentsin interfaceTreeNode
-
visitParents
Description copied from interface:TreeNodeVisits all parents from this node up to the root that apply to the specified predicate.- Specified by:
visitParentsin interfaceTreeNode
-
visitChildren
Description copied from interface:TreeNodeVisits all children recursively in depth-first order (root-children).- Specified by:
visitChildrenin interfaceTreeNode
-
visitChildren
Description copied from interface:TreeNodeVisits all children recursively in depth-first order (root-children) that apply to the specified predicate.- Specified by:
visitChildrenin interfaceTreeNode
-