What is the reverse writing technique called?

This writing technique is also called "reverse writing" and "subject-object shift".

"Pairing writing" is one of the common expressions of ancient Chinese poetry, which is often encountered in middle school poetry appreciation. The so-called "opposite writing" means that the lyric hero deliberately puts aside himself and writes from the other side's point of view, thus expressing his thoughts sincerely and vividly, expressing his deep feelings tactfully and truly, and making the poetic mood more profound.

"Moving flowers from the subject to the object" is a way to empathize with the scenery and characters, and it is one of the commonly used expressions in Chinese classical poetry, also known as "antithesis". It is clearly what the protagonist did to the other side, but the author does not directly describe it, but writes from the other side's point of view, expressing his deep affection in a graceful and implicit way.