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.
    • 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.
      • hasOpcode

        public boolean hasOpcode​(int opcode)
        Description copied from interface: XmlBytecodeEntry
        Check if instruction has opcode.
        Specified by:
        hasOpcode in interface XmlBytecodeEntry
        Parameters:
        opcode - Opcode comparing with.
        Returns:
        True if instruction has opcode.
      • replaceArguementsValues

        public void replaceArguementsValues​(String old,
                                            String replacement)
        Description copied from interface: XmlBytecodeEntry
        Replace values of instruction arguments.
        Specified by:
        replaceArguementsValues in interface XmlBytecodeEntry
        Parameters:
        old - Old value.
        replacement - Which value to set instead.
      • arguments

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

        public int hashCode()
        Overrides:
        hashCode in class Object