接口 | 描述 |
---|---|
Annotation |
所有注释类型扩展的通用接口。
|
Enum | 描述 |
---|---|
ElementType |
这个枚举类型的常数提供了一个简单的分类,句法位置注释可以出现在一个java程序。
|
RetentionPolicy |
注释保留策略。
|
异常 | 描述 |
---|---|
AnnotationTypeMismatchException |
抛出表示程序试图访问一个注释的类型编译后的注释变元(或序列化)。
|
IncompleteAnnotationException |
抛出一个程序试图访问一个注释类型,编译后的注释添加到注释类型定义一个元素(或序列化)。
|
Error | 描述 |
---|---|
AnnotationFormatError |
当注释解析器试图读取一个类文件注释和注释是错误决定。
|
Annotation Type | 描述 |
---|---|
Documented |
表明一个类型的注释被javadoc默认文件。
|
Inherited |
表示一个注释类型是自动继承的。
|
Native |
指示定义一个常量值的字段可以从本机代码中引用。
|
Repeatable |
注释类型
java.lang.annotation.Repeatable 用来指示注释类型的声明它(元)诠释的是重复的。
|
Retention |
表示要保留带注释类型的注释的多长时间。
|
Target |
指示注释类型适用的上下文。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.