Declaration.java 文件源码

java
阅读 78 收藏 0 点赞 0 评论 0

项目:kawa-mirror 作者:
public void compileAnnotations (AttrContainer container, ElementType etype)
{
  if (container == null)
    return;
  int n = numAnnotations();
  for (int i = 0;  i < n;  i++)
    {
      Object ann = getAnnotation(i).valueIfConstant();
      if (ann != null)
        {
          AnnotationEntry ae = (AnnotationEntry) Proxy.getInvocationHandler(ann);
          if (container != null && ae.hasTarget(etype))
            RuntimeAnnotationsAttr.maybeAddAnnotation(container, ae);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号