/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/* package */ static String simpleName(char[] className) { if (className == null) return null; String simpleName = new String(unqualifiedName(className)); int lastDollar = simpleName.lastIndexOf('$'); if (lastDollar != -1) return Util.localTypeName(simpleName, lastDollar, simpleName.length()); else return simpleName; }
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
/** * Creates the handles for the inner types of the given binary type. * Adds new handles to the given vector. */ private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner type. IBinaryNestedType[] innerTypes = typeInfo.getMemberTypes(); if (innerTypes != null) { IPackageFragment pkg = (IPackageFragment) type.getAncestor(IJavaElement.PACKAGE_FRAGMENT); for (int i = 0, typeCount = innerTypes.length; i < typeCount; i++) { IBinaryNestedType binaryType = innerTypes[i]; IClassFile parentClassFile= pkg.getClassFile(new String(ClassFile.unqualifiedName(binaryType.getName())) + SUFFIX_STRING_class); IType innerType = new BinaryType((JavaElement) parentClassFile, ClassFile.simpleName(binaryType.getName())); childrenHandles.add(innerType); } } } /**
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);
return null; enclosingTypeName = ClassFile.unqualifiedName(enclosingTypeName);