Package pl.gdela.socomo.bytecode
Class BytecodeAnalyzer
java.lang.Object
pl.gdela.socomo.bytecode.BytecodeAnalyzer
public class BytecodeAnalyzer
extends java.lang.Object
Analyzes bytecode to discover source classes and members and their dependencies.
-
Constructor Summary
Constructors Constructor Description BytecodeAnalyzer(DependencyCollector collector)Creates analyzer that will emit information to the given collector. -
Method Summary
Modifier and Type Method Description voidanalyzeDir(java.io.File dir)Analyzes all*.classfiles from a given directory and its subdirectories.voidanalyzeFile(java.io.File bytecodeFile)Analyzes single*.classfile.voidanalyzeFiles(java.util.Collection<java.io.File> bytecodeFiles)Analyzes collection of*.classfiles.voidanalyzeJar(java.io.File jar)Analyzes all*.classfiles from a given*.jararchive.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BytecodeAnalyzer
Creates analyzer that will emit information to the given collector.
-
-
Method Details
-
analyzeJar
public void analyzeJar(java.io.File jar)Analyzes all*.classfiles from a given*.jararchive. -
analyzeDir
public void analyzeDir(java.io.File dir)Analyzes all*.classfiles from a given directory and its subdirectories. -
analyzeFiles
public void analyzeFiles(java.util.Collection<java.io.File> bytecodeFiles)Analyzes collection of*.classfiles. -
analyzeFile
public void analyzeFile(java.io.File bytecodeFile)Analyzes single*.classfile.
-