Class AbstractJavaSearchScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractJavaSearchScope
- All Implemented Interfaces:
Cloneable, IJavaSearchScope, IParallelizable
- Direct Known Subclasses:
JavaSearchScope, JavaWorkspaceScope
-
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 TypeMethodDescriptionabstract AccessRuleSetgetAccessRuleSet(String relativePath, String containerPath) Get access rule set corresponding to a given path.abstract IPackageFragmentRootpackageFragmentRoot(String resourcePathString, int jarSeparatorIndex, String jarPath) Returns the package fragment root corresponding to a given resource path.Methods inherited from class AbstractSearchScope
clone, includesBinaries, includesClasspaths, isParallelSearchSupported, processDelta, setIncludesBinaries, setIncludesClasspathsModifier 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
-
AbstractJavaSearchScope
public AbstractJavaSearchScope()
-
-
Method Details
-
getAccessRuleSet
Get access rule set corresponding to a given path.- Parameters:
relativePath- The path user want to have restriction access- Returns:
- The access rule set for given path or null if none is set for it. Returns specific unit access rule set when scope does not enclose the given path.
-
packageFragmentRoot
public abstract IPackageFragmentRoot packageFragmentRoot(String resourcePathString, int jarSeparatorIndex, String jarPath) Returns the package fragment root corresponding to a given resource path.- Parameters:
resourcePathString- path of expected package fragment root.jarSeparatorIndex- the index of the jar separator in the resource path, or -1 if nonejarPath- the already extracted jar path, or null if none- Returns:
- the
package fragment rootwhich path match the given one ornullif none was found.
-