Package org.eolang.opeo.jeo
Class JeoLabel
java.lang.Object
org.eolang.opeo.jeo.JeoLabel
- All Implemented Interfaces:
Instruction
Class that represents the label provided by jeo maven plugin.
This class mimics the bytecode instruction, although it is not an instruction.
Most probably we will need to refactor it and handle it differently.
- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.opeo.Instruction
Instruction.Nop
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Opcode number to mimic the bytecode instruction. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LABEL_OPCODE
public static final int LABEL_OPCODEOpcode number to mimic the bytecode instruction. Should be higher than any number of the real instructions. See: instructions- See Also:
-
-
Constructor Details
-
JeoLabel
public JeoLabel(org.eolang.jeo.representation.xmir.XmlLabel label) Constructor.- Parameters:
label
- Label.
-
-
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.
-