Class BasicEReferenceEmfIndexBuilder

  • All Implemented Interfaces:

    public abstract class BasicEReferenceEmfIndexBuilder
    extends Object
    implements Visitors.IVisitor
    TODO Think on what to do with unresolved contained objects. It seems we need to update the index in case of getting the notification about resolved reference (proxy).
    • Constructor Detail

      • BasicEReferenceEmfIndexBuilder

        public BasicEReferenceEmfIndexBuilder()
        Constructs an instance of the builder.
    • Method Detail

      • visit

        public boolean visit​(org.eclipse.emf.ecore.EObject eObject)
        Builds EMF index for supported objects.
        Specified by:
        visit in interface Visitors.IVisitor
        eObject - Source object to build/update index for
        True if internal contents of the object should be visited as well; false otherwise
      • getTopEObjectIndex

        protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription> getTopEObjectIndex​(org.eclipse.emf.ecore.EObject topObject)
      • storeIndex

        protected abstract void storeIndex​(org.eclipse.emf.ecore.EObject topObject,
                                           List<org.eclipse.xtext.resource.IReferenceDescription> referenceDescriptions)