Class FeatureScopeSessionWithContext

    • Method Detail

      • isVisible

        public boolean isVisible​(org.eclipse.xtext.common.types.JvmMember member)
        Description copied from interface: IVisibilityHelper
        Returns true if the member is visible according to the JvmVisibility and the local context.
        Specified by:
        isVisible in interface IVisibilityHelper
        Overrides:
        isVisible in class AbstractNestedFeatureScopeSession
        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)
        Description copied from interface: IFeatureScopeSession
        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.
        Specified by:
        isVisible in interface IFeatureScopeSession
        Overrides:
        isVisible in class AbstractNestedFeatureScopeSession
        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.
      • isThisSuperOrTypeLiteral

        protected boolean isThisSuperOrTypeLiteral​(org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)