Package org.eolang.opeo.jeo
Class JeoInstruction
- java.lang.Object
-
- org.eolang.opeo.jeo.JeoInstruction
-
- All Implemented Interfaces:
Instruction
public final class JeoInstruction extends Object implements Instruction
Class that represents the instruction provided by jeo maven plugin.- Since:
- 0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.Instruction
Instruction.Nop
-
-
Constructor Summary
Constructors Constructor Description JeoInstruction(org.eolang.jeo.representation.xmir.XmlInstruction instruction)
Constructor.
-
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.
-
-