Class RootFeatureScopeSession

    • Constructor Detail

      • RootFeatureScopeSession

        public RootFeatureScopeSession()
    • Method Detail

      • getLocalElement

        public org.eclipse.xtext.resource.IEObjectDescription getLocalElement​(org.eclipse.xtext.naming.QualifiedName name)
        Description copied from interface: IFeatureScopeSession
        Find a local element with the given qualified name.
        Returns:
        the known element or null.
      • isInstanceContext

        public boolean isInstanceContext()
        Returns true if this can be validly resolved in the current scope. By default, a session is not an instance context.
        See Also:
        IFeatureScopeSession.toInstanceContext()
      • isConstructorContext

        public boolean isConstructorContext()
        Returns true if the current expression is used in a constructor body. By default, a session is not a constructor context.
        See Also:
        IFeatureScopeSession.toConstructorContext()
      • isVisible

        public boolean isVisible​(org.eclipse.xtext.common.types.JvmMember member)
        Returns true if the member is visible according to the JvmVisibility and the local context. By default, all public features are considered to be accessible.
        Parameters:
        member - the member that shall be accessed.
        Returns:
        true if the feature can be accessed.
      • isVisible

        public boolean isVisible​(org.eclipse.xtext.common.types.JvmMember member,
                                 LightweightTypeReference receiverType,
                                 org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)
        Returns true if the member is visible according to the JvmVisibility and the local context when invoked on the given receiver feature which resolves to the given type. By default, all public features are considered to be accessible.
        Parameters:
        member - the member that shall be accessed.
        receiverType - the type of the receiver. May be unknown.
        receiverFeature - the links the receiver of the feature call to the given member. May be unknown.
        Returns:
        true if the feature can be accessed.