org.apache.commons.graph.domain.jdepend
Class JDependGraph

java.lang.Object
  extended byorg.apache.commons.graph.domain.basic.DirectedGraphImpl
      extended byorg.apache.commons.graph.domain.jdepend.JDependGraph
All Implemented Interfaces:
DirectedGraph, Graph, java.lang.reflect.InvocationHandler, MutableDirectedGraph, WeightedGraph

public class JDependGraph
extends DirectedGraphImpl
implements DirectedGraph


Field Summary
private  java.util.Map clazzMap
           
private  jdepend.framework.JDepend jdep
           
private  java.util.Map pkgMap
           
 
Fields inherited from class org.apache.commons.graph.domain.basic.DirectedGraphImpl
 
Constructor Summary
JDependGraph()
           
 
Method Summary
 void addDirectory(java.lang.String directory)
           
 void analyze()
           
private  ClassVertex findClassVertex(jdepend.framework.JavaClass clz)
          This not only finds the PackageVertex, but also adds it to the graph, if it isn't already there.
private  PackageVertex findPackageVertex(jdepend.framework.JavaPackage pkg)
          This not only finds the PackageVertex, but also adds it to the graph, if it isn't already there.
 
Methods inherited from class org.apache.commons.graph.domain.basic.DirectedGraphImpl
addContract, addEdge, addVertex, getEdges, getEdges, getInbound, getOutbound, getSource, getTarget, getVertices, getVertices, getWeight, invoke, removeContract, removeEdge, removeVertex, setWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.graph.DirectedGraph
getInbound, getOutbound, getSource, getTarget
 
Methods inherited from interface org.apache.commons.graph.Graph
getEdges, getEdges, getVertices, getVertices
 

Field Detail

jdep

private jdepend.framework.JDepend jdep

pkgMap

private java.util.Map pkgMap

clazzMap

private java.util.Map clazzMap
Constructor Detail

JDependGraph

public JDependGraph()
Method Detail

addDirectory

public void addDirectory(java.lang.String directory)
                  throws java.io.IOException
Throws:
java.io.IOException

findPackageVertex

private PackageVertex findPackageVertex(jdepend.framework.JavaPackage pkg)
This not only finds the PackageVertex, but also adds it to the graph, if it isn't already there.


findClassVertex

private ClassVertex findClassVertex(jdepend.framework.JavaClass clz)
This not only finds the PackageVertex, but also adds it to the graph, if it isn't already there.


analyze

public void analyze()