Java 类com.intellij.psi.impl.java.stubs.index.JavaFieldNameIndex 实例源码

项目:intellij-ce-playground    文件:PsiShortNamesCacheImpl.java   
@NotNull
@Override
public PsiField[] getFieldsByName(@NotNull String name, @NotNull final GlobalSearchScope scope) {
  final Collection<PsiField> fields = JavaFieldNameIndex.getInstance().get(name, myManager.getProject(), scope);

  if (fields.isEmpty()) return PsiField.EMPTY_ARRAY;

  List<PsiField> list = filterMembers(fields, scope);
  return list.toArray(new PsiField[list.size()]);
}
项目:tools-idea    文件:PsiShortNamesCacheImpl.java   
@NotNull
@Override
public PsiField[] getFieldsByName(@NotNull String name, @NotNull final GlobalSearchScope scope) {
  final Collection<PsiField> fields = JavaFieldNameIndex.getInstance().get(name, myManager.getProject(), scope);

  if (fields.isEmpty()) return PsiField.EMPTY_ARRAY;

  List<PsiField> list = filterMembers(fields, scope);
  return list.toArray(new PsiField[list.size()]);
}
项目:consulo-java    文件:PsiShortNamesCacheImpl.java   
@NotNull
@Override
public PsiField[] getFieldsByName(@NotNull String name, @NotNull final GlobalSearchScope scope)
{
    final Collection<PsiField> fields = JavaFieldNameIndex.getInstance().get(name, myManager.getProject(), scope);

    if(fields.isEmpty())
    {
        return PsiField.EMPTY_ARRAY;
    }

    List<PsiField> list = filterMembers(fields, scope);
    return list.toArray(new PsiField[list.size()]);
}
项目:intellij-ce-playground    文件:PsiShortNamesCacheImpl.java   
@Override
@NotNull
public String[] getAllFieldNames() {
  return ArrayUtil.toStringArray(JavaFieldNameIndex.getInstance().getAllKeys(myManager.getProject()));
}
项目:intellij-ce-playground    文件:PsiShortNamesCacheImpl.java   
@Override
public void getAllFieldNames(@NotNull HashSet<String> set) {
  JavaFieldNameIndex.getInstance().processAllKeys(myManager.getProject(), new CommonProcessors.CollectProcessor<String>(set));
}
项目:tools-idea    文件:PsiShortNamesCacheImpl.java   
@Override
@NotNull
public String[] getAllFieldNames() {
  return ArrayUtil.toStringArray(JavaFieldNameIndex.getInstance().getAllKeys(myManager.getProject()));
}
项目:tools-idea    文件:PsiShortNamesCacheImpl.java   
@Override
public void getAllFieldNames(@NotNull HashSet<String> set) {
  JavaFieldNameIndex.getInstance().processAllKeys(myManager.getProject(), new CommonProcessors.CollectProcessor<String>(set));
}
项目:consulo-java    文件:PsiShortNamesCacheImpl.java   
@Override
@NotNull
public String[] getAllFieldNames()
{
    return ArrayUtil.toStringArray(JavaFieldNameIndex.getInstance().getAllKeys(myManager.getProject()));
}
项目:consulo-java    文件:PsiShortNamesCacheImpl.java   
@Override
public void getAllFieldNames(@NotNull HashSet<String> set)
{
    JavaFieldNameIndex.getInstance().processAllKeys(myManager.getProject(), new CommonProcessors.CollectProcessor<String>(set));
}