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) voidaddIncomingEdge(EdgeType edge) (package private) voidaddOutgoingEdge(EdgeType edge) intcompareTo(ActualVertexType other) boolean(package private) EdgeType(package private) EdgeTypeintgetLabel()Get the numeric label for this vertex.inthashCode()(package private) voidremoveIncomingEdge(EdgeType edge) (package private) voidremoveOutgoingEdge(EdgeType edge) voidsetLabel(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:GraphVertexGet the numeric label for this vertex.- Specified by:
getLabelin interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType, ActualVertexType>>
-
setLabel
public void setLabel(int label) Description copied from interface:GraphVertexSet the numeric label for this vertex.- Specified by:
setLabelin interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType, ActualVertexType>>
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<EdgeType extends AbstractEdge<EdgeType, ActualVertexType>>
-
addOutgoingEdge
-
getFirstOutgoingEdge
EdgeType getFirstOutgoingEdge() -
addIncomingEdge
-
getFirstIncomingEdge
EdgeType getFirstIncomingEdge() -
removeIncomingEdge
-
removeOutgoingEdge
-