Package org.aspectj.org.eclipse.jdt.core

Examples of org.aspectj.org.eclipse.jdt.core.IPackageFragmentRoot


  // Optimization: cache package fragment root handle and package handles
  if (this.lastPkgFragmentRootPath == null
      || this.lastPkgFragmentRootPath.length() > resourcePath.length()
      || !resourcePath.startsWith(this.lastPkgFragmentRootPath)) {
    String jarPath= resourcePath.substring(0, separatorIndex);
    IPackageFragmentRoot root= ((JavaSearchScope)this.scope).packageFragmentRoot(resourcePath);
    if (root == null) return null;
    this.lastPkgFragmentRootPath= jarPath;
    this.lastPkgFragmentRoot= root;
    this.packageHandles= new HashtableOfArrayToObject(5);
  }
View Full Code Here


  int rootPathLength = -1;
  if (this.lastPkgFragmentRootPath == null
    || !(resourcePath.startsWith(this.lastPkgFragmentRootPath)
      && (rootPathLength = this.lastPkgFragmentRootPath.length()) > 0
      && resourcePath.charAt(rootPathLength) == '/')) {
    IPackageFragmentRoot root = ((JavaSearchScope)this.scope).packageFragmentRoot(resourcePath);
    if (root == null) return null;
    this.lastPkgFragmentRoot = root;
    this.lastPkgFragmentRootPath = this.lastPkgFragmentRoot.getPath().toString();
    this.packageHandles = new HashtableOfArrayToObject(5);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.IPackageFragmentRoot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.