Class DecompilerState

java.lang.Object
org.eolang.opeo.decompilation.DecompilerState

public final class DecompilerState extends Object
Internal state of decompiler. This state changes all the time between instruction handlers.
Since:
0.2
  • Constructor Details

    • DecompilerState

      public DecompilerState(LocalVariables vars)
      Constructor.
      Parameters:
      vars - Method local variables.
  • Method Details

    • instruction

      public Instruction instruction()
      Retrieve current bytecode instruction.
      Returns:
      Current bytecode instruction.
    • operand

      public Object operand(int index)
      Instruction operand.
      Parameters:
      index - Operand index.
      Returns:
      Instruction operand.
    • variable

      public AstNode variable(int index, org.objectweb.asm.Type type)
      Retrieve variable by index and type.
      Parameters:
      index - Variable index.
      type - Varaiable type.
      Returns:
      Variable node.
    • stack

      public OperandStack stack()
      Retrieve current stack.
      Returns:
      Operand stack.