org.aspectj.org.eclipse.jdt.internal.core.util
Class HandleFactory

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.HandleFactory

public class HandleFactory
extends java.lang.Object

Creates java element handles.


Constructor Summary
HandleFactory()
           
 
Method Summary
 IJavaElement createElement(ClassScope scope, ICompilationUnit unit, java.util.HashSet existingElements, java.util.HashMap knownScopes)
          Returns a handle denoting the class member identified by its scope.
 Openable createOpenable(java.lang.String resourcePath, IJavaSearchScope scope)
          Creates an Openable handle from the given resource path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleFactory

public HandleFactory()
Method Detail

createOpenable

public Openable createOpenable(java.lang.String resourcePath,
                               IJavaSearchScope scope)
Creates an Openable handle from the given resource path. The resource path can be a path to a file in the workbench (e.g. /Proj/com/ibm/jdt/core/HandleFactory.java) or a path to a file in a jar file - it then contains the path to the jar file and the path to the file in the jar (e.g. c:/jdk1.2.2/jre/lib/rt.jar|java/lang/Object.class or /Proj/rt.jar|java/lang/Object.class) NOTE: This assumes that the resource path is the toString() of an IPath, in other words, it uses the IPath.SEPARATOR for file path and it uses '/' for entries in a zip file. If not null, uses the given scope as a hint for getting Java project handles.


createElement

public IJavaElement createElement(ClassScope scope,
                                  ICompilationUnit unit,
                                  java.util.HashSet existingElements,
                                  java.util.HashMap knownScopes)
Returns a handle denoting the class member identified by its scope.