Class StoreToArrayAgent

java.lang.Object
org.eolang.opeo.decompilation.agents.StoreToArrayAgent
All Implemented Interfaces:
DecompilationAgent

public final class StoreToArrayAgent extends Object implements DecompilationAgent
Store to array instruction handler. Store a reference in an array Opcodes: aastore Stack [before]->[after]: "arrayref, index, value →"
Since:
0.1
  • Constructor Details

    • StoreToArrayAgent

      public StoreToArrayAgent()
  • Method Details

    • 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.
    • handle

      public void handle(DecompilerState state)
      Description copied from interface: DecompilationAgent
      Handle the current state.
      Specified by:
      handle in interface DecompilationAgent
      Parameters:
      state - Current state to handle together with operand stack and variables.