Class Node

  • All Implemented Interfaces:
    Comparable<Node>

    public final class Node
    extends Object
    implements Comparable<Node>
    The class Node represents the nodes in a dependency and slice graph.

    During the analysis Decycle will create Node instances by calling classNode(String) that have the type SliceType.classType() for all classes and types it will encounter. After that Decycle will create Node instances for groups of class nodes. The first grouping level creates nodes with type SliceType.packageType() (by calling packageNode(String)) representing the packages of the analyzed classes. Then, if rules for slicings have been defined, custom slice nodes will be created using sliceNode(String, String), which use the name of the slicing as custom type.

    The name of a node is the class name, the package name, or the slice name.

    Nodes are connected to other nodes with edges.