public interface AnnotationMirror
应使用equals
方法比较equals
。 不能保证任何特定的注释始终由同一个对象表示。
Modifier and Type | Method and Description |
---|---|
DeclaredType |
getAnnotationType()
返回此注释的类型。
|
Map<? extends ExecutableElement,? extends AnnotationValue> |
getElementValues()
返回此注释元素的值。
|
DeclaredType getAnnotationType()
Map<? extends ExecutableElement,? extends AnnotationValue> getElementValues()
请注意,标记注释类型的注释镜像将定义为空贴图。
要填写默认值,请使用getElementValuesWithDefaults
。
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.