Package de.obqo.decycle.model
Class Node
- java.lang.Object
-
- de.obqo.decycle.model.Node
-
- All Implemented Interfaces:
Comparable<Node>
public final class Node extends Object implements Comparable<Node>
The classNoderepresents the nodes in a dependency and slice graph.During the analysis Decycle will create
Nodeinstances by callingclassNode(String)that have thetypeSliceType.classType()for all classes and types it will encounter. After that Decycle will createNodeinstances for groups of class nodes. The first grouping level creates nodes withtypeSliceType.packageType()(by callingpackageNode(String)) representing the packages of the analyzed classes. Then, if rules for slicings have been defined, custom slice nodes will be created usingsliceNode(String, String), which use the name of the slicing ascustom type.The
nameof a node is the class name, the package name, or the slice name.Nodes are connected to other nodes with
edges.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<Node>COMPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeclassNode(String name)intcompareTo(Node other)StringdisplayString()booleanequals(Object o)@NonNull StringgetName()@NonNull SliceTypegetType()inthashCode()booleanhasType(SliceType type)static NodepackageNode(String name)static NodesliceNode(SliceType type, String name)static NodesliceNode(String type, String name)StringtoString()
-
-
-
Field Detail
-
COMPARATOR
public static final Comparator<Node> COMPARATOR
-
-
Method Detail
-
hasType
public boolean hasType(SliceType type)
-
displayString
public String displayString()
-
compareTo
public int compareTo(Node other)
- Specified by:
compareToin interfaceComparable<Node>
-
getType
@NonNull public @NonNull SliceType getType()
-
getName
@NonNull public @NonNull String getName()
-
-