public Iterable<IEObjectDescription> getExportedObjects() { return delegate.getExportedObjects(); }
public Iterable<IEObjectDescription> getExportedObjects(EClass type, QualifiedName name, boolean ignoreCase) { return delegate.getExportedObjects(type, name, ignoreCase); }
@Override public Iterable<IEObjectDescription> getExportedObjects() { return filtered(delegate.getExportedObjects()); }
@Override public Iterable<IEObjectDescription> getExportedObjects(EClass type, QualifiedName name, boolean ignoreCase) { return filtered(delegate.getExportedObjects(type,name,ignoreCase)); }
@Override public Iterable<IEObjectDescription> getExportedObjects(EClass type, QualifiedName qualifiedName, boolean ignoreCase) { Iterable<IEObjectDescription> unfiltered = getDescriptions().getExportedObjects(type, qualifiedName, ignoreCase); return filterByURI(unfiltered); }
@Override public Iterable<IEObjectDescription> getExportedObjects(EClass type, QualifiedName name, boolean ignoreCase) { Iterable<IEObjectDescription> liveDescriptions = localDescriptions.getExportedObjects(type, name, ignoreCase); Iterable<IEObjectDescription> persistentDescriptions = globalDescriptions.getExportedObjects(type, name, ignoreCase); return joinIterables(liveDescriptions, persistentDescriptions); }
protected boolean doCheckUniqueName(final QualifiedName name, final JvmDeclaredType type) { final IResourceDescriptions index = this.resourceDescriptionsProvider.getResourceDescriptions(type.eResource()); final Iterable<IEObjectDescription> others = index.getExportedObjects(TypesPackage.Literals.JVM_DECLARED_TYPE, name, false); return this.checkUniqueInIndex(type, others); }
public EObject getIndexedJvmType(QualifiedName qualifiedName, String fragment, ResourceSet resourceSet, boolean throwShadowedException) throws UnknownNestedTypeException { if (resourceSet != null) { IResourceDescriptions descriptions = resourceDescriptionsProvider.getResourceDescriptions(resourceSet); Iterable<IEObjectDescription> candidates = descriptions.getExportedObjects(TypesPackage.Literals.JVM_TYPE, qualifiedName, false); Iterator<IEObjectDescription> iterator = candidates.iterator(); if (iterator.hasNext()) { EObject result = findAccessibleType(fragment, resourceSet, iterator); if (result != null) { return result; } } if (throwShadowedException && descriptions instanceof IShadowedResourceDescriptions) { if (((IShadowedResourceDescriptions) descriptions).isShadowed(TypesPackage.Literals.JVM_TYPE, qualifiedName, false)) { throw new ShadowedTypeException("The type '"+qualifiedName+"' is locally shadowed."); } } } return null; }
public EObject getIndexedJvmType(QualifiedName qualifiedName, String fragment, ResourceSet resourceSet) { if (resourceSet != null) { IResourceDescriptions descriptions = resourceDescriptionsProvider.getResourceDescriptions(resourceSet); Iterable<IEObjectDescription> candidates = descriptions.getExportedObjects(TypesPackage.Literals.JVM_TYPE, qualifiedName, false); Iterator<IEObjectDescription> iterator = candidates.iterator(); if (iterator.hasNext()) { IEObjectDescription description = iterator.next(); EObject typeProxy = description.getEObjectOrProxy(); if (typeProxy.eIsProxy()) { typeProxy = EcoreUtil.resolve(typeProxy, resourceSet); } if (!typeProxy.eIsProxy() && typeProxy instanceof JvmType) { if (fragment != null) { EObject result = resolveJavaObject((JvmType) typeProxy, fragment); if (result != null) return result; } else return typeProxy; } } } return null; }
private EPackage findPackageInAllDescriptions(EObject context, QualifiedName packageNsURI) { IResourceDescriptions descriptions = descriptionsProvider.getResourceDescriptions(context.eResource()); if (descriptions != null) { Iterable<IEObjectDescription> exported = descriptions.getExportedObjects(EcorePackage.Literals.EPACKAGE, packageNsURI, false); for(IEObjectDescription candidate: exported) { if (isNsUriIndexEntry(candidate)) { EPackage result = getResolvedEPackage(candidate, context); if (result != null) return result; } } } return null; }
return this.nameToAnswerCache.get(className); final IEObjectDescription candidate = IterableExtensions.<IEObjectDescription>head(this.resourceDescriptions.getExportedObjects(TypesPackage.Literals.JVM_DECLARED_TYPE, className, false)); NameEnvironmentAnswer result = null; if ((candidate != null)) {
Iterable<IEObjectDescription> packagesInIndex = descriptions.getExportedObjects( EcorePackage.Literals.EPACKAGE, QualifiedName.create(referencedPackage.getNsURI()), continue; IResourceDescriptions descriptions = resourceDescriptionsProvider.getResourceDescriptions(metamodelReference.eResource()); Iterable<IEObjectDescription> packagesInIndex = descriptions.getExportedObjects(EcorePackage.Literals.EPACKAGE, QualifiedName.create(importURI), false); if (!Iterables.isEmpty(packagesInIndex)) { if (setting.getEObject().eResource().getURI().isPlatformResource())