public class CompositeShortNamesCache extends PsiShortNamesCache
EP_NAME| Constructor and Description |
|---|
CompositeShortNamesCache(Project project) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String [] |
getAllClassNames()
Returns the list of names of all classes in the project and
(optionally) libraries.
|
java.lang.String [] |
getAllFieldNames()
Returns the list of names of all fields in the project and
(optionally) libraries.
|
java.lang.String [] |
getAllFileNames()
Returns the list of names of all files in the project.
|
java.lang.String [] |
getAllMethodNames()
Returns the list of names of all methods in the project and
(optionally) libraries.
|
PsiClass [] |
getClassesByName(java.lang.String name,
GlobalSearchScope scope)
Returns the list of all classes with the specified name in the specified scope.
|
PsiField [] |
getFieldsByName(java.lang.String name,
GlobalSearchScope scope)
Returns the list of all fields with the specified name in the specified scope.
|
PsiField [] |
getFieldsByNameIfNotMoreThan(java.lang.String name,
GlobalSearchScope scope,
int maxCount) |
PsiFile [] |
getFilesByName(java.lang.String name)
Returns the list of files with the specified name.
|
PsiMethod [] |
getMethodsByName(java.lang.String name,
GlobalSearchScope scope)
Returns the list of all methods with the specified name in the specified scope.
|
PsiMethod [] |
getMethodsByNameIfNotMoreThan(java.lang.String name,
GlobalSearchScope scope,
int maxCount) |
boolean |
processAllClassNames(Processor<? super java.lang.String> processor) |
boolean |
processAllClassNames(Processor<? super java.lang.String> processor,
GlobalSearchScope scope,
IdFilter filter) |
boolean |
processAllFieldNames(Processor<? super java.lang.String> processor,
GlobalSearchScope scope,
IdFilter filter) |
boolean |
processAllMethodNames(Processor<? super java.lang.String> processor,
GlobalSearchScope scope,
IdFilter filter) |
boolean |
processClassesWithName(java.lang.String key,
Processor<? super PsiClass> processor,
GlobalSearchScope scope,
IdFilter filter) |
boolean |
processFieldsWithName(java.lang.String key,
Processor<? super PsiField> processor,
GlobalSearchScope scope,
IdFilter filter) |
boolean |
processMethodsWithName(java.lang.String name,
GlobalSearchScope scope,
Processor<? super PsiMethod> processor) |
boolean |
processMethodsWithName(java.lang.String name,
Processor<? super PsiMethod> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
java.lang.String |
toString() |
getAllClassNames, getInstancepublic CompositeShortNamesCache(Project project)
public PsiFile [] getFilesByName(java.lang.String name)
PsiShortNamesCachegetFilesByName in class PsiShortNamesCachename - the name of the files to find.public java.lang.String [] getAllFileNames()
PsiShortNamesCachegetAllFileNames in class PsiShortNamesCachepublic PsiClass [] getClassesByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCachegetClassesByName in class PsiShortNamesCachename - the non-qualified name of the classes to find.scope - the scope in which classes are searched.public java.lang.String [] getAllClassNames()
PsiShortNamesCachegetAllClassNames in class PsiShortNamesCachepublic boolean processAllClassNames(Processor<? super java.lang.String> processor)
processAllClassNames in class PsiShortNamesCachepublic boolean processAllClassNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllClassNames in class PsiShortNamesCachepublic boolean processAllMethodNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllMethodNames in class PsiShortNamesCachepublic boolean processAllFieldNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllFieldNames in class PsiShortNamesCachepublic PsiMethod [] getMethodsByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCachegetMethodsByName in class PsiShortNamesCachename - the name of the methods to find.scope - the scope in which methods are searched.public PsiMethod [] getMethodsByNameIfNotMoreThan(java.lang.String name, GlobalSearchScope scope, int maxCount)
getMethodsByNameIfNotMoreThan in class PsiShortNamesCachepublic PsiField [] getFieldsByNameIfNotMoreThan(java.lang.String name, GlobalSearchScope scope, int maxCount)
getFieldsByNameIfNotMoreThan in class PsiShortNamesCachepublic boolean processMethodsWithName(java.lang.String name,
GlobalSearchScope scope,
Processor<? super PsiMethod> processor)
processMethodsWithName in class PsiShortNamesCachepublic boolean processMethodsWithName(java.lang.String name,
Processor<? super PsiMethod> processor,
GlobalSearchScope scope,
IdFilter idFilter)
processMethodsWithName in class PsiShortNamesCachepublic java.lang.String [] getAllMethodNames()
PsiShortNamesCachegetAllMethodNames in class PsiShortNamesCachepublic PsiField [] getFieldsByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCachegetFieldsByName in class PsiShortNamesCachename - the name of the fields to find.scope - the scope in which fields are searched.public java.lang.String [] getAllFieldNames()
PsiShortNamesCachegetAllFieldNames in class PsiShortNamesCachepublic boolean processFieldsWithName(java.lang.String key,
Processor<? super PsiField> processor,
GlobalSearchScope scope,
IdFilter filter)
processFieldsWithName in class PsiShortNamesCachepublic boolean processClassesWithName(java.lang.String key,
Processor<? super PsiClass> processor,
GlobalSearchScope scope,
IdFilter filter)
processClassesWithName in class PsiShortNamesCachepublic java.lang.String toString()
toString in class java.lang.Object