code: public JAnnotation []getDeclaredAnnotations()
    {
      if (_annotations == null) {
        Attribute attr = getAttribute("RuntimeVisibleAnnotations");
  
        if (attr instanceof OpaqueAttribute) {
          byte []buffer = ((OpaqueAttribute) attr).getValue();
  
          try {
            ByteArrayInputStream is = new ByteArrayInputStream(buffer);
  
            ConstantPool cp = _jClass.getConstantPool();
  
            _annotations = JavaAnnotation.parseAnnotations(is, cp,
                                                           getClassLoader());
          } catch (IOException e) {
            log.log(Level.FINER, e.toString(), e);
          }
        }
  
        if (_annotations == null) {
          _annotations = new JavaAnnotation[0];
        }
      }
  
      return _annotations;
    }
docs: Returns the declared annotations.