org.apache.commons.graph.domain.jdepend
Class JDependGraph
java.lang.Object
org.apache.commons.graph.domain.basic.DirectedGraphImpl
org.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
|
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 |
jdep
private jdepend.framework.JDepend jdep
pkgMap
private java.util.Map pkgMap
clazzMap
private java.util.Map clazzMap
JDependGraph
public JDependGraph()
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()