Пример #1
0
 private DecompiledDataFactory(ClsFileImpl clsFile) {
   myClsFile = clsFile;
   Project project = myClsFile.getProject();
   JavaSemanticServices jss = new JavaSemanticServices(project, new BindingTraceContext());
   myBindingContext = jss.getTrace().getBindingContext();
   myJavaDescriptorResolver = jss.getDescriptorResolver();
 }
Пример #2
0
 @NotNull
 private PsiClass findClass(String qualifiedName) {
   Project project = getProject();
   JavaSemanticServices javaSemanticServices =
       new JavaSemanticServices(project, new BindingTraceContext());
   return javaSemanticServices.getDescriptorResolver().findClass(new FqName(qualifiedName));
 }