span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/annotation/Annotation.html" title="class or interface in java.lang.annotation" class="external-link">Annotation</a>[]</span>&nbsp;<span class="element-name">getAnnotations</span>()</div>
<div class="block">Obtain the annotations on the method to which the associated expression
 resolves.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The annotations on the method to which the associated expression
      