Package org.eolang.opeo.decompilation
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 Summary
Constructors Constructor Description DecompilerState(LocalVariables vars)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instruction
instruction()
Retrieve current bytecode instruction.Object
operand(int index)
Instruction operand.OperandStack
stack()
Retrieve current stack.AstNode
variable(int index, org.objectweb.asm.Type type)
Retrieve variable by index and type.
-
-
-
Constructor Detail
-
DecompilerState
public DecompilerState(LocalVariables vars)
Constructor.- Parameters:
vars
- Method local variables.
-
-
Method Detail
-
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.
-
-