pub fn extract_annotations_from_attribute(
attr: &AttributeData<'_>,
) -> Result<Option<Vec<AnnotationStub>>, ClasspathError>Expand description
Extract all annotations from a cafebabe AttributeData value.
Returns Ok(Some(stubs)) if the attribute is an annotation attribute,
Ok(None) if it is a different attribute type. Returns Err only on
internal conversion failures (currently infallible, but the signature
allows for future extension).
This handles:
RuntimeVisibleAnnotations→is_runtime_visible = trueRuntimeInvisibleAnnotations→is_runtime_visible = false