Class XmlInstruction

    • Constructor Detail

      • XmlInstruction

        public XmlInstruction​(String xml)
        Constructor.
        Parameters:
        xml - XML node as String.
      • XmlInstruction

        public XmlInstruction​(int opcode,
                              Object... args)
        Constructor.
        Parameters:
        opcode - Opcode.
        args - Arguments.
      • XmlInstruction

        public XmlInstruction​(Node node)
        Constructor.
        Parameters:
        node - Instruction node.
    • Method Detail

      • writeTo

        public void writeTo​(BytecodeMethod method)
        Description copied from interface: XmlBytecodeEntry
        Write instruction to the bytecode method.
        Specified by:
        writeTo in interface XmlBytecodeEntry
        Parameters:
        method - Bytecode Method where instruction should be written.
      • opcode

        public int opcode()
        Instruction code.
        Returns:
        Code.
      • operands

        public Object[] operands()
        Instruction arguments.
        Returns:
        Arguments.
      • toNode

        public XmlNode toNode()
        Get XML node.
        Returns:
        XML node.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object