Package introspector.model
Class ArrayNode
java.lang.Object
introspector.model.AbstractNode
introspector.model.ArrayNode
- All Implemented Interfaces:
Node,Serializable
ArrayNode provides a Node implementation to represent any value whose type is an array.
- 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.An array node has as many children as elements in the array.booleanisLeaf()An array 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
-
ArrayNode
- See Also:
-
ArrayNode
- See Also:
-
-
Method Details
-
isLeaf
public boolean isLeaf()An array node is not leaf. -
getChildren
An array node has as many children as elements in the array. A node is created for each child.- 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:
-