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:InstructionOpcode number.- Specified by:
opcodein interfaceInstruction- Returns:
- Opcode number.
-
operand
Description copied from interface:InstructionRetrieve operand by position index.- Specified by:
operandin interfaceInstruction- Parameters:
index- Operand index- Returns:
- Operand
-
operands
Description copied from interface:InstructionFull list of operands.- Specified by:
operandsin interfaceInstruction- Returns:
- Operands.
-