Class SocomoFacade

java.lang.Object
pl.gdela.socomo.SocomoFacade

public class SocomoFacade
extends java.lang.Object
Facade for easy invocation of whole socomo flow, from bytecode analysis up to building dependency visualiser.
  • Constructor Summary

    Constructors
    Constructor Description
    SocomoFacade​(java.lang.String moduleName)  
  • Method Summary

    Modifier and Type Method Description
    void analyzeBytecode​(java.io.File input)
    Analyzes bytecode found in given input.
    void chooseLevel​(java.lang.String levelName)
    Choose level to be displayed on the diagram.
    void display()
    Opens created visualizer file in the browser.
    void guessLevel()
    Guesses what will be the most interesting level.
    void visualizeInto​(java.io.File htmlFile, java.io.File dataFile)
    Builds the composition visualizer into given files.

    Methods inherited from class java.lang.Object

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

    • SocomoFacade

      public SocomoFacade​(java.lang.String moduleName)
  • Method Details

    • analyzeBytecode

      public void analyzeBytecode​(java.io.File input)
      Analyzes bytecode found in given input.
      Parameters:
      input - *.jar file or directory with *.class files
      See Also:
      BytecodeAnalyzer
    • guessLevel

      public void guessLevel()
      Guesses what will be the most interesting level.
      See Also:
      LevelGuesser
    • chooseLevel

      public void chooseLevel​(java.lang.String levelName)
      Choose level to be displayed on the diagram.
      Parameters:
      levelName - the name of the package
    • visualizeInto

      public void visualizeInto​(java.io.File htmlFile, java.io.File dataFile)
      Builds the composition visualizer into given files.
      Parameters:
      htmlFile - the html output file which opened in a browser starts the visualizer, typically named socomo.html
      dataFile - the data output file that contains detailed data about analyzed code, typically named socomo.data
    • display

      public void display()
      Opens created visualizer file in the browser.