public class RootFeatureScopeSession extends AbstractFeatureScopeSession
ALL
Constructor and Description |
---|
RootFeatureScopeSession() |
Modifier and Type | Method and Description |
---|---|
protected ConstructorScopes |
getConstructorScopes() |
protected IScopeProvider |
getDefaultScopeProvider() |
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<IEObjectDescription> |
getLocalElements()
Return all local elements that are known in this session.
|
protected IResolvedFeatures.Provider |
getResolvedFeaturesProvider() |
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. |
addExtensionProviders, addImports, addLocalElement, addLocalElements, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getEnclosingTypes, getExtensionProviders, getNestedTypeDeclarators, getNextCaptureLayer, getScope, getStaticallyImportedExtensionTypes, getStaticallyImportedTypes, toConstructorContext, toInstanceContext, tryCreateNestedSessionWithVisibilityContext
protected FeatureScopes getFeatureScopes()
getFeatureScopes
in class AbstractFeatureScopeSession
protected IResolvedFeatures.Provider getResolvedFeaturesProvider()
getResolvedFeaturesProvider
in class AbstractFeatureScopeSession
protected TypeScopes getTypeScopes()
getTypeScopes
in class AbstractFeatureScopeSession
protected ConstructorScopes getConstructorScopes()
getConstructorScopes
in class AbstractFeatureScopeSession
protected IScopeProvider getDefaultScopeProvider()
getDefaultScopeProvider
in class AbstractFeatureScopeSession
public IEObjectDescription getLocalElement(QualifiedName name)
IFeatureScopeSession
null
.public java.util.List<IEObjectDescription> getLocalElements()
IFeatureScopeSession
getLocalElements
in interface IFeatureScopeSession
getLocalElements
in class AbstractFeatureScopeSession
null
.protected int getId()
AbstractFeatureScopeSession
getId
in class AbstractFeatureScopeSession
public boolean isInstanceContext()
true
if this
can be validly resolved in the current scope.
By default, a session is not an instance context.public boolean isConstructorContext()
true
if the current expression is used in a constructor body.
By default, a session is not a constructor context.public boolean isVisible(JvmMember member)
true
if the member is visible according to the JvmVisibility
and the local context.
By default, all public features are considered to be accessible.member
- the member that shall be accessed.true
if the feature can be accessed.public boolean isVisible(JvmMember member, LightweightTypeReference receiverType, JvmIdentifiableElement receiverFeature)
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.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.