Package org.eolang.opeo
Class OpcodeInstruction
java.lang.Object
org.eolang.opeo.OpcodeInstruction
- All Implemented Interfaces:
Instruction
Instruction that was created directly in Java code.
This class is useful for testing purposes.
In real scenarios we mostly use
JeoInstruction
.- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.opeo.Instruction
Instruction.Nop
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OpcodeInstruction
Constructor.- Parameters:
code
- Opcode indexargs
- Operands
-
-
Method Details
-
opcode
public int opcode()Description copied from interface:Instruction
Opcode number.- Specified by:
opcode
in interfaceInstruction
- Returns:
- Opcode number.
-
operand
Description copied from interface:Instruction
Retrieve operand by position index.- Specified by:
operand
in interfaceInstruction
- Parameters:
index
- Operand index- Returns:
- Operand
-
operands
Description copied from interface:Instruction
Full list of operands.- Specified by:
operands
in interfaceInstruction
- Returns:
- Operands.
-