Element | 应用类型 | 释义 |
---|---|---|
ElementType.TYPE | 类 | Can be applied to any element of a class |
ElementType.FIELD | 成员变量 | Can be applied to a field |
ElementType.PARAMETER | 方法参数 | Can be applied to method parameters |
ElementType.CONSTRUCTOR | 构造器 | Can be applied to constructors |
ElementType.LOCAL_VARIABLE | 局部变量 | Can be applied to local variables |
ElementType.ANNOTATION_TYPE | 注解类型 | Indicates that the declared type itself is an annotation type |
@Target 的ElemenType释义
最新推荐文章于 2022-02-08 22:27:37 发布