ElementImpl.java 文件源码

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

项目:Eclipse-Postfix-Code-Completion 作者:
@Override
public <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
    A annotation = _env.getFactory().getAnnotation(getPackedAnnotationBindings(), annotationClass);
    if (annotation != null || this.getKind() != ElementKind.CLASS || annotationClass.getAnnotation(Inherited.class) == null)
        return annotation;

    ElementImpl superClass = (ElementImpl) _env.getFactory().newElement(((ReferenceBinding) this._binding).superclass());
    return superClass == null ? null : superClass.getAnnotation(annotationClass);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号