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
    void analyzeDir​(java.io.File dir)
    Analyzes all *.class files from a given directory and its subdirectories.
    void analyzeFile​(java.io.File bytecodeFile)
    Analyzes single *.class file.
    void analyzeFiles​(java.util.Collection<java.io.File> bytecodeFiles)
    Analyzes collection of *.class files.
    void analyzeJar​(java.io.File jar)
    Analyzes all *.class files from a given *.jar archive.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BytecodeAnalyzer

      public BytecodeAnalyzer​(DependencyCollector collector)
      Creates analyzer that will emit information to the given collector.
  • Method Details

    • analyzeJar

      public void analyzeJar​(java.io.File jar)
      Analyzes all *.class files from a given *.jar archive.
    • analyzeDir

      public void analyzeDir​(java.io.File dir)
      Analyzes all *.class files from a given directory and its subdirectories.
    • analyzeFiles

      public void analyzeFiles​(java.util.Collection<java.io.File> bytecodeFiles)
      Analyzes collection of *.class files.
    • analyzeFile

      public void analyzeFile​(java.io.File bytecodeFile)
      Analyzes single *.class file.