Package introspector.model
Class MapNode
java.lang.Object
introspector.model.AbstractNode
introspector.model.MapNode
- All Implemented Interfaces:
Node,Serializable
MapNode provides a Node implementation to represent any value whose type is a java.util.Map.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compare two trees and return the list of modified nodes.Collection node has as many children and elements in the collection.booleanisLeaf()A map node is not leaf.Methods inherited from class introspector.model.AbstractNode
equals, getChild, getChildrenCount, getClassName, getIndexOfChild, getName, getNodeDescription, getType, getValue, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface introspector.model.Node
getChild, getChildrenCount, getClassName, getIndexOfChild, getName, getNodeDescription, getType, getValue
-
Constructor Details
-
MapNode
- See Also:
-
MapNode
- See Also:
-
-
Method Details
-
isLeaf
public boolean isLeaf()A map node is not leaf. -
getChildren
Collection node has as many children and elements in the collection. A node is created for each child, representing the value of each map entry. For the key, its toString representation is shown, but it is not expanded.- Specified by:
getChildrenin classAbstractNode- Returns:
- The children of this node (null if there are no children)
- See Also:
-
compareTrees
public Set<Node> compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Description copied from interface:NodeCompare two trees and return the list of modified nodes.- Specified by:
compareTreesin interfaceNode- Overrides:
compareTreesin classAbstractNode- Parameters:
node2- The node to compare with the other treeequalName- Whether the node names must be the same or not (important for root nodes)modifiedNodes- The list of modified nodesalreadyTraversed- The list of nodes that have been visited in this traversal- Returns:
- The list of modified nodes
- See Also:
-