The invention belongs to the technical field of medicaments, and in particular relates to a hetero-aromatic ring shown by a general formula (I) as well as a derivative type tyrosine kinase inhibitor, a pharmaceutically acceptable salt or a stereoisomer thereof, wherein X, Z, W, R1, R2, R3, L1, L2, a, b, c, d, e, p, q, A and B are as defined in the specification. The invention also relates to preparation methods of these compounds, a pharmaceutical preparation containing these compounds, and important functions of these compounds in preparation of medicaments for treating B cell related leukemia (such as B cell chronic lymphocytic carcinoma and non-hodgkin lymphoma) and autoimmune diseases (such as rheumatoid arthritis, systemic lupus erythematosus and the like).