public class FeatureScopeSessionWithContext extends AbstractNestedFeatureScopeSession
ALL
Constructor and Description |
---|
FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent,
LightweightTypeReference contextType) |
FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent,
LightweightTypeReference contextType,
java.lang.String packageName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isThisSuperOrTypeLiteral(JvmIdentifiableElement receiverFeature) |
boolean |
isVisible(JvmMember member)
Returns
true if the member is visible according to the JvmVisibility and the local context. |
boolean |
isVisible(JvmMember member,
LightweightTypeReference receiverType,
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. |
addExtensionProviders, addLocalElements, getConstructorScopes, getDefaultScopeProvider, getEnclosingTypes, getExtensionProviders, getFeatureScopes, getId, getLocalElement, getNestedTypeDeclarators, getNextCaptureLayer, getParent, getResolvedFeaturesProvider, getStaticallyImportedExtensionTypes, getStaticallyImportedTypes, getTypeScopes, isConstructorContext, isInstanceContext
addImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toConstructorContext, toInstanceContext, tryCreateNestedSessionWithVisibilityContext
public FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType)
public FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType, java.lang.String packageName)
public boolean isVisible(JvmMember member)
IVisibilityHelper
true
if the member is visible according to the JvmVisibility
and the local context.isVisible
in interface IVisibilityHelper
isVisible
in class AbstractNestedFeatureScopeSession
member
- the member that shall be accessed.true
if the feature can be accessed.public boolean isVisible(JvmMember member, LightweightTypeReference receiverType, JvmIdentifiableElement receiverFeature)
IFeatureScopeSession
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.isVisible
in interface IFeatureScopeSession
isVisible
in class AbstractNestedFeatureScopeSession
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.true
if the feature can be accessed.protected boolean isThisSuperOrTypeLiteral(JvmIdentifiableElement receiverFeature)