Skip to main content

extract_parameter_annotations_from_attribute

Function extract_parameter_annotations_from_attribute 

Source
pub fn extract_parameter_annotations_from_attribute(
    attr: &AttributeData<'_>,
) -> Result<Option<Vec<Vec<AnnotationStub>>>, ClasspathError>
Expand description

Extract parameter annotations from a cafebabe AttributeData value.

Returns Ok(Some(stubs)) if the attribute is a parameter annotation attribute, Ok(None) if it is a different attribute type.

This handles:

  • RuntimeVisibleParameterAnnotationsis_runtime_visible = true
  • RuntimeInvisibleParameterAnnotationsis_runtime_visible = false