Class UnindexedSearchScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
org.aspectj.org.eclipse.jdt.internal.core.search.UnindexedSearchScope
- All Implemented Interfaces:
Cloneable
,IJavaSearchScope
,IParallelizable
-
Field Summary
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.search.IJavaSearchScope
APPLICATION_LIBRARIES, JAR_FILE_ENTRY_SEPARATOR, REFERENCED_PROJECTS, SOURCES, SYSTEM_LIBRARIES
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the resource at the given path is enclosed by this scope.boolean
encloses(IJavaElement element)
Checks whether this scope encloses the given element.org.eclipse.core.runtime.IPath[]
Returns the paths to the enclosing projects and JARs for this search scope.static IJavaSearchScope
boolean
Answerstrue
if the current instance supports parallel index searchvoid
processDelta(IJavaElementDelta delta, int eventType)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
clone, includesBinaries, includesClasspaths, setIncludesBinaries, setIncludesClasspaths
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.search.IParallelizable
initBeforeSearch
-
Method Details
-
filterEntriesCoveredByTheNewIndex
-
encloses
Description copied from interface:IJavaSearchScope
Checks whether the resource at the given path is enclosed by this scope.- Parameters:
resourcePathString
- if the resource is contained in a JAR file, the path is composed of 2 paths separated byJAR_FILE_ENTRY_SEPARATOR
: the first path is the full OS path to the JAR (if it is an external JAR), or the workspace relativeIPath
to the JAR (if it is an internal JAR), the second path is the path to the resource inside the JAR.- Returns:
- whether the resource is enclosed by this scope
-
encloses
Description copied from interface:IJavaSearchScope
Checks whether this scope encloses the given element.- Parameters:
element
- the given element- Returns:
true
if the element is in this scope
-
enclosingProjectsAndJars
public org.eclipse.core.runtime.IPath[] enclosingProjectsAndJars()Description copied from interface:IJavaSearchScope
Returns the paths to the enclosing projects and JARs for this search scope.- If the path is a project path, this is the full path of the project
(see
IResource.getFullPath()
). For example, /MyProject - If the path is a JAR path and this JAR is internal to the workspace,
this is the full path of the JAR file (see
IResource.getFullPath()
). For example, /MyProject/mylib.jar - If the path is a JAR path and this JAR is external to the workspace, this is the full OS path to the JAR file on the file system. For example, d:\libs\mylib.jar
- Returns:
- an array of paths to the enclosing projects and JARS.
- If the path is a project path, this is the full path of the project
(see
-
processDelta
- Specified by:
processDelta
in classAbstractSearchScope
-
isParallelSearchSupported
public boolean isParallelSearchSupported()Description copied from interface:IParallelizable
Answerstrue
if the current instance supports parallel index search- Specified by:
isParallelSearchSupported
in interfaceIParallelizable
- Overrides:
isParallelSearchSupported
in classAbstractSearchScope
- Returns:
- Returns
true
if the implementation is safe to be used in a parallel search.
-