Class TypeDeclarationAwareBatchTypeResolver

  • All Implemented Interfaces:
    org.eclipse.xtext.xbase.typesystem.IBatchTypeResolver

    public class TypeDeclarationAwareBatchTypeResolver
    extends org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver
    A type resolver that takes broken models into account, e.g. it will also traverse the source model to find type declarations that are not associated with JvmTypes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<org.eclipse.emf.ecore.EObject> getEntryPoints​(org.eclipse.emf.ecore.EObject object)  
      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 org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver

        createResolver, createResolver, doResolveTypes, getTypeResolver
      • Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver

        resolveTypes, resolveTypes, resolveTypes, resolveTypes
      • Methods inherited from class java.lang.Object

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

      • TypeDeclarationAwareBatchTypeResolver

        public TypeDeclarationAwareBatchTypeResolver()
    • Method Detail

      • 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. If such a condition is detected, an exception is thrown.
        Overrides:
        validateResourceState in class org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver
        Throws:
        java.lang.IllegalStateException - if the resource is in an unexpected state.
      • getEntryPoints

        protected java.util.List<org.eclipse.emf.ecore.EObject> getEntryPoints​(org.eclipse.emf.ecore.EObject object)
        Overrides:
        getEntryPoints in class org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver