Package edu.umd.cs.findbugs.graph
Class AbstractVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>,ActualVertexType extends AbstractVertex<EdgeType,ActualVertexType>>
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractVertex<EdgeType,ActualVertexType>
- All Implemented Interfaces:
GraphVertex<ActualVertexType>
,Comparable<ActualVertexType>
- Direct Known Subclasses:
BasicBlock
,CallGraphNode
,ClassVertex
,DetectorNode
,InterproceduralCallGraphVertex
public class AbstractVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>,ActualVertexType extends AbstractVertex<EdgeType,ActualVertexType>>
extends Object
implements GraphVertex<ActualVertexType>
GraphVertex implementation for use with AbstractGraph.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addIncomingEdge
(EdgeType edge) (package private) void
addOutgoingEdge
(EdgeType edge) int
compareTo
(ActualVertexType other) boolean
(package private) EdgeType
(package private) EdgeType
int
getLabel()
Get the numeric label for this vertex.int
hashCode()
(package private) void
removeIncomingEdge
(EdgeType edge) (package private) void
removeOutgoingEdge
(EdgeType edge) void
setLabel
(int label) Set the numeric label for this vertex.
-
Field Details
-
label
private int label -
firstIncomingEdge
EdgeType extends AbstractEdge<EdgeType,ActualVertexType> firstIncomingEdge -
lastIncomingEdge
EdgeType extends AbstractEdge<EdgeType,ActualVertexType> lastIncomingEdge -
firstOutgoingEdge
EdgeType extends AbstractEdge<EdgeType,ActualVertexType> firstOutgoingEdge -
lastOutgoingEdge
EdgeType extends AbstractEdge<EdgeType,ActualVertexType> lastOutgoingEdge
-
-
Constructor Details
-
AbstractVertex
public AbstractVertex()
-
-
Method Details
-
getLabel
public int getLabel()Description copied from interface:GraphVertex
Get the numeric label for this vertex.- Specified by:
getLabel
in interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType,
ActualVertexType>>
-
setLabel
public void setLabel(int label) Description copied from interface:GraphVertex
Set the numeric label for this vertex.- Specified by:
setLabel
in interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType,
ActualVertexType>>
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EdgeType extends AbstractEdge<EdgeType,
ActualVertexType>>
-
addOutgoingEdge
-
getFirstOutgoingEdge
EdgeType getFirstOutgoingEdge() -
addIncomingEdge
-
getFirstIncomingEdge
EdgeType getFirstIncomingEdge() -
removeIncomingEdge
-
removeOutgoingEdge
-