Package hydra.paths
Class SubtypeGraph
- java.lang.Object
-
- hydra.paths.SubtypeGraph
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubtypeGraph>
public class SubtypeGraph extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SubtypeGraph>
A graph of subtype nodes and edges, representing type access patterns- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubtypeGraph(ConsList<SubtypeNode> nodes, ConsList<SubtypeEdge> edges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SubtypeGraph other)booleanequals(java.lang.Object other)inthashCode()SubtypeGraphwithEdges(ConsList<SubtypeEdge> edges)SubtypeGraphwithNodes(ConsList<SubtypeNode> nodes)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
NODES
public static final Name NODES
-
EDGES
public static final Name EDGES
-
nodes
public final ConsList<SubtypeNode> nodes
All nodes in the graph
-
edges
public final ConsList<SubtypeEdge> edges
All edges in the graph
-
-
Constructor Detail
-
SubtypeGraph
public SubtypeGraph(ConsList<SubtypeNode> nodes, ConsList<SubtypeEdge> edges)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SubtypeGraph other)
- Specified by:
compareToin interfacejava.lang.Comparable<SubtypeGraph>
-
withNodes
public SubtypeGraph withNodes(ConsList<SubtypeNode> nodes)
-
withEdges
public SubtypeGraph withEdges(ConsList<SubtypeEdge> edges)
-
-