Class NodeVisitors
java.lang.Object
ch.tocco.nice2.toolbox.api.collection.Visitors<TreeNode>
ch.tocco.nice2.dbrefactoring.api.model.NodeVisitors
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.toolbox.api.collection.Visitors
Visitors.ChildrenCallback<N>, Visitors.ChildrenIterator<N>, Visitors.ParentCallback<N>, Visitors.ParentIterator<N>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnoEntityFrom
(Set<String> entitynames) parentHasModule
(Set<String> moduleSet) Returns a predicate that can be used withvisitChildren(TreeNode, NodeVisitor, Predicate)
method to retrieve only nodes that are from one of the specified modules.<R> R
visitChildren
(TreeNode node, NodeVisitor<TreeNode, R> visitor) <R> R
visitChildren
(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) <R> R
visitParents
(TreeNode node, NodeVisitor<TreeNode, R> visitor) <R> R
visitParents
(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) Methods inherited from class ch.tocco.nice2.toolbox.api.collection.Visitors
visitChildren, visitChildren, visitParents, visitParents
-
Constructor Details
-
NodeVisitors
public NodeVisitors()
-
-
Method Details
-
visitParents
-
visitParents
public <R> R visitParents(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) -
visitChildren
-
visitChildren
public <R> R visitChildren(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) -
parentHasModule
Returns a predicate that can be used withvisitChildren(TreeNode, NodeVisitor, Predicate)
method to retrieve only nodes that are from one of the specified modules. -
noEntityFrom
-