请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

process()方法的返回值表示什么?

process()方法返回的boolean类型,表示什么意思?什么时候应该是true?

正在回答 回答被采纳积分+3

1回答

allenfeng 2021-03-12 14:52:02

可以查阅 官方文档

Processes a set of annotation types on type elements originating from the prior round and returns whether or not these annotation types are claimed by this processor. If true is returned, the annotation types are claimed and subsequent processors will not be asked to process them; if false is returned, the annotation types are unclaimed and subsequent processors may be asked to process them. A processor may always return the same boolean value or may vary the result based on chosen criteria.

如果当前注解处理器已经处理了传递进来的注解,你不希望它们被传递给剩余其他注解处理器的话,返回true。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信