Java 类com.intellij.psi.filters.getters.JavaMembersGetter 实例源码

项目:intellij-ce-playground    文件:JavaSmartCompletionContributor.java   
private static void addExpectedTypeMembers(CompletionParameters params,
                                           THashSet<ExpectedTypeInfo> mergedInfos,
                                           boolean quick,
                                           Consumer<LookupElement> consumer) {
  PsiElement position = params.getPosition();
  if (!JavaKeywordCompletion.AFTER_DOT.accepts(position)) {
    for (ExpectedTypeInfo info : mergedInfos) {
      new JavaMembersGetter(info.getType(), params).addMembers(!quick, consumer);
      if (!info.getDefaultType().equals(info.getType())) {
        new JavaMembersGetter(info.getDefaultType(), params).addMembers(!quick, consumer);
      }
    }
  }
}
项目:intellij-ce-playground    文件:JavaKeywordCompletion.java   
static void addExpectedTypeMembers(CompletionParameters parameters, final CompletionResultSet result) {
  if (parameters.getInvocationCount() <= 1) { // on second completion, StaticMemberProcessor will suggest those
    for (final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters)) {
      new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(false, result);
    }
  }
}
项目:consulo-java    文件:JavaSmartCompletionContributor.java   
private static void addExpectedTypeMembers(CompletionParameters params, THashSet<ExpectedTypeInfo> mergedInfos, boolean quick, Consumer<LookupElement> consumer)
{
    PsiElement position = params.getPosition();
    if(!JavaKeywordCompletion.AFTER_DOT.accepts(position))
    {
        for(ExpectedTypeInfo info : mergedInfos)
        {
            new JavaMembersGetter(info.getType(), params).addMembers(!quick, consumer);
            if(!info.getDefaultType().equals(info.getType()))
            {
                new JavaMembersGetter(info.getDefaultType(), params).addMembers(!quick, consumer);
            }
        }
    }
}
项目:consulo-java    文件:JavaCompletionContributor.java   
private static void addExpectedTypeMembers(CompletionParameters parameters, final Consumer<LookupElement> result)
{
    if(parameters.getInvocationCount() <= 1)
    { // on second completion, StaticMemberProcessor will suggest those
        for(final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters))
        {
            new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(false, result);
        }
    }
}
项目:tools-idea    文件:JavaCompletionData.java   
static void addExpectedTypeMembers(CompletionParameters parameters, final CompletionResultSet result) {
  for (final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters)) {
    new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(parameters.getInvocationCount() > 1, result);
  }
}