Uses of Interface
introspector.model.Node
Packages that use Node
Package
Description
The controller package handles the actions generated by the view, calls the model and shows the results
back to the view (MVC pattern).
The model package implements the model responsibility in the MVC pattern.
The traverse package provides different functionalities to traverse the object structure of the
model as a tree.
-
Uses of Node in introspector.controller
Methods in introspector.controller that return types with arguments of type NodeModifier and TypeMethodDescriptionExpandTreeController.expandAllFromNode(JTree tree, Node node, TreePath treePath) Expands all the nodes that are descendants of a given node in a tree viewExpandTreeController.expandAllFromNode(JTree tree, Node node, TreePath treePath, List<Node> alreadyVisited) Expands all the nodes that are descendants of a given node in a tree viewExpandTreeController.expandAllFromRootNode(List<JTree> trees) Expands all the nodes that are descendants of the root node in a tree view.ExpandTreeController.expandAllFromSelectedNode(JTree tree) Expands all the nodes that are descendants of the selected node in a tree view.Methods in introspector.controller with parameters of type NodeModifier and TypeMethodDescriptionExpandTreeController.expandAllFromNode(JTree tree, Node node, TreePath treePath) Expands all the nodes that are descendants of a given node in a tree viewExpandTreeController.expandAllFromNode(JTree tree, Node node, TreePath treePath, List<Node> alreadyVisited) Expands all the nodes that are descendants of a given node in a tree viewMethod parameters in introspector.controller with type arguments of type NodeModifier and TypeMethodDescriptionExpandTreeController.expandAllFromNode(JTree tree, Node node, TreePath treePath, List<Node> alreadyVisited) Expands all the nodes that are descendants of a given node in a tree viewprivate static voidCompareTreesController.showSelectedNodes(List<JTree> trees, Set<Node> modifiedNodes) Shows the nodes that are different in the trees -
Uses of Node in introspector.model
Classes in introspector.model that implement NodeModifier and TypeClassDescriptionclassThe abstract Node provides the default implementation of the Node interface.classArrayNode provides a Node implementation to represent any value whose type is an array.classBuiltinTypeNode provides a Node implementation to represent any value whose type is built-in.classCollectionNode provides a Node implementation to represent any value whose type is a java.util.Collection.classEnumNode provides a Node implementation to represent any enum object.classMapNode provides a Node implementation to represent any value whose type is a java.util.Map.classObjectNode provides a Node implementation to represent any object whose type is neither built-in nor a collection.Fields in introspector.model declared as NodeModifier and TypeFieldDescriptionprivate NodeIntrospectorModelTest.arrayNodeprivate NodeIntrospectorModelTest.objectNodeprivate final NodeIntrospectorModel.rootThe root node of the tree.Fields in introspector.model with type parameters of type NodeMethods in introspector.model that return NodeModifier and TypeMethodDescriptionstatic NodeNodeFactory.createNode(String name, Object value) Factory to create the nodesstatic NodeNodeFactory.createNode(String name, Object value, Class<?> type) Factory to create the nodesstatic NodeDeep clones a Node tree.AbstractNode.getChild(int index) Returns theindex-th child of theparentnode.Node.getChild(int index) Gets the index-th child of the current node.IntrospectorModel.getRoot()Methods in introspector.model that return types with arguments of type NodeModifier and TypeMethodDescriptionAbstractNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) ArrayNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) CollectionNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) MapNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Node.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compare two trees and return the list of modified nodes.ObjectNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) AbstractNode.getChildren()Returns the child node of the current node.ArrayNode.getChildren()An array node has as many children as elements in the array.BuiltinTypeNode.getChildren()A builtin node has no children.CollectionNode.getChildren()Collection node has as many children as elements in the collection.EnumNode.getChildren()MapNode.getChildren()Collection node has as many children and elements in the collection.ObjectNode.getChildren()An object has as many child nodes as fields.Methods in introspector.model with parameters of type NodeModifier and TypeMethodDescriptionAbstractNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) ArrayNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) CollectionNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) MapNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Node.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compare two trees and return the list of modified nodes.ObjectNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) static NodeDeep clones a Node tree.Method parameters in introspector.model with type arguments of type NodeModifier and TypeMethodDescriptionAbstractNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) ArrayNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) CollectionNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) MapNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Node.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compare two trees and return the list of modified nodes.ObjectNode.compareTrees(Node node2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) -
Uses of Node in introspector.model.traverse
Fields in introspector.model.traverse declared as NodeModifier and TypeFieldDescriptionprivate final NodeTreeSerializerMock.TraverseDTO.nodeThe field for thenoderecord component.Fields in introspector.model.traverse with type parameters of type NodeModifier and TypeFieldDescriptionHtmlTreeSerializer.modifiedNodesUsed when two trees have been compared.TxtTreeSerializer.modifiedNodesUsed when two trees have been compared.Methods in introspector.model.traverse that return NodeModifier and TypeMethodDescriptionprivate static NodeTreeComparator.createNodeIfNeeded(Object object) Makes sure the object is a node by creating a node wrapping the object if neededTreeSerializerMock.TraverseDTO.node()Returns the value of thenoderecord component.Methods in introspector.model.traverse that return types with arguments of type NodeModifier and TypeMethodDescriptionTreeComparator.compareNode(Object object1, Object object2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compares two trees and returns the list of different nodesTreeComparator.compareTrees(Object tree1, Object tree2) Compares two trees and returns true if they are equal, false otherwiseTreeComparator.compareTrees(TreePath path1, TreePath path2) Compares two trees and returns true if they are equal, false otherwiseMethods in introspector.model.traverse with parameters of type NodeModifier and TypeMethodDescriptionvoidHtmlTreeSerializer.afterTraversing(Node node, int depth, boolean hasBeenVisited) voidTreeSerializer.afterTraversing(Node node, int depth, boolean hasBeenVisited) This method is called after one node is traversedvoidTreeSerializerMock.afterTraversing(Node node, int depth, boolean hasBeenVisited) voidTxtTreeSerializer.afterTraversing(Node node, int depth, boolean hasBeenVisited) voidHtmlTreeSerializer.beforeTraversing(Node node, int depth, boolean hasBeenVisited) voidTreeSerializer.beforeTraversing(Node node, int depth, boolean hasBeenVisited) This method is called after the whole tree has been traversedvoidTreeSerializerMock.beforeTraversing(Node node, int depth, boolean hasBeenVisited) voidTxtTreeSerializer.beforeTraversing(Node node, int depth, boolean hasBeenVisited) (package private) static booleanTraverseHelper.couldBeVisitedTwice(Node node) Returns whether a node could be visited twice or more(package private) static booleanTraverseHelper.hasBeenVisited(Node node, Set<Node> alreadyTraversed) Returns whether a node is a cyclic or alias reference.private StringHtmlTreeSerializer.nodeDescription(Node node, boolean cycle) Returns the textual representation of a node, considering the allInfo fieldstatic booleanTraverseHelper.shouldBeTraversed(Node node, Set<Node> alreadyTraversed) Returns whether a node should be traversed.voidWriteTreeTraversal.traverse(Node node, TreeSerializer treeSerializer) Main method to traverse a tree and perform the actions delegated in the tree serializerprivate voidWriteTreeTraversal.traverse(Node node, TreeSerializer treeSerializer, int depth, Set<Node> alreadyTraversed) Main method to traverse a tree and perform the actions delegated in the tree serializervoidHtmlTreeSerializer.traversing(Node node, int depth, boolean hasBeenVisited) voidTreeSerializer.traversing(Node node, int depth, boolean hasBeenVisited) This method is called when a node is being traversedvoidTreeSerializerMock.traversing(Node node, int depth, boolean hasBeenVisited) voidTxtTreeSerializer.traversing(Node node, int depth, boolean hasBeenVisited) Method parameters in introspector.model.traverse with type arguments of type NodeModifier and TypeMethodDescriptionstatic voidAdds the new children to the modified nodes.static voidAdds the new children to the modified nodes.TreeComparator.compareNode(Object object1, Object object2, boolean equalName, Set<Node> modifiedNodes, Set<SymmetricPair<Node, Node>> alreadyTraversed) Compares two trees and returns the list of different nodes(package private) static booleanTraverseHelper.couldBeVisitedTwice(SymmetricPair<Node, Node> nodePair) Returns whether two nodes could be visited twice or more(package private) static booleanTraverseHelper.couldBeVisitedTwice(SymmetricPair<Node, Node> nodePair) Returns whether two nodes could be visited twice or more(package private) static booleanTraverseHelper.hasBeenVisited(Node node, Set<Node> alreadyTraversed) Returns whether a node is a cyclic or alias reference.(package private) static booleanTraverseHelper.hasBeenVisited(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether a pair of nodes have a cyclic or alias reference.(package private) static booleanTraverseHelper.hasBeenVisited(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether a pair of nodes have a cyclic or alias reference.(package private) static booleanTraverseHelper.hasBeenVisited(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether a pair of nodes have a cyclic or alias reference.(package private) static booleanTraverseHelper.hasBeenVisited(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether a pair of nodes have a cyclic or alias reference.static booleanTraverseHelper.shouldBeTraversed(Node node, Set<Node> alreadyTraversed) Returns whether a node should be traversed.static booleanTraverseHelper.shouldBeTraversed(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether two nodes in a comparison (two trees) should be traversed.static booleanTraverseHelper.shouldBeTraversed(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether two nodes in a comparison (two trees) should be traversed.static booleanTraverseHelper.shouldBeTraversed(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether two nodes in a comparison (two trees) should be traversed.static booleanTraverseHelper.shouldBeTraversed(SymmetricPair<Node, Node> nodePair, Set<SymmetricPair<Node, Node>> alreadyTraversed) Returns whether two nodes in a comparison (two trees) should be traversed.private voidWriteTreeTraversal.traverse(Node node, TreeSerializer treeSerializer, int depth, Set<Node> alreadyTraversed) Main method to traverse a tree and perform the actions delegated in the tree serializerConstructors in introspector.model.traverse with parameters of type NodeModifierConstructorDescription(package private)TraverseDTO(Node node, int depth, boolean hasBeenVisited) Creates an instance of aTraverseDTOrecord class.Constructor parameters in introspector.model.traverse with type arguments of type NodeModifierConstructorDescriptionHtmlTreeSerializer(String fileName, boolean allInfo, Set<Node> modifiedNodes) This constructor creates an object to write the tree in a fileTxtTreeSerializer(String fileName, boolean allInfo, Set<Node> modifiedNodes) This constructor creates an object to write the tree in a file