DependencyFinder

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » DependencyFinder 
Dependency Finder (Code Analyzers)
License:BSD License
URL:http://depfind.sourceforge.net/
Description:Extracts dependencies and OO metrics from Java class files produced by most Java compilers.
Package NameComment
com.jeantessier.classreader com.jeantessier.classreader

Parse .class files and traverse their structure.

Start with either {@link com.jeantessier.classreader.AggregatingClassfileLoader} or {@link com.jeantessier.classreader.TransientClassfileLoader} to load .class files into memory, and then use {@link com.jeantessier.classreader.Classfile} to traverse the structures.

com.jeantessier.commandline com.jeantessier.commandline

Use CommandLine to parse and validate command line parameters.

com.jeantessier.dependency com.jeantessier.dependency

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
com.jeantessier.dependencyfinder com.jeantessier.dependencyfinder

Is the head of the hierarchy for all user-interface for Dependency Finder.

The classes in these sub-packages serve two purposes:

  1. Presentation layer for the application
  2. Examples of how to use the libraries that make up Dependency Finder

The first purpose is self-explanatory, but the second one deserves extra attention. The code in each class is meant to provide a one-stop example of how you can build tools using Dependency Finder. As such, I did not try to refactor common code into helper classes or create complex hierarchies. There is a fair bit of duplication and some of the code can be quite unsophisticated. This is done on purpose so that you can study any which one in isolation and understand how you can rool up your own.

Layers

You can think of {@link com.jeantessier.classreader} as a kind of read-only persistence, where we obtain data from compiled Java classes on the filesystem.

The packages {@link com.jeantessier.dependency}, {@link com.jeantessier.diff}, and {@link com.jeantessier.metrics} are where you will find all the logic for dealing with graphs and various results.

The packages {@link com.jeantessier.commandline} and {@link com.jeantessier.text} are utility packages.

Package layers
com.jeantessier.dependencyfinder.ant com.jeantessier.dependencyfinder.ant

Apache Ant task-based tools. These classes are the entry points for using the various tools as part of Ant build files.

com.jeantessier.dependencyfinder.cli com.jeantessier.dependencyfinder.cli

Command line interface tools. These classes are the entry points for the scripts of the various tools. Each tool has a -help switch that describes the various options for calling it.

com.jeantessier.dependencyfinder.gui com.jeantessier.dependencyfinder.gui

Graphical user interface tools. These classes are the entry points for the scripts of the various tools and their Swing-based utilities. Each tool has a -help switch that describes the various options for calling it.

com.jeantessier.dependencyfinder.web
com.jeantessier.dependencyfinder.webwork
com.jeantessier.diff com.jeantessier.diff

Compare two groups of classes with each other. The classes in this package compile API differences between the two groups.

com.jeantessier.metrics com.jeantessier.metrics

Compute various object-oriented metrics from .class classes.

Overall Structure

Measurements Hierarchy

com.jeantessier.text
three.words.packagename
twowords.packagename
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.