Java 类com.intellij.util.xml.DomReflectionUtil 实例源码

项目:intellij-ce-playground    文件:ImplementationClassCache.java   
private Class calcImplementationClass(Class concreteInterface) {
  final TreeSet<Class> set = new TreeSet<Class>(CLASS_COMPARATOR);
  findImplementationClassDFS(concreteInterface, set);
  if (!set.isEmpty()) {
    return set.first();
  }
  final Implementation implementation = DomReflectionUtil.findAnnotationDFS(concreteInterface, Implementation.class);
  return implementation == null ? concreteInterface : implementation.value();
}
项目:tools-idea    文件:ImplementationClassCache.java   
private Class calcImplementationClass(Class concreteInterface) {
  final TreeSet<Class> set = new TreeSet<Class>(CLASS_COMPARATOR);
  findImplementationClassDFS(concreteInterface, set);
  if (!set.isEmpty()) {
    return set.first();
  }
  final Implementation implementation = DomReflectionUtil.findAnnotationDFS(concreteInterface, Implementation.class);
  return implementation == null ? concreteInterface : implementation.value();
}
项目:consulo-xml    文件:ImplementationClassCache.java   
private Class calcImplementationClass(Class concreteInterface) {
  final TreeSet<Class> set = new TreeSet<Class>(CLASS_COMPARATOR);
  findImplementationClassDFS(concreteInterface, set);
  if (!set.isEmpty()) {
    return set.first();
  }
  final Implementation implementation = DomReflectionUtil.findAnnotationDFS(concreteInterface, Implementation.class);
  return implementation == null ? concreteInterface : implementation.value();
}