Home > Back-end >  If there is a framework can change the variable scope after annotation?
If there is a framework can change the variable scope after annotation?

Time:10-03

Such as defining @ shouldPublic annotations, compile variable scope for public

@ shouldPublic
Private int value.

Through compile-time annotation to generate intermediate files
Public int value.

Whether there is such a framework?

CodePudding user response:

This framework.
There was an aspectj maven - plugin maven plugin can achieve similar functionality, but still don't meet your demand, your demand is too mainstream, why don't you directly to the public... Or reflection calls may be used

CodePudding user response:

reference 1st floor maradona1984 response:
this framework.
There was an aspectj maven - plugin maven plugin can achieve similar functionality, but still don't meet your demand, your demand is too mainstream, why don't you directly to the public... Or reflection calls can be

Because of some special requirements...
I study the framework, not make the wheels, thank you for your bosses
  • Related