Class IfAgent

  • All Implemented Interfaces:
    DecompilationAgent

    public final class IfAgent
    extends Object
    implements DecompilationAgent
    If instruction handler. [value1, value2] → [] If value1 is greater than value2, branch to instruction at branchoffset (signed short constructed from unsigned bytes branchbyte1 << 8 | branchbyte2)
    Since:
    0.2
    • Constructor Detail

      • IfAgent

        public IfAgent()
    • Method Detail

      • appropriate

        public boolean appropriate​(DecompilerState state)
        Description copied from interface: DecompilationAgent
        Check if the agent is suitable for the current state.
        Specified by:
        appropriate in interface DecompilationAgent
        Parameters:
        state - Current state.
        Returns:
        True if the agent is suitable for the current state.
      • supported

        public org.eolang.opeo.decompilation.agents.Supported supported()
        Description copied from interface: DecompilationAgent
        Supported opcodes.
        Specified by:
        supported in interface DecompilationAgent
        Returns:
        Supported opcodes.