Class SelectiveDecompiler

java.lang.Object
org.eolang.opeo.SelectiveDecompiler
All Implemented Interfaces:
Decompiler

public final class SelectiveDecompiler extends Object implements Decompiler
Selective decompiler. Decompiler that decompiles ONLY fully understandable methods. These methods contain only instructions that are supported by RouterHandler.
Since:
0.1
  • Constructor Details

    • SelectiveDecompiler

      public SelectiveDecompiler(Path input, Path output, Path modified)
      Constructor.
      Parameters:
      input - Input folder with XMIRs.
      output - Output folder where to save the decompiled files.
      modified - Folder where to save the modified XMIRs.
    • SelectiveDecompiler

      public SelectiveDecompiler(Path input, Path output)
      Constructor.
      Parameters:
      input - Input folder with XMIRs.
      output - Output folder where to save the decompiled files.
    • SelectiveDecompiler

      public SelectiveDecompiler(Path input, Path output, String... supported)
      Constructor.
      Parameters:
      input - Input folder with XMIRs.
      output - Output folder where to save the decompiled files.
      supported - Supported opcodes are used in selection.
    • SelectiveDecompiler

      public SelectiveDecompiler(Path input, Path output, Path modified, String... supported)
      Constructor.
      Parameters:
      input - Input folder with XMIRs.
      output - Output folder where to save the decompiled files.
      modified - Folder where to save the modified XMIRs.
      supported - Supported opcodes are used in selection.
    • SelectiveDecompiler

      public SelectiveDecompiler(Storage storage, String... supported)
      Constructor.
      Parameters:
      storage - Storage from which retrieve the XMIRs and where to save the modified ones.
      supported - Supported opcodes are used in selection.
    • SelectiveDecompiler

      public SelectiveDecompiler(Storage storage, Storage modified, String... supported)
      Constructor.
      Parameters:
      storage - Storage from which retrieve the XMIRs and where to save the modified ones.
      modified - Storage where to save the modified of each decompiled file.
      supported - Supported opcodes are used in selection.
  • Method Details

    • decompile

      public void decompile()
      Description copied from interface: Decompiler
      Decompile EO to high-level EO. EO represented by XMIR.
      Specified by:
      decompile in interface Decompiler