Package com.jeantessier.dependency

Build forests of packages, classes, and features and their dependencies.

See:
          Description

Interface Summary
DependencyListener  
TraversalStrategy  
Visitor  
 

Class Summary
ClassNode  
CodeDependencyCollector Traverses a Classfile and extracts dependencies from its code.
DecoratorTraversalStrategy  
DependencyEvent  
FeatureNode  
GraphCopier  
GraphSummarizer  
LinkMaximizer  
LinkMinimizer  
MetricsGatherer  
MetricsReport  
Node  
NodeFactory  
NodeHandler  
NodeLoader  
PackageNode  
Printer  
SelectiveTraversalStrategy  
SortedTraversalStrategy  
TextPrinter  
TransitiveClosure Creates a sub-graph of Nodes based on a scope and filtering rules.
VisitorBase This is a basic implementation of Visitor.
XMLPrinter  
 

Package com.jeantessier.dependency Description

Build forests of packages, classes, and features and their dependencies. Each node can cross-reference other nodes in the forest, according to dependencies within the code.

Here are the core abstractions. At the code are Node and its subclasses. The NodeFactory creates Node instances. The Visitor implementations traverse dependency graphs and perform custom operations. For instance, the GraphSummarizer is used to perform queries and the Printer subclasses do textual rendering.


Visitors

CodeDependencyCollector traverses .class files and builds the dependency graph along the way, using a NodeFactory.


CodeDependencyCollector

Another way to build a dependency graph is to load one that was saved to an XML document. Dependency Finder uses SAX in the form of NodeLoader and NodeHandler. The latter, again, uses a NodeFactory to build the actual in memory representation.


SAX