Class AbstractSearchScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
- All Implemented Interfaces:
Cloneable, IJavaSearchScope, IParallelizable
- Direct Known Subclasses:
AbstractJavaSearchScope, HierarchyScope, UnindexedSearchScope
public abstract class AbstractSearchScope
extends Object
implements IJavaSearchScope, IParallelizable, Cloneable
-
Field Summary
Fields inherited from interface IJavaSearchScope
APPLICATION_LIBRARIES, JAR_FILE_ENTRY_SEPARATOR, REFERENCED_PROJECTS, SOURCES, SYSTEM_LIBRARIESModifier and TypeFieldDescriptionstatic final intInclude type constant (bit mask) indicating that application libraries should be considered in the search scope.static final StringThis constant defines the separator of the resourcePath string of theencloses(String)method.static final intInclude type constant (bit mask) indicating that referenced projects should be considered in the search scope.static final intInclude type constant (bit mask) indicating that source folders should be considered in the search scope.static final intInclude type constant (bit mask) indicating that system libraries should be considered in the search scope. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanDeprecated.booleanDeprecated.booleanAnswerstrueif the current instance supports parallel index searchabstract voidprocessDelta(IJavaElementDelta delta, int eventType) voidsetIncludesBinaries(boolean includesBinaries) Deprecated.voidsetIncludesClasspaths(boolean includesClasspaths) Deprecated.Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IJavaSearchScope
encloses, encloses, enclosingProjectsAndJarsModifier and TypeMethodDescriptionbooleanChecks whether the resource at the given path is enclosed by this scope.booleanencloses(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.Methods inherited from interface IParallelizable
initBeforeSearchModifier and TypeMethodDescriptiondefault voidinitBeforeSearch(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize all needed data before search is started
-
Constructor Details
-
AbstractSearchScope
public AbstractSearchScope()
-
-
Method Details
-
includesBinaries
public boolean includesBinaries()Deprecated.Description copied from interface:IJavaSearchScopeReturns whether this scope contains any.classfiles (either in folders or within JARs).- Specified by:
includesBinariesin interfaceIJavaSearchScope- Returns:
- whether this scope contains any
.classfiles - See Also:
-
includesClasspaths
public boolean includesClasspaths()Deprecated.Description copied from interface:IJavaSearchScopeReturns whether this scope includes classpaths defined by the projects of the resources of this search scope.- Specified by:
includesClasspathsin interfaceIJavaSearchScope- Returns:
- whether this scope includes classpaths
- See Also:
-
processDelta
-
setIncludesBinaries
public void setIncludesBinaries(boolean includesBinaries) Deprecated.Description copied from interface:IJavaSearchScopeSets whether this scope contains any.classfiles (either in folders or within JARs).- Specified by:
setIncludesBinariesin interfaceIJavaSearchScope- Parameters:
includesBinaries- whether this scope contains any.classfiles- See Also:
-
setIncludesClasspaths
public void setIncludesClasspaths(boolean includesClasspaths) Deprecated.Description copied from interface:IJavaSearchScopeSets whether this scope includes the classpaths defined by the projects of the resources of this search scope.- Specified by:
setIncludesClasspathsin interfaceIJavaSearchScope- Parameters:
includesClasspaths- whether this scope includes classpaths- See Also:
-
isParallelSearchSupported
public boolean isParallelSearchSupported()Description copied from interface:IParallelizableAnswerstrueif the current instance supports parallel index search- Specified by:
isParallelSearchSupportedin interfaceIParallelizable- Returns:
- Returns
trueif the implementation is safe to be used in a parallel search.
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-