public abstract class AbstractTypeScopeProvider extends java.lang.Object implements IGlobalScopeProvider
Constructor and Description |
---|
AbstractTypeScopeProvider() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractConstructorScope |
createConstructorScope(IJvmTypeProvider typeProvider,
com.google.common.base.Predicate<IEObjectDescription> filter) |
IScope |
createMemberScope(JvmType containerType,
com.google.common.base.Predicate<JvmMember> filter,
com.google.common.base.Function<JvmMember,QualifiedName> names,
IScope outer) |
abstract AbstractTypeScope |
createTypeScope(IJvmTypeProvider typeProvider,
com.google.common.base.Predicate<IEObjectDescription> filter) |
IScope |
getScope(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference) |
IScope |
getScope(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference,
com.google.common.base.Predicate<IEObjectDescription> filter)
Returns a global scope for the given context.
|
IJvmTypeProvider |
getTypeProvider(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
abstract IJvmTypeProvider.Factory |
getTypeProviderFactory() |
public IScope getScope(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EReference reference)
public IScope getScope(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<IEObjectDescription> filter)
IGlobalScopeProvider
EObjectDescription
visible from the given Resource
according to the definition of the global scope hierarchy (which is usually defined by
IContainer.Manager
).getScope
in interface IGlobalScopeProvider
resource
- the resource from which the global scope is looked at.reference
- the reference for which to construct a global scope.filter
- a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true
.IScope
representing the inner most IScope
for the
passed context and reference. Note for implementors: The result may not be null
.
Return IScope.NULLSCOPE
instead.public IJvmTypeProvider getTypeProvider(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public abstract AbstractTypeScope createTypeScope(IJvmTypeProvider typeProvider, com.google.common.base.Predicate<IEObjectDescription> filter)
public abstract AbstractConstructorScope createConstructorScope(IJvmTypeProvider typeProvider, com.google.common.base.Predicate<IEObjectDescription> filter)
public abstract IJvmTypeProvider.Factory getTypeProviderFactory()