Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="res"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
65 changes: 65 additions & 0 deletions res/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
The <a href="http://www.clarkware.com/software/JDepend.html">JDepend</a> utility
analyzes directories of Java class files and generates the following metrics for
each Java package.

<p>
<ul>
<li>Afferent Coupling (Ca)
<p>
The number of packages that depend upon the classes within the analyzed
package.
</p>
</li>
<li>Efferent Coupling (Ce)
<p>
The number of packages that the classes in the analyzed package depend upon.
</p>
</li>
<li>Abstractness (A)
<p>
The ratio of the number of abstract classes (and interfaces) in the analyzed
package to the total number of classes in the analyzed package.
</p>
<p>
The range for this metric is 0 to 1, with A=0 indicating a completely
concrete package and A=1 indicating a completely abstract package.
</p>
</li>
<li>Instability (I)
<p>
The ratio of efferent coupling (Ce) to total coupling (Ce + Ca) such that I =
Ce / (Ce + Ca).
</p>
<p>
The range for this metric is 0 to 1, with I=0 indicating a completely stable
package and I=1 indicating a completely instable package.
</p>
</li>
<li>Distance from the Main Sequence (D)
<p>
The perpendicular distance of a package from the idealized line A + I = 1. A
package coincident with the main sequence is optimally balanced with respect
to its abstractness and stability. Ideal packages are either completely
abstract and stable (x=0, y=1) or completely concrete and instable (x=1,
y=0).
</p>
<p>
The range for this metric is 0 to 1, with D=0 indicating a package that is
coincident with the main sequence and D=1 indicating a package that is as far
from the main sequence as possible.
</p>
</li>
<li>Package Dependency Cycle
<p>
Package dependency cycles are reported along with the paths of packages
participating in package dependency cycles.
</p>
</li>
</ul>
<p>
These metrics are hereafter referred to as the "Martin Metrics", as they are
credited to Robert Martin (Object Mentor Inc.) and referenced in the book
"Designing Object Oriented C++ Applications using the Booch Method", by
Robert C. Martin, Prentice Hall, 1995.
</p>

62 changes: 62 additions & 0 deletions res/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
body {
background-color: #eeeeee;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
}

h1 {
font-size: 24pt;
color: #023264;
font-family: Arial;
font-weight: bold;
font-family: Arial
}

h2 {
color: white;
background-color: #023264;
}

h3 {
font-size: 14pt;
color: #023264;
}

#hor-minimalist-b {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 45px;
width: 80%;
border-collapse: collapse;
text-align: left;
}

#hor-minimalist-b th {
font-size: 14px;
font-weight: normal;
color: #039;
padding: 10px 8px;
border-bottom: 2px solid #6678b1;
}

#hor-minimalist-b td {
border-bottom: 1px solid #ccc;
color: #669;
padding: 6px 8px;
}

#hor-minimalist-b tbody tr:hover td {
color: #009;
}

.message {
color: #aaaaaa;
font-size: 0.8em;
}

.footer {
color: #aaaaaa;
font-size: 0.8em;
text-align: center;
margin-top: 3em;
}
3 changes: 1 addition & 2 deletions src/jdepend/framework/AbstractParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public abstract class AbstractParser {

private ArrayList parseListeners;
private PackageFilter filter;
public static boolean DEBUG = false;

public static final boolean DEBUG = Boolean.parseBoolean( System.getProperty( "jdepend.debug", "false" ) );

public AbstractParser() {
this(new PackageFilter());
Expand Down
2 changes: 0 additions & 2 deletions src/jdepend/framework/ClassFileParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,6 @@ public String toString() {
public static void main(String args[]) {
try {

ClassFileParser.DEBUG = true;

if (args.length <= 0) {
System.err.println("usage: ClassFileParser <class-file>");
System.exit(0);
Expand Down
Loading