/* (non-Javadoc)
* @see org.aspectj.org.eclipse.jdt.internal.core.search.IRestrictedAccessTypeRequestor#acceptType(int, char[], char[], char[][], java.lang.String, org.aspectj.org.eclipse.jdt.internal.compiler.env.AccessRestriction)
*/
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path, AccessRestriction access) {
try {
IType type = null;
if (this.handleFactory != null) {
Openable openable = this.handleFactory.createOpenable(path, this.scope);
if (openable == null) return;
switch (openable.getElementType()) {
case IJavaElement.COMPILATION_UNIT:
ICompilationUnit cu = (ICompilationUnit) openable;
if (enclosingTypeNames != null && enclosingTypeNames.length > 0) {
type = cu.getType(new String(enclosingTypeNames[0]));
for (int j=1, l=enclosingTypeNames.length; j<l; j++) {
type = type.getType(new String(enclosingTypeNames[j]));
}
type = type.getType(new String(simpleTypeName));
} else {
type = cu.getType(new String(simpleTypeName));
}
break;
case IJavaElement.CLASS_FILE: