public AnnotationDesc[] annotations() {
        if (!type.isAnnotated()) {
            return new AnnotationDesc[0];
        }
        List<? extends TypeCompound> tas = type.getAnnotationMirrors();
        AnnotationDesc res[] = new AnnotationDesc[tas.length()];
        int i = 0;
        for (Attribute.Compound a : tas) {
            res[i++] = new AnnotationDescImpl(env, a);
        }
        return res;
    }
public AnnotationDesc [ ] annotations ( ) { if ( ! type . isAnnotated ( ) ) { return new AnnotationDesc [ 0 ] ; } List < ? extends TypeCompound > tas = type . getAnnotationMirrors ( ) ; AnnotationDesc res [ ] = new AnnotationDesc [ tas . length ( ) ] ; int i = 0 ; for ( Attribute . Compound a : tas ) { res [ i ++ ] = new AnnotationDescImpl ( env , a ) ; } return res ; }
Get the annotations of this program element.
Return an empty array if there are none.