@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);
}
ElementImpl.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:Eclipse-Postfix-Code-Completion
作者:
评论列表
文章目录