Class Opcode

  • All Implemented Interfaces:
    AstNode

    public final class Opcode
    extends Object
    implements AstNode
    Opcode output node.
    Since:
    0.1
    • Constructor Detail

      • Opcode

        public Opcode​(int opcode,
                      Object... operands)
        Constructor.
        Parameters:
        opcode - Opcode
        operands - Opcode operands
      • Opcode

        public Opcode​(int opcode,
                      List<Object> operands)
        Constructor.
        Parameters:
        opcode - Opcode
        operands - Opcode operands
      • Opcode

        public Opcode​(int bytecode,
                      List<Object> operands,
                      boolean counting)
        Constructor.
        Parameters:
        bytecode - Bytecode
        operands - Opcode operands
        counting - Opcodes counting
    • Method Detail

      • print

        public String print()
        Description copied from interface: AstNode
        Print ast node and all it's children.
        Specified by:
        print in interface AstNode
        Returns:
        String output.
      • toXmir

        public Iterable<org.xembly.Directive> toXmir()
        Description copied from interface: AstNode
        Convert node to XMIR.
        Specified by:
        toXmir in interface AstNode
        Returns:
        XMIR XML.