Interface IBatchTypeResolver
-
- All Known Implementing Classes:
AbstractBatchTypeResolver,CachingBatchTypeResolver,DefaultBatchTypeResolver,LogicalContainerAwareBatchTypeResolver
public interface IBatchTypeResolverThebatch type resolveris the entry point for clients to obtain the expression types within a given contextobject. The context is most likely anexpressionor alogical containerbut the interface does not impose any restriction on this one. The obtained instance ofresolved typesdoes not make any promises with respect to eager resolution or laziness, but answers all queries for types that are related to the context that was used to get the resolved types itself. Generally speaking, all expressions within the very same resource can be used to query thetypes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IResolvedTypesresolveTypes(org.eclipse.emf.ecore.EObject object)Return a handle to resolved types of expressions that are related to the givenobject.IResolvedTypesresolveTypes(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)Return a handle to resolved types of expressions that are related to the givenobject.IResolvedTypesresolveTypes(org.eclipse.emf.ecore.resource.Resource resource)Return a handle to resolved types of expressions that are related to the givenresource.IResolvedTypesresolveTypes(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.CancelIndicator monitor)Return a handle to resolved types of expressions that are related to the givenresource.
-
-
-
Method Detail
-
resolveTypes
IResolvedTypes resolveTypes(org.eclipse.emf.ecore.EObject object)
Return a handle to resolved types of expressions that are related to the givenobject.- Parameters:
object- the context that describes the expressions that will be used to query the resolved types.- Returns:
- a handle to resolved types of expressions and identifiables.
-
resolveTypes
IResolvedTypes resolveTypes(org.eclipse.emf.ecore.resource.Resource resource)
Return a handle to resolved types of expressions that are related to the givenresource.- Parameters:
resource- the resource that shall be resolved.- Returns:
- a handle to resolved types of expressions and identifiables.
-
resolveTypes
IResolvedTypes resolveTypes(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)
Return a handle to resolved types of expressions that are related to the givenobject.- Parameters:
object- the context that describes the expressions that will be used to query the resolved types.monitor- used to cancel type resolution, e.g. by the reconciler.- Returns:
- a handle to resolved types of expressions and identifiables.
- Since:
- 2.7
-
resolveTypes
IResolvedTypes resolveTypes(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.CancelIndicator monitor)
Return a handle to resolved types of expressions that are related to the givenresource.- Parameters:
resource- the resource that shall be resolved.monitor- used to cancel type resolution, e.g. by the reconciler.- Returns:
- a handle to resolved types of expressions and identifiables.
- Since:
- 2.7
-
-