|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PsiShortNamesCache
Allows to retrieve files and Java classes, methods and fields in a project by non-qualified names.
PsiManager.getShortNamesCache()| Method Summary | |
|---|---|
java.lang.String[] |
getAllClassNames(boolean searchInLibraries)
Returns the list of names of all classes in the project and (optionally) libraries. |
void |
getAllClassNames(boolean searchInLibraries,
HashSet<java.lang.String> dest)
Adds the names of all classes in the project and (optionally) libraries to the specified set. |
java.lang.String[] |
getAllFieldNames(boolean searchInLibraries)
Returns the list of names of all fields in the project and (optionally) libraries. |
void |
getAllFieldNames(boolean searchInLibraries,
HashSet<java.lang.String> set)
Adds the names of all methods in the project and (optionally) libraries to the specified set. |
java.lang.String[] |
getAllFileNames()
Returns the list of names of all files in the project. |
java.lang.String[] |
getAllMethodNames(boolean searchInLibraries)
Returns the list of names of all methods in the project and (optionally) libraries. |
void |
getAllMethodNames(boolean searchInLibraries,
HashSet<java.lang.String> set)
Adds the names of all methods in the project and (optionally) libraries to the specified set. |
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. |
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. |
void |
runStartupActivity()
Initializes the cache. |
| Method Detail |
|---|
void runStartupActivity()
PsiManager.registerShortNamesCache(PsiShortNamesCache) }.
PsiFile[] getFilesByName(java.lang.String name)
name - the name of the files to find.
java.lang.String[] getAllFileNames()
PsiClass[] getClassesByName(java.lang.String name,
GlobalSearchScope scope)
name - the non-qualified name of the classes to find.scope - the scope in which classes are searched.
java.lang.String[] getAllClassNames(boolean searchInLibraries)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.
void getAllClassNames(boolean searchInLibraries,
HashSet<java.lang.String> dest)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.dest - the set to add the names to.
PsiMethod[] getMethodsByName(java.lang.String name,
GlobalSearchScope scope)
name - the name of the methods to find.scope - the scope in which methods are searched.
java.lang.String[] getAllMethodNames(boolean searchInLibraries)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.
void getAllMethodNames(boolean searchInLibraries,
HashSet<java.lang.String> set)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.set - the set to add the names to.
PsiField[] getFieldsByName(java.lang.String name,
GlobalSearchScope scope)
name - the name of the fields to find.scope - the scope in which fields are searched.
java.lang.String[] getAllFieldNames(boolean searchInLibraries)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.
void getAllFieldNames(boolean searchInLibraries,
HashSet<java.lang.String> set)
searchInLibraries - if true, libraries are included in the search;
otherwise, only the project is searched.set - the set to add the names to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||