Package org.eolang.opeo.jeo
Class JeoLabel
- java.lang.Object
-
- org.eolang.opeo.jeo.JeoLabel
-
- All Implemented Interfaces:
Instruction
public final class JeoLabel extends Object implements 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
-
-
Field Summary
Fields Modifier and Type Field Description static intLABEL_OPCODEOpcode number to mimic the bytecode instruction.
-
Constructor Summary
Constructors Constructor Description JeoLabel(org.eolang.jeo.representation.xmir.XmlLabel label)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intopcode()Opcode number.Objectoperand(int index)Retrieve operand by position index.List<Object>operands()Full list of operands.
-
-
-
Field Detail
-
LABEL_OPCODE
public static final int LABEL_OPCODE
Opcode number to mimic the bytecode instruction. Should be higher than any number of the real instructions. See: instructions- See Also:
- Constant Field Values
-
-
Method Detail
-
opcode
public int opcode()
Description copied from interface:InstructionOpcode number.- Specified by:
opcodein interfaceInstruction- Returns:
- Opcode number.
-
operand
public Object operand(int index)
Description copied from interface:InstructionRetrieve operand by position index.- Specified by:
operandin interfaceInstruction- Parameters:
index- Operand index- Returns:
- Operand
-
operands
public List<Object> operands()
Description copied from interface:InstructionFull list of operands.- Specified by:
operandsin interfaceInstruction- Returns:
- Operands.
-
-