我可以在 Groovy 中编写注释吗? [英] Can I write annotations in Groovy?

查看:29
本文介绍了我可以在 Groovy 中编写注释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在 Groovy 中使用注释来注释我的类,但是我可以在 Groovy 中编写注释本身吗(而不是仅使用用 Java 编写的注释)?如果是,从哪个版本开始?

I know I can annotate my classes in Groovy with annotations, but can I write the annotation itself in Groovy (as opposed to just using annotation written in Java)? If so, from what version?

推荐答案

您可以在 Groovy 中定义注释.

You can define annotations in Groovy.

查看更多:http://docs.groovy-lang.org/latest/html/documentation/#_注解

这篇关于我可以在 Groovy 中编写注释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆