public abstract class AbstractNestedFeatureScopeSession extends AbstractFeatureScopeSession
ALL| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNestedFeatureScopeSession(AbstractFeatureScopeSession parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtensionProviders(java.util.List<ExpressionBucket> result) |
protected void |
addLocalElements(java.util.List<IEObjectDescription> result) |
protected ConstructorScopes |
getConstructorScopes() |
protected IScopeProvider |
getDefaultScopeProvider() |
java.util.List<JvmDeclaredType> |
getEnclosingTypes()
Returns a list of enclosing types that provide an instance in the current context.
|
java.util.List<ExpressionBucket> |
getExtensionProviders()
All extension providers as expression buckets.
|
protected FeatureScopes |
getFeatureScopes() |
protected int |
getId()
A simple means to identify the session.
|
IEObjectDescription |
getLocalElement(QualifiedName name)
Find a local element with the given qualified name.
|
java.util.List<JvmDeclaredType> |
getNestedTypeDeclarators()
Returns enclosing types that declare available nested types.
|
IFeatureScopeSession |
getNextCaptureLayer()
Returns the next layer of the captured scopes.
|
protected AbstractFeatureScopeSession |
getParent() |
protected IResolvedFeatures.Provider |
getResolvedFeaturesProvider() |
java.util.List<TypeBucket> |
getStaticallyImportedExtensionTypes()
All statically imported extension types as type buckets.
|
java.util.List<TypeBucket> |
getStaticallyImportedTypes()
All statically imported types as type buckets.
|
protected TypeScopes |
getTypeScopes() |
boolean |
isConstructorContext()
Returns
true if the current expression is used in a constructor body. |
boolean |
isInstanceContext()
Returns
true if this can be validly resolved in the current scope. |
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. |
addImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toConstructorContext, toInstanceContext, tryCreateNestedSessionWithVisibilityContextprotected AbstractNestedFeatureScopeSession(AbstractFeatureScopeSession parent)
protected IScopeProvider getDefaultScopeProvider()
getDefaultScopeProvider in class AbstractFeatureScopeSessionprotected FeatureScopes getFeatureScopes()
getFeatureScopes in class AbstractFeatureScopeSessionprotected IResolvedFeatures.Provider getResolvedFeaturesProvider()
getResolvedFeaturesProvider in class AbstractFeatureScopeSessionprotected ConstructorScopes getConstructorScopes()
getConstructorScopes in class AbstractFeatureScopeSessionprotected TypeScopes getTypeScopes()
getTypeScopes in class AbstractFeatureScopeSessionprotected AbstractFeatureScopeSession getParent()
public IFeatureScopeSession getNextCaptureLayer()
IFeatureScopeSessiongetNextCaptureLayer in interface IFeatureScopeSessiongetNextCaptureLayer in class AbstractFeatureScopeSessionpublic java.util.List<JvmDeclaredType> getEnclosingTypes()
IFeatureScopeSessiongetEnclosingTypes in interface IFeatureScopeSessiongetEnclosingTypes in class AbstractFeatureScopeSessionpublic java.util.List<JvmDeclaredType> getNestedTypeDeclarators()
IFeatureScopeSessiongetNestedTypeDeclarators in interface IFeatureScopeSessiongetNestedTypeDeclarators in class AbstractFeatureScopeSessionpublic IEObjectDescription getLocalElement(QualifiedName name)
IFeatureScopeSessionnull.protected void addLocalElements(java.util.List<IEObjectDescription> result)
addLocalElements in class AbstractFeatureScopeSessionresult - the list of all local elements. Shadowing semantics do not have to be applied.public java.util.List<TypeBucket> getStaticallyImportedTypes()
IFeatureScopeSessiongetStaticallyImportedTypes in interface IFeatureScopeSessiongetStaticallyImportedTypes in class AbstractFeatureScopeSessionpublic java.util.List<TypeBucket> getStaticallyImportedExtensionTypes()
IFeatureScopeSessiongetStaticallyImportedExtensionTypes in interface IFeatureScopeSessiongetStaticallyImportedExtensionTypes in class AbstractFeatureScopeSessionpublic java.util.List<ExpressionBucket> getExtensionProviders()
IFeatureScopeSessiongetExtensionProviders in interface IFeatureScopeSessiongetExtensionProviders in class AbstractFeatureScopeSessionpublic boolean isInstanceContext()
IFeatureScopeSessiontrue if this can be validly resolved in the current scope.public boolean isConstructorContext()
IFeatureScopeSessiontrue if the current expression is used in a constructor body.protected void addExtensionProviders(java.util.List<ExpressionBucket> result)
addExtensionProviders in class AbstractFeatureScopeSessionresult - an aggregating parameter that accepts the extension providers.protected int getId()
AbstractFeatureScopeSessiongetId in class AbstractFeatureScopeSessionpublic boolean isVisible(JvmMember member)
IVisibilityHelpertrue if the member is visible according to the JvmVisibility and the local context.member - 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.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.