摘要: /** * @author :ZackZhou * @date :Created in 2020/9/15 2:04 PM * @description : * @modified By: * @version: */ //write file and read content //short fi 阅读全文
posted @ 2020-10-20 14:30 ZackZhou 阅读(718) 评论(0) 推荐(0) 编辑
摘要: Groovy 中有多种途径实现向原有类添加方法,具体有如下几种: MOP(meta object protocol) -- 详见 ExpandoMetaClass 扩展方法 -- GDK采用的此方法 Category 注解 -- 影响范围可控 Mixin 下面看下代码: /** * @author 阅读全文
posted @ 2020-10-20 11:09 ZackZhou 阅读(452) 评论(0) 推荐(0) 编辑