org.aspectj.org.eclipse.jdt.internal.core.search
Class AbstractJavaSearchScope

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
      extended by org.aspectj.org.eclipse.jdt.internal.core.search.AbstractJavaSearchScope
All Implemented Interfaces:
IJavaSearchScope
Direct Known Subclasses:
JavaSearchScope, JavaWorkspaceScope

public abstract class AbstractJavaSearchScope
extends AbstractSearchScope


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
 
Constructor Summary
AbstractJavaSearchScope()
           
 
Method Summary
abstract  AccessRuleSet getAccessRuleSet(java.lang.String relativePath, java.lang.String containerPath)
          Get access rule set corresponding to a given path.
abstract  IPackageFragmentRoot packageFragmentRoot(java.lang.String resourcePathString, int jarSeparatorIndex, java.lang.String jarPath)
          Returns the package fragment root corresponding to a given resource path.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.search.AbstractSearchScope
includesBinaries, includesClasspaths, processDelta, setIncludesBinaries, setIncludesClasspaths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.search.IJavaSearchScope
encloses, encloses, enclosingProjectsAndJars
 

Constructor Detail

AbstractJavaSearchScope

public AbstractJavaSearchScope()
Method Detail

getAccessRuleSet

public abstract AccessRuleSet getAccessRuleSet(java.lang.String relativePath,
                                               java.lang.String containerPath)
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(java.lang.String resourcePathString,
                                                         int jarSeparatorIndex,
                                                         java.lang.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 none
jarPath - the already extracted jar path, or null if none
Returns:
the package fragment root which path match the given one or null if none was found.