(self, binary, insn_addr, insn_size, capstone_operand, operand_str, mnemonic, operand_offset, syntax=None)
Constructor.

        :param Reassembler binary: The Binary analysis.
        :param int insn_addr: Address of the instruction.
        :param capstone_operand:
        :param str operand_str: the string representation of this operand
        :param str mnemonic: Mnemonic of the instruction that this operand belongs to.
        :param int operand_offset: offset of the operand into the instruction.
        :param str syntax: Provide a way to override the default syntax coming from `binary`.
        :return: None
Constructor.
Constructor .
def __init__(self, binary, insn_addr, insn_size, capstone_operand, operand_str, mnemonic, operand_offset, syntax=None):
        """
        Constructor.

        :param Reassembler binary: The Binary analysis.
        :param int insn_addr: Address of the instruction.
        :param capstone_operand:
        :param str operand_str: the string representation of this operand
        :param str mnemonic: Mnemonic of the instruction that this operand belongs to.
        :param int operand_offset: offset of the operand into the instruction.
        :param str syntax: Provide a way to override the default syntax coming from `binary`.
        :return: None
        """

        self.binary = binary
        self.project = binary.project
        self.insn_addr = insn_addr
        self.insn_size = insn_size
        self.operand_str = operand_str
        self.mnemonic = mnemonic
        self.operand_offset = operand_offset
        self.syntax = self.binary.syntax if syntax is None else syntax
        self.type = None
        self.size = capstone_operand.size

        # IMM
        self.is_coderef = None
        self.is_dataref = None
        self.label = None
        self.label_offset = 0

        # MEM
        self.base = None
        self.index = None
        self.scale = None
        self.disp = None

        self.disp_is_coderef = None
        self.disp_is_dataref = None
        self.disp_label = None
        self.disp_label_offset = 0

        self._initialize(capstone_operand)
def __init__ ( self , binary , insn_addr , insn_size , capstone_operand , operand_str , mnemonic , operand_offset , syntax = None ) : self . binary = binary self . project = binary . project self . insn_addr = insn_addr self . insn_size = insn_size self . operand_str = operand_str self . mnemonic = mnemonic self . operand_offset = operand_offset self . syntax = self . binary . syntax if syntax is None else syntax self . type = None self . size = capstone_operand . size # IMM self . is_coderef = None self . is_dataref = None self . label = None self . label_offset = 0 # MEM self . base = None self . index = None self . scale = None self . disp = None self . disp_is_coderef = None self . disp_is_dataref = None self . disp_label = None self . disp_label_offset = 0 self . _initialize ( capstone_operand )