Interface IRuntimeVisibleAnnotationsAttribute
- All Superinterfaces:
IClassFileAttribute
- All Known Implementing Classes:
RuntimeVisibleAnnotationsAttribute
Description of a runtime visible annotations attribute as described in the JVM specifications
(added in J2SE 1.5).
This interface may be implemented by clients.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAnswer back the annotations.intAnswer back the number of annotations as described in the JVM specifications.Methods inherited from interface IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndexModifier and TypeMethodDescriptionlongAnswer back the attribute length as specified in the JVM specifications.char[]Answer back the attribute name as specified in the JVM specifications.intAnswer back the attribute name index in the constant pool as specified in the JVM specifications.
-
Method Details
-
getAnnotationsNumber
int getAnnotationsNumber()Answer back the number of annotations as described in the JVM specifications.- Returns:
- the number of annotations
-
getAnnotations
IAnnotation[] getAnnotations()Answer back the annotations. Answers an empty collection if none.- Returns:
- the annotations. Answers an empty collection if none.
-