public class RootFeatureScopeSession extends AbstractFeatureScopeSession
ALL| Constructor and Description |
|---|
RootFeatureScopeSession() |
| Modifier and Type | Method and Description |
|---|---|
protected ConstructorScopes |
getConstructorScopes() |
protected org.eclipse.xtext.scoping.IScopeProvider |
getDefaultScopeProvider() |
protected FeatureScopes |
getFeatureScopes() |
protected int |
getId()
A simple means to identify the session.
|
org.eclipse.xtext.resource.IEObjectDescription |
getLocalElement(org.eclipse.xtext.naming.QualifiedName name)
Find a local element with the given qualified name.
|
java.util.List<org.eclipse.xtext.resource.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(org.eclipse.xtext.common.types.JvmMember member)
Returns
true if the member is visible according to the JvmVisibility and the local context. |
boolean |
isVisible(org.eclipse.xtext.common.types.JvmMember member,
LightweightTypeReference receiverType,
org.eclipse.xtext.common.types.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, tryCreateNestedSessionWithVisibilityContextprotected FeatureScopes getFeatureScopes()
getFeatureScopes in class AbstractFeatureScopeSessionprotected IResolvedFeatures.Provider getResolvedFeaturesProvider()
getResolvedFeaturesProvider in class AbstractFeatureScopeSessionprotected TypeScopes getTypeScopes()
getTypeScopes in class AbstractFeatureScopeSessionprotected ConstructorScopes getConstructorScopes()
getConstructorScopes in class AbstractFeatureScopeSessionprotected org.eclipse.xtext.scoping.IScopeProvider getDefaultScopeProvider()
getDefaultScopeProvider in class AbstractFeatureScopeSessionpublic org.eclipse.xtext.resource.IEObjectDescription getLocalElement(org.eclipse.xtext.naming.QualifiedName name)
IFeatureScopeSessionnull.public java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElements()
IFeatureScopeSessiongetLocalElements in interface IFeatureScopeSessiongetLocalElements in class AbstractFeatureScopeSessionnull.protected int getId()
AbstractFeatureScopeSessiongetId in class AbstractFeatureScopeSessionpublic boolean isInstanceContext()
true if this can be validly resolved in the current scope.
By default, a session is not an instance context.IFeatureScopeSession.toInstanceContext()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(org.eclipse.xtext.common.types.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(org.eclipse.xtext.common.types.JvmMember member,
LightweightTypeReference receiverType,
org.eclipse.xtext.common.types.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.