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, isInstanceContextaddImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toConstructorContext, toInstanceContext, tryCreateNestedSessionWithVisibilityContextpublic FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType)
public FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType, java.lang.String packageName)
public boolean isVisible(JvmMember member)
IVisibilityHelpertrue if the member is visible according to the JvmVisibility and the local context.isVisible in interface IVisibilityHelperisVisible in class AbstractNestedFeatureScopeSessionmember - the member that shall be accessed.true if the feature can be accessed.public boolean isVisible(JvmMember member, LightweightTypeReference receiverType, JvmIdentifiableElement receiverFeature)
IFeatureScopeSessiontrue 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 IFeatureScopeSessionisVisible in class AbstractNestedFeatureScopeSessionmember - 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)