类com.intellij.psi.PsiElementFinder源码实例Demo

下面列出了怎么用com.intellij.psi.PsiElementFinder的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: flutter-intellij   文件: FlutterProjectSystem.java
@SuppressWarnings("override")
@NotNull
public Collection<PsiElementFinder> getPsiElementFinders() {
  Method finders = ReflectionUtil.getMethod(gradleProjectSystem.getClass(), "getPsiElementFinders");
  if (finders == null) {
    FlutterUtils.warn(LOG, "No method found: GradleProjectSystem.getPsiElementFinders()");
    return Collections.emptyList();
  }
  try {
    //noinspection unchecked
    return (Collection<PsiElementFinder>)finders.invoke(gradleProjectSystem);
  }
  catch (IllegalAccessException | InvocationTargetException e) {
    LOG.error(e);
    throw new IllegalArgumentException(e);
  }
}
 
源代码2 项目: flutter-intellij   文件: FlutterProjectSystem.java
@SuppressWarnings("override")
@NotNull
public Collection<PsiElementFinder> getPsiElementFinders() {
  Method finders = ReflectionUtil.getMethod(gradleProjectSystem.getClass(), "getPsiElementFinders");
  if (finders == null) {
    FlutterUtils.warn(LOG, "No method found: GradleProjectSystem.getPsiElementFinders()");
    return Collections.emptyList();
  }
  try {
    //noinspection unchecked
    return (Collection<PsiElementFinder>)finders.invoke(gradleProjectSystem);
  }
  catch (IllegalAccessException | InvocationTargetException e) {
    LOG.error(e);
    throw new IllegalArgumentException(e);
  }
}
 
源代码3 项目: intellij   文件: BlazeProjectSystem.java
@Nonnull
@Override
public Collection<PsiElementFinder> getPsiElementFinders() {
  return myFinders;
}
 
 类所在包
 类方法
 同包方法