Class FlatDecompilerAPI

  • All Implemented Interfaces:
    Disposable

    public class FlatDecompilerAPI
    extends java.lang.Object
    implements Disposable
    • Constructor Summary

      Constructors 
      ChangeConstructor Description
      FlatDecompilerAPI()
      Initializes without a provided FlatProgramAPI instance...this must be set before using the FlatDecompilerAPI!
      FlatDecompilerAPI​(FlatProgramAPI flatProgramAPI)
      Initializes with a provided FlatProgramAPI instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      java.lang.String decompile​(Function function)
      Decompiles the specified function and returns a string containing the decompilation.
      java.lang.String decompile​(Function function, int timeoutSecs)
      Decompiles the specified function and returns a string containing the decompilation.
      void dispose()
      Disposes of the decompiler resources by calling currentDecompiler.dispose().
      DecompInterface getDecompiler()
      Gets the actual decompiler (may be null if not initialized).
      void initialize()
      Initializes the decompiler instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

  • Method Detail

    • getDecompiler

      public DecompInterface getDecompiler()
      Gets the actual decompiler (may be null if not initialized).
      Returns:
      the decompiler
    • decompile

      public final java.lang.String decompile​(Function function)
                                       throws java.lang.Exception
      Decompiles the specified function and returns a string containing the decompilation. This call does not impose a timeout.
      Parameters:
      function - the function to decompile
      Returns:
      a string containing the decompilation
      Throws:
      java.lang.Exception
    • decompile

      public final java.lang.String decompile​(Function function,
                                              int timeoutSecs)
                                       throws java.lang.Exception
      Decompiles the specified function and returns a string containing the decompilation.
      Parameters:
      function - the function to decompile
      timeoutSecs - maximum time allowed for decompile to complete.
      Returns:
      a string containing the decompilation
      Throws:
      java.lang.Exception
    • initialize

      public final void initialize()
                            throws java.lang.Exception
      Initializes the decompiler instance.
      Throws:
      java.lang.Exception
    • dispose

      public void dispose()
      Disposes of the decompiler resources by calling currentDecompiler.dispose().
      Specified by:
      dispose in interface Disposable