edu.umd.cs.findbugs.ba.type
Class InheritanceGraphEdge

java.lang.Object
  extended by edu.umd.cs.findbugs.graph.AbstractEdge<InheritanceGraphEdge,ObjectType>
      extended by edu.umd.cs.findbugs.ba.type.InheritanceGraphEdge
All Implemented Interfaces:
GraphEdge<InheritanceGraphEdge,ObjectType>, java.lang.Comparable<InheritanceGraphEdge>

public class InheritanceGraphEdge
extends AbstractEdge<InheritanceGraphEdge,ObjectType>

An edge in the graph of direct inheritance (supertype/subtype) relationships. ObjectType objects are the vertices in the inheritance graph.

Author:
David Hovemeyer

Field Summary
private  int type
           
 
Constructor Summary
InheritanceGraphEdge(ObjectType subtype, ObjectType supertype)
          Constructor.
 
Method Summary
 int getType()
          Get the type of inheritance edge.
(package private)  void setType(int type)
          Set the type of inheritance edge.
 
Methods inherited from class edu.umd.cs.findbugs.graph.AbstractEdge
compareTo, getLabel, getSource, getTarget, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private int type
Constructor Detail

InheritanceGraphEdge

InheritanceGraphEdge(ObjectType subtype,
                     ObjectType supertype)
Constructor.

Parameters:
subtype - the subtype
supertype - the supertype
Method Detail

setType

void setType(int type)
Set the type of inheritance edge.

Parameters:
type - the type of inheritance edge
See Also:
InheritanceGraphEdgeTypes

getType

public int getType()
Get the type of inheritance edge.

Returns:
type the type of inheritance edge
See Also:
InheritanceGraphEdgeTypes