public class LocalSearchScope extends SearchScope
PsiElement
(s).Modifier and Type | Field and Description |
---|---|
static LocalSearchScope |
EMPTY |
Constructor and Description |
---|
LocalSearchScope(PsiElement scope) |
LocalSearchScope(PsiElement [] scope) |
LocalSearchScope(PsiElement [] scope,
java.lang.String displayName) |
LocalSearchScope(PsiElement [] scope,
java.lang.String displayName,
boolean ignoreInjectedPsi) |
LocalSearchScope(PsiElement scope,
java.lang.String displayName) |
Modifier and Type | Method and Description |
---|---|
protected int |
calcHashCode()
To provide your own hash code please override this method instead of
SearchScope.hashCode() |
boolean |
contains(VirtualFile file) |
boolean |
containsRange(PsiFile file,
TextRange range) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDisplayName() |
PsiElement [] |
getScope() |
static LocalSearchScope |
getScopeRestrictedByFileTypes(LocalSearchScope scope,
FileType... fileTypes) |
VirtualFile [] |
getVirtualFiles() |
LocalSearchScope |
intersectWith(LocalSearchScope scope2) |
SearchScope |
intersectWith(SearchScope scope2) |
boolean |
isIgnoreInjectedPsi() |
boolean |
isInScope(VirtualFile file) |
java.lang.String |
toString() |
SearchScope |
union(LocalSearchScope scope2) |
SearchScope |
union(SearchScope scope) |
getIcon, hashCode
public static final LocalSearchScope EMPTY
public LocalSearchScope(PsiElement scope)
public LocalSearchScope(PsiElement scope, java.lang.String displayName)
public LocalSearchScope(PsiElement [] scope)
public LocalSearchScope(PsiElement [] scope, java.lang.String displayName)
public LocalSearchScope(PsiElement [] scope, java.lang.String displayName, boolean ignoreInjectedPsi)
public boolean isIgnoreInjectedPsi()
public java.lang.String getDisplayName()
getDisplayName
in class SearchScope
public PsiElement [] getScope()
public VirtualFile [] getVirtualFiles()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected int calcHashCode()
SearchScope
SearchScope.hashCode()
calcHashCode
in class SearchScope
public LocalSearchScope intersectWith(LocalSearchScope scope2)
public SearchScope intersectWith(SearchScope scope2)
intersectWith
in class SearchScope
public java.lang.String toString()
toString
in class java.lang.Object
public SearchScope union(SearchScope scope)
union
in class SearchScope
public boolean contains(VirtualFile file)
contains
in class SearchScope
public SearchScope union(LocalSearchScope scope2)
public boolean isInScope(VirtualFile file)
public static LocalSearchScope getScopeRestrictedByFileTypes(LocalSearchScope scope, FileType... fileTypes)