The present invention relates to a compound of formula (I), or a pharmaceutically acceptable salt, a stereoisomer or a solvate thereof, wherein R1, R2, R3, R4, X, Y, A and B are as defined in the specification. The present invention further relates to a method for preparing these compounds, a pharmaceutical composition containing these compounds, and a use of these compounds in manufacture of a medicament for treating and/or preventing proliferative diseases.