Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JarAnalyzer Source Code Files
Apache Ant Source Code Files are inside the JarAnalyzer source package like JarAnalyzer-src-1.2.zip. Unzip the source package and go to the "src" sub-directory, you will see source code files.
Here is the list of Java source code files of the JarAnalyzer 1.2 in \Users\fyicenter\JarAnalyzer\src:
✍: FYIcenter.com
⏎ com/kirkk/analyzer/framework/bcelbundle/JarMetricsImpl.java
package com.kirkk.analyzer.framework.bcelbundle; import com.kirkk.analyzer.framework.*; import java.math.BigDecimal; public class JarMetricsImpl implements JarMetrics { private Jar jar; public JarMetricsImpl(Jar jar) { this.jar = jar; } public BigDecimal calculateAbstractness() { int classCount = jar.getClassCount(); if (classCount == 0) { return new BigDecimal("-1.0"); } BigDecimal totalClassCount = new BigDecimal(new Integer(classCount).toString()); BigDecimal abstractClassCount = new BigDecimal(new Integer(jar.getAbstractClassCount()).toString()); return abstractClassCount.divide(totalClassCount,2, BigDecimal.ROUND_HALF_UP); } public BigDecimal calculateInstability() { int afferent = this.calculateAfferentCoupling(); int efferent = this.calculateEfferentCoupling(); if (afferent + efferent == 0) { return new BigDecimal("-1.0"); } BigDecimal top = new BigDecimal(new Integer(efferent).toString()); BigDecimal bottom = new BigDecimal(new Integer(afferent + efferent).toString()); return top.divide(bottom, 2, BigDecimal.ROUND_HALF_UP); } public int calculateEfferentCoupling() { return jar.getOutgoingDependencies().size(); } public int calculateAfferentCoupling() { return jar.getIncomingDependencies().size(); } public BigDecimal calculateDistance() { BigDecimal abstractness = this.calculateAbstractness(); BigDecimal instability = this.calculateInstability(); if ( abstractness.equals(new BigDecimal("-1.0")) || instability.equals(new BigDecimal("-1.0")) ) { return new BigDecimal("-1.0"); } return abstractness.add(instability).subtract(new BigDecimal("1.00")).abs(); } }
⏎ com/kirkk/analyzer/framework/bcelbundle/JarMetricsImpl.java
Or download all of them as a single archive file:
File name: JarAnalyzer-1.20-fyi.zip File size: 19949 bytes Release date: 2007-08-03 Download
⇐ Download JarAnalyzer Source Package
2021-07-01, 5002👍, 0💬
Popular Posts:
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
What Is poi-contrib-3.5.jar? poi-contrib-3.5.jar is one of the JAR files for Apache POI 3.5, which p...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...