Java 类com.intellij.psi.impl.source.resolve.StaticImportResolveProcessor 实例源码

项目:intellij-ce-playground    文件:PsiImportStaticReferenceElementImpl.java   
@NotNull
@Override
public JavaResolveResult[] resolve(@NotNull final PsiImportStaticReferenceElementImpl referenceElement, final boolean incompleteCode) {
  final PsiElement qualifier = referenceElement.getQualifier();
  if (!(qualifier instanceof PsiJavaCodeReferenceElement)) return JavaResolveResult.EMPTY_ARRAY;
  final PsiElement target = ((PsiJavaCodeReferenceElement)qualifier).resolve();
  if (!(target instanceof PsiClass)) return JavaResolveResult.EMPTY_ARRAY;
  final StaticImportResolveProcessor processor = new StaticImportResolveProcessor(referenceElement);
  target.processDeclarations(processor, ResolveState.initial(), referenceElement, referenceElement);
  return processor.getResults();
}
项目:tools-idea    文件:PsiImportStaticReferenceElementImpl.java   
@NotNull
@Override
public JavaResolveResult[] resolve(@NotNull final PsiImportStaticReferenceElementImpl referenceElement, final boolean incompleteCode) {
  final PsiElement qualifier = referenceElement.getQualifier();
  if (!(qualifier instanceof PsiJavaCodeReferenceElement)) return JavaResolveResult.EMPTY_ARRAY;
  final PsiElement target = ((PsiJavaCodeReferenceElement)qualifier).resolve();
  if (!(target instanceof PsiClass)) return JavaResolveResult.EMPTY_ARRAY;
  final StaticImportResolveProcessor processor = new StaticImportResolveProcessor(referenceElement);
  target.processDeclarations(processor, ResolveState.initial(), referenceElement, referenceElement);
  return processor.getResults();
}
项目:consulo-java    文件:PsiImportStaticReferenceElementImpl.java   
@NotNull
@Override
public JavaResolveResult[] resolve(@NotNull final PsiImportStaticReferenceElementImpl referenceElement, final boolean incompleteCode) {
  final PsiElement qualifier = referenceElement.getQualifier();
  if (!(qualifier instanceof PsiJavaCodeReferenceElement)) return JavaResolveResult.EMPTY_ARRAY;
  final PsiElement target = ((PsiJavaCodeReferenceElement)qualifier).resolve();
  if (!(target instanceof PsiClass)) return JavaResolveResult.EMPTY_ARRAY;
  final StaticImportResolveProcessor processor = new StaticImportResolveProcessor(referenceElement);
  target.processDeclarations(processor, ResolveState.initial(), referenceElement, referenceElement);
  return processor.getResults();
}