Klasse JavaWorkspaceScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
org.aspectj.org.eclipse.jdt.internal.core.search.AbstractJavaSearchScope
org.aspectj.org.eclipse.jdt.internal.core.search.JavaWorkspaceScope
- Alle implementierten Schnittstellen:
Cloneable,IJavaSearchScope,IParallelizable
A Java-specific scope for searching the entire workspace.
The scope can be configured to not search binaries. By default, binaries
are included.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.search.IJavaSearchScope
APPLICATION_LIBRARIES, JAR_FILE_ENTRY_SEPARATOR, REFERENCED_PROJECTS, SOURCES, SYSTEM_LIBRARIES -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanChecks 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.booleangetAccessRuleSet(String relativePath, String containerPath) Get access rule set corresponding to a given path.inthashCode()booleanAnswerstrueif the current instance supports parallel index searchpackageFragmentRoot(String resourcePathString, int jarSeparatorIndex, String jarPath) Returns the package fragment root corresponding to a given resource path.voidprocessDelta(IJavaElementDelta delta, int eventType) toString()Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
clone, includesBinaries, includesClasspaths, setIncludesBinaries, setIncludesClasspathsVon Klasse geerbte Methoden java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.search.IParallelizable
initBeforeSearch
-
Konstruktordetails
-
JavaWorkspaceScope
public JavaWorkspaceScope()
-
-
Methodendetails
-
encloses
Beschreibung aus Schnittstelle kopiert:IJavaSearchScopeChecks whether this scope encloses the given element.- Parameter:
element- the given element- Gibt zurück:
trueif the element is in this scope
-
encloses
Beschreibung aus Schnittstelle kopiert:IJavaSearchScopeChecks whether the resource at the given path is enclosed by this scope.- Parameter:
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 relativeIPathto the JAR (if it is an internal JAR), the second path is the path to the resource inside the JAR.- Gibt zurück:
- whether the resource is enclosed by this scope
-
enclosingProjectsAndJars
public org.eclipse.core.runtime.IPath[] enclosingProjectsAndJars()Beschreibung aus Schnittstelle kopiert:IJavaSearchScopeReturns 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
- Gibt zurück:
- 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
-
equals
-
getAccessRuleSet
Beschreibung aus Klasse kopiert:AbstractJavaSearchScopeGet access rule set corresponding to a given path.- Angegeben von:
getAccessRuleSetin KlasseAbstractJavaSearchScope- Parameter:
relativePath- The path user want to have restriction access- Gibt zurück:
- 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.
-
hashCode
public int hashCode() -
packageFragmentRoot
public IPackageFragmentRoot packageFragmentRoot(String resourcePathString, int jarSeparatorIndex, String jarPath) Beschreibung aus Klasse kopiert:AbstractJavaSearchScopeReturns the package fragment root corresponding to a given resource path.- Angegeben von:
packageFragmentRootin KlasseAbstractJavaSearchScope- Parameter:
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- Gibt zurück:
- the
package fragment rootwhich path match the given one ornullif none was found. - Siehe auch:
-
processDelta
- Angegeben von:
processDeltain KlasseAbstractSearchScope
-
toString
-
isParallelSearchSupported
public boolean isParallelSearchSupported()Beschreibung aus Schnittstelle kopiert:IParallelizableAnswerstrueif the current instance supports parallel index search- Angegeben von:
isParallelSearchSupportedin SchnittstelleIParallelizable- Setzt außer Kraft:
isParallelSearchSupportedin KlasseAbstractSearchScope- Gibt zurück:
- Returns
trueif the implementation is safe to be used in a parallel search.
-