Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/bcel/BCELPublicClass.java
package com.kirkk.analyzer.framework.bcel;
import com.kirkk.analyzer.framework.JarClass;
import java.util.*;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;
import org.apache.bcel.classfile.ConstantPool;
import org.apache.bcel.classfile.ConstantUtf8;
import org.apache.bcel.classfile.DescendingVisitor;
public class BCELPublicClass implements JarClass {
//private JavaClass javaClass;
private static List ignorePackages;
private List importedPackages;
private List publicMethods;
private String packageName;
private String longName;
private boolean isAbstract;
private boolean isPublic;
private boolean isInterface;
public BCELPublicClass(String fileName, String className) throws Exception {
this(fileName, className, new ArrayList());
}
public BCELPublicClass(String fileName, String className, List ignorePackages) throws Exception {
this(BCELClassFactory.getClass(fileName, className), ignorePackages);
}
private BCELPublicClass(JavaClass javaClass, List ignorePackages) {
this.importedPackages = this.getImportedPackages(javaClass, ignorePackages);
//this.publicMethods = this.getPublicMethods(javaClass);
this.packageName = javaClass.getPackageName();
this.isAbstract = javaClass.isAbstract();
this.isPublic = javaClass.isPublic();
this.longName = javaClass.getClassName();
this.isInterface = javaClass.isInterface();
//this.javaClass = javaClass;
}
private List getImportedPackages(JavaClass javaClass, List ignorePackages) {
PackageVisitor pVisitor = new PackageVisitor(javaClass);
DescendingVisitor dVisitor = new DescendingVisitor(javaClass, pVisitor);
javaClass.accept(dVisitor);
return pVisitor.getImports(ignorePackages);
//return pVisitor.getNonJavaImports();
}
/*private List getPublicMethods(JavaClass javaClass) {
ArrayList arraylist = new ArrayList();
Method methods[] = javaClass.getMethods();
for(int i = 0; i < methods.length; i++) {
if (methods[i].isPublic()) {
arraylist.add(new BCELPublicMethod(methods[i]));
}
}
return arraylist;
}*/
public boolean isPublic() {
return this.isPublic;
}
public boolean isAbstract() {
return this.isAbstract;
}
public List getImportedPackageNames() {
return this.importedPackages;
}
public String getPackageName() {
return this.packageName;
}
public String getLongName() {
return this.longName;
}
/*public List getPublicMethods() {
return this.publicMethods;
}*/
public boolean isInterface() {
return this.isInterface;
}
}
⏎ com/kirkk/analyzer/framework/bcel/BCELPublicClass.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, ≈16🔥, 0💬
Popular Posts:
HttpComponents Core Source Code Files are provided in the source package file, httpcomponents-core-5...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...