Class AbstractSessionBasedScope

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static interface  AbstractSessionBasedScope.NameAcceptor  
      • Nested classes/interfaces inherited from class org.eclipse.xtext.scoping.impl.AbstractScope

        org.eclipse.xtext.scoping.impl.AbstractScope.ParentIterable
    • Field Summary

      • Fields inherited from interface org.eclipse.xtext.scoping.IScope

        NULLSCOPE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addToList​(java.util.List<org.eclipse.xtext.resource.IEObjectDescription> descriptions, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)
      Clients may override to reject certain descriptions from the result.
      protected void addToList​(org.eclipse.xtext.resource.IEObjectDescription description, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)
      Clients may override to reject certain descriptions from the result.
      protected java.util.List<org.eclipse.xtext.common.types.JvmFeature> findAllFeaturesByName​(org.eclipse.xtext.common.types.JvmType type, java.lang.String simpleName, IResolvedFeatures.Provider resolvedFeaturesProvider)  
      protected abstract java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()  
      java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements​(org.eclipse.xtext.naming.QualifiedName name)  
      protected XAbstractFeatureCall getFeatureCall()  
      protected java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject​(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)  
      protected abstract java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName​(org.eclipse.xtext.naming.QualifiedName name)  
      protected IFeatureScopeSession getSession()  
      protected java.lang.String getShadowingKey​(org.eclipse.xtext.resource.IEObjectDescription description)  
      protected boolean isShadowed​(org.eclipse.xtext.resource.IEObjectDescription fromParent)  
      protected void processAsPropertyNames​(org.eclipse.xtext.naming.QualifiedName name, AbstractSessionBasedScope.NameAcceptor acceptor)
      Considers the given name to be a property name.
      protected void processFeatureNames​(org.eclipse.xtext.naming.QualifiedName name, AbstractSessionBasedScope.NameAcceptor acceptor)  
      protected java.lang.String toProperty​(java.lang.String methodName, org.eclipse.xtext.common.types.JvmFeature feature)  
      protected java.lang.String toProperty​(java.lang.String methodName, org.eclipse.xtext.common.types.JvmFeature feature, int getterParams, int setterParams)  
      protected java.lang.String tryGetAsPropertyName​(java.lang.String name)
      Returns the name as a property name, e.g.
      • Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope

        getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getAllLocalElements

        protected abstract java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
        Specified by:
        getAllLocalElements in class org.eclipse.xtext.scoping.impl.AbstractScope
      • findAllFeaturesByName

        protected java.util.List<org.eclipse.xtext.common.types.JvmFeature> findAllFeaturesByName​(org.eclipse.xtext.common.types.JvmType type,
                                                                                                  java.lang.String simpleName,
                                                                                                  IResolvedFeatures.Provider resolvedFeaturesProvider)
      • processAsPropertyNames

        protected void processAsPropertyNames​(org.eclipse.xtext.naming.QualifiedName name,
                                              AbstractSessionBasedScope.NameAcceptor acceptor)
        Considers the given name to be a property name. If the concrete syntax of the processed feature matches a feature call or assignment, a prefix is added to the name and that one is used as a variant that should be processed.
      • toProperty

        protected java.lang.String toProperty​(java.lang.String methodName,
                                              org.eclipse.xtext.common.types.JvmFeature feature)
      • toProperty

        protected java.lang.String toProperty​(java.lang.String methodName,
                                              org.eclipse.xtext.common.types.JvmFeature feature,
                                              int getterParams,
                                              int setterParams)
      • tryGetAsPropertyName

        protected java.lang.String tryGetAsPropertyName​(java.lang.String name)
        Returns the name as a property name, e.g. a prefix get, is or set can be used with the result of this method. If the given name is invalid, the result is null.
      • addToList

        protected void addToList​(org.eclipse.xtext.resource.IEObjectDescription description,
                                 java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)
        Clients may override to reject certain descriptions from the result. All subtypes of AbstractSessionBasedScope in the framework code will delegate to this method to accumulate descriptions in a list.
        See Also:
        addToList(List, List)
      • addToList

        protected void addToList​(java.util.List<org.eclipse.xtext.resource.IEObjectDescription> descriptions,
                                 java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)
        Clients may override to reject certain descriptions from the result. All subtypes of AbstractSessionBasedScope in the framework code will delegate to this method to accumulate descriptions in a list.
        See Also:
        addToList(IEObjectDescription, List)
      • getLocalElementsByName

        protected abstract java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName​(org.eclipse.xtext.naming.QualifiedName name)
        Overrides:
        getLocalElementsByName in class org.eclipse.xtext.scoping.impl.AbstractScope
      • getElements

        public java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements​(org.eclipse.xtext.naming.QualifiedName name)
        Specified by:
        getElements in interface org.eclipse.xtext.scoping.IScope
        Overrides:
        getElements in class org.eclipse.xtext.scoping.impl.AbstractScope
      • getLocalElementsByEObject

        protected java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject​(org.eclipse.emf.ecore.EObject object,
                                                                                                               org.eclipse.emf.common.util.URI uri)
        Overrides:
        getLocalElementsByEObject in class org.eclipse.xtext.scoping.impl.AbstractScope
      • getShadowingKey

        protected java.lang.String getShadowingKey​(org.eclipse.xtext.resource.IEObjectDescription description)
      • isShadowed

        protected boolean isShadowed​(org.eclipse.xtext.resource.IEObjectDescription fromParent)
        Overrides:
        isShadowed in class org.eclipse.xtext.scoping.impl.AbstractScope