Package org.eolang.opeo.ast
Class Opcode
- java.lang.Object
-
- org.eolang.opeo.ast.Opcode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
disableCounting()
Disable opcodes counting.List<AstNode>
opcodes()
Bytecode instructions.Iterable<org.xembly.Directive>
toXmir()
Convert node to XMIR.
-
-
-
Constructor Detail
-
Opcode
public Opcode(int opcode, Object... operands)
Constructor.- Parameters:
opcode
- Opcodeoperands
- Opcode operands
-
Opcode
public Opcode(int opcode, boolean counting)
Constructor.- Parameters:
opcode
- Opcodecounting
- Opcodes counting
-
Opcode
public Opcode(int opcode, List<Object> operands)
Constructor.- Parameters:
opcode
- Opcodeoperands
- Opcode operands
-
-
Method Detail
-
toXmir
public Iterable<org.xembly.Directive> toXmir()
Description copied from interface:Xmir
Convert node to XMIR.
-
opcodes
public List<AstNode> opcodes()
Description copied from interface:AstNode
Bytecode instructions.
-
disableCounting
public static void disableCounting()
Disable opcodes counting. It is useful for tests.
-
-