Class 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 AllAgents.
    Since:
    0.1
    • Constructor Detail

      • 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,
                                   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.
        Suppressed Checkstyle violations:
        ParameterNumberCheck (5 lines)
      • SelectiveDecompiler

        public SelectiveDecompiler​(Storage storage,
                                   Storage modified)
        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.
      • 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 Detail

      • 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