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, getInstance
public CompositeShortNamesCache(Project project)
public PsiFile [] getFilesByName(java.lang.String name)
PsiShortNamesCache
getFilesByName
in class PsiShortNamesCache
name
- the name of the files to find.public java.lang.String [] getAllFileNames()
PsiShortNamesCache
getAllFileNames
in class PsiShortNamesCache
public PsiClass [] getClassesByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCache
getClassesByName
in class PsiShortNamesCache
name
- the non-qualified name of the classes to find.scope
- the scope in which classes are searched.public java.lang.String [] getAllClassNames()
PsiShortNamesCache
getAllClassNames
in class PsiShortNamesCache
public boolean processAllClassNames(Processor<? super java.lang.String> processor)
processAllClassNames
in class PsiShortNamesCache
public boolean processAllClassNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllClassNames
in class PsiShortNamesCache
public boolean processAllMethodNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllMethodNames
in class PsiShortNamesCache
public boolean processAllFieldNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
processAllFieldNames
in class PsiShortNamesCache
public PsiMethod [] getMethodsByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCache
getMethodsByName
in class PsiShortNamesCache
name
- 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 PsiShortNamesCache
public PsiField [] getFieldsByNameIfNotMoreThan(java.lang.String name, GlobalSearchScope scope, int maxCount)
getFieldsByNameIfNotMoreThan
in class PsiShortNamesCache
public boolean processMethodsWithName(java.lang.String name, GlobalSearchScope scope, Processor<? super PsiMethod> processor)
processMethodsWithName
in class PsiShortNamesCache
public boolean processMethodsWithName(java.lang.String name, Processor<? super PsiMethod> processor, GlobalSearchScope scope, IdFilter idFilter)
processMethodsWithName
in class PsiShortNamesCache
public java.lang.String [] getAllMethodNames()
PsiShortNamesCache
getAllMethodNames
in class PsiShortNamesCache
public PsiField [] getFieldsByName(java.lang.String name, GlobalSearchScope scope)
PsiShortNamesCache
getFieldsByName
in class PsiShortNamesCache
name
- the name of the fields to find.scope
- the scope in which fields are searched.public java.lang.String [] getAllFieldNames()
PsiShortNamesCache
getAllFieldNames
in class PsiShortNamesCache
public boolean processFieldsWithName(java.lang.String key, Processor<? super PsiField> processor, GlobalSearchScope scope, IdFilter filter)
processFieldsWithName
in class PsiShortNamesCache
public boolean processClassesWithName(java.lang.String key, Processor<? super PsiClass> processor, GlobalSearchScope scope, IdFilter filter)
processClassesWithName
in class PsiShortNamesCache
public java.lang.String toString()
toString
in class java.lang.Object