更新时间:2023-12-03 23:36:10
是的,只要将值设置为NaN,就可以使用AspectJ(面向方面的编程)引发错误.
Yes, you can use AspectJ (aspect oriented programming) to throw an error whenever a value is set to NaN.
本质上,您希望在设置值时进行拦截,并执行其他功能.
Essentially, you want to intercept whenever a value is set, and perform some other function.
我们已经在代码库中完成了类似的工作……但除此之外,我不能给您太多帮助.
We've done similar things in our codebase ... but I can't give you much help outside of that.