Package org.eolang.opeo
Class Instruction.Nop
- java.lang.Object
-
- org.eolang.opeo.Instruction.Nop
-
- All Implemented Interfaces:
Instruction
- Enclosing interface:
- Instruction
public static final class Instruction.Nop extends Object implements Instruction
Not an operation instruction. Stub class that is useful for some cases.- Since:
- 0.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.Instruction
Instruction.Nop
-
-
Constructor Summary
Constructors Constructor Description Nop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
opcode()
Opcode number.Object
operand(int index)
Retrieve operand by position index.List<Object>
operands()
Full list of operands.
-
-
-
Method Detail
-
opcode
public int opcode()
Description copied from interface:Instruction
Opcode number.- Specified by:
opcode
in interfaceInstruction
- Returns:
- Opcode number.
-
operand
public Object operand(int index)
Description copied from interface:Instruction
Retrieve operand by position index.- Specified by:
operand
in interfaceInstruction
- Parameters:
index
- Operand index- Returns:
- Operand
-
operands
public List<Object> operands()
Description copied from interface:Instruction
Full list of operands.- Specified by:
operands
in interfaceInstruction
- Returns:
- Operands.
-
-