Class AbstractBatchTypeResolver
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver
-
- All Implemented Interfaces:
IBatchTypeResolver
- Direct Known Subclasses:
CachingBatchTypeResolver,DefaultBatchTypeResolver
public abstract class AbstractBatchTypeResolver extends java.lang.Object implements IBatchTypeResolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBatchTypeResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IResolvedTypesdoResolveTypes(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)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.protected voidvalidateResourceState(org.eclipse.emf.ecore.resource.Resource resource)Checks the internal state of the resource and logs if type resolution was triggered unexpectedly.
-
-
-
Method Detail
-
resolveTypes
public IResolvedTypes resolveTypes(org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface:IBatchTypeResolverReturn a handle to resolved types of expressions that are related to the givenresource.- Specified by:
resolveTypesin interfaceIBatchTypeResolver- Parameters:
resource- the resource that shall be resolved.- Returns:
- a handle to resolved types of expressions and identifiables.
-
resolveTypes
public final IResolvedTypes resolveTypes(org.eclipse.emf.ecore.EObject object)
Description copied from interface:IBatchTypeResolverReturn a handle to resolved types of expressions that are related to the givenobject.- Specified by:
resolveTypesin interfaceIBatchTypeResolver- 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
public final IResolvedTypes resolveTypes(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)
Description copied from interface:IBatchTypeResolverReturn a handle to resolved types of expressions that are related to the givenobject.- Specified by:
resolveTypesin interfaceIBatchTypeResolver- 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.
-
validateResourceState
protected void validateResourceState(org.eclipse.emf.ecore.resource.Resource resource)
Checks the internal state of the resource and logs if type resolution was triggered unexpectedly.
-
resolveTypes
public IResolvedTypes resolveTypes(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.CancelIndicator monitor)
Description copied from interface:IBatchTypeResolverReturn a handle to resolved types of expressions that are related to the givenresource.- Specified by:
resolveTypesin interfaceIBatchTypeResolver- 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.
-
doResolveTypes
protected abstract IResolvedTypes doResolveTypes(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)
-
-