Package org.eolang.opeo.ast
Class Opcode
java.lang.Object
org.eolang.opeo.ast.Opcode
Opcode output node.
- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty -
Constructor Summary
ConstructorsConstructorDescriptionOpcode(int opcode, boolean counting) Constructor.Constructor.Constructor.Constructor.Opcode(org.eolang.jeo.representation.xmir.XmlInstruction instruction) Constructor.Opcode(org.eolang.jeo.representation.xmir.XmlNode node) Constructor.Opcode(Instruction instruction) -
Method Summary
-
Constructor Details
-
Opcode
Constructor.- Parameters:
opcode- Opcodeoperands- Opcode operands
-
Opcode
public Opcode(int opcode, boolean counting) Constructor.- Parameters:
opcode- Opcodecounting- Opcodes counting
-
Opcode
Constructor.- Parameters:
opcode- Opcodeoperands- Opcode operands
-
Opcode
public Opcode(org.eolang.jeo.representation.xmir.XmlNode node) Constructor.- Parameters:
node- XMIR node.
-
Opcode
public Opcode(org.eolang.jeo.representation.xmir.XmlInstruction instruction) Constructor.- Parameters:
instruction- XMIR instruction.
-
Opcode
-
Opcode
Constructor.- Parameters:
bytecode- Bytecodeoperands- Opcode operandscounting- Opcodes counting
-
-
Method Details
-
toXmir
Description copied from interface:XmirConvert node to XMIR. -
opcodes
Description copied from interface:AstNodeBytecode instructions. -
opcode
public int opcode()Opcode number.- Returns:
- Opcode number.
-
params
Opcode operands.- Returns:
- Opcode operands.
-
operand
Instruction operand.- Parameters:
index- Operand index.- Returns:
- Instruction operand.
-
pretty
Pretty representation.- Returns:
- Human-readable string that represents the opcode.
-
disableCounting
public static void disableCounting()Disable opcodes counting. It is useful for tests.
-