Class AbstractBatchTypeResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract IResolvedTypes doResolveTypes​(org.eclipse.emf.ecore.EObject object, org.eclipse.xtext.util.CancelIndicator monitor)  
      IResolvedTypes resolveTypes​(org.eclipse.emf.ecore.EObject object)
      Return a handle to resolved types of expressions that are related to the given object.
      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 given object.
      IResolvedTypes resolveTypes​(org.eclipse.emf.ecore.resource.Resource resource)
      Return a handle to resolved types of expressions that are related to the given resource.
      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 given resource.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractBatchTypeResolver

        protected AbstractBatchTypeResolver()
    • Method Detail

      • resolveTypes

        public IResolvedTypes resolveTypes​(org.eclipse.emf.ecore.resource.Resource resource)
        Description copied from interface: IBatchTypeResolver
        Return a handle to resolved types of expressions that are related to the given resource.
        Specified by:
        resolveTypes in interface IBatchTypeResolver
        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: IBatchTypeResolver
        Return a handle to resolved types of expressions that are related to the given object.
        Specified by:
        resolveTypes in interface IBatchTypeResolver
        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: IBatchTypeResolver
        Return a handle to resolved types of expressions that are related to the given object.
        Specified by:
        resolveTypes in interface IBatchTypeResolver
        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: IBatchTypeResolver
        Return a handle to resolved types of expressions that are related to the given resource.
        Specified by:
        resolveTypes in interface IBatchTypeResolver
        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)