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 Visitors
Visitors.ChildrenCallback<N>, Visitors.ChildrenIterator<N>, Visitors.ParentCallback<N>, Visitors.ParentIterator<N> -
Constructor Summary
Constructors -
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> RvisitChildren(TreeNode node, NodeVisitor<TreeNode, R> visitor) <R> RvisitChildren(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) <R> RvisitParents(TreeNode node, NodeVisitor<TreeNode, R> visitor) <R> RvisitParents(TreeNode node, NodeVisitor<TreeNode, R> visitor, Predicate<TreeNode> predicate) Methods inherited from class 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
-