Class FeatureScopeSessionWithContext
- java.lang.Object
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractNestedFeatureScopeSession
-
- org.eclipse.xtext.xbase.scoping.batch.FeatureScopeSessionWithContext
-
- All Implemented Interfaces:
IFeatureScopeSession
,IVisibilityHelper
public class FeatureScopeSessionWithContext extends AbstractNestedFeatureScopeSession
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
ALL
-
-
Constructor Summary
Constructors Constructor Description FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType)
FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType, java.lang.String packageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isThisSuperOrTypeLiteral(org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)
boolean
isVisible(org.eclipse.xtext.common.types.JvmMember member)
Returnstrue
if the member is visible according to theJvmVisibility
and the local context.boolean
isVisible(org.eclipse.xtext.common.types.JvmMember member, LightweightTypeReference receiverType, org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)
Returnstrue
if the member is visible according to theJvmVisibility
and the local context when invoked on the given receiver feature which resolves to the given type.-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractNestedFeatureScopeSession
addExtensionProviders, addLocalElements, getConstructorScopes, getDefaultScopeProvider, getEnclosingTypes, getExtensionProviders, getFeatureScopes, getId, getLocalElement, getNestedTypeDeclarators, getNextCaptureLayer, getParent, getResolvedFeaturesProvider, getStaticallyImportedExtensionTypes, getStaticallyImportedTypes, getTypeScopes, isConstructorContext, isInstanceContext
-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession
addImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toConstructorContext, toInstanceContext, tryCreateNestedSessionWithVisibilityContext
-
-
-
-
Constructor Detail
-
FeatureScopeSessionWithContext
public FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType)
-
FeatureScopeSessionWithContext
public FeatureScopeSessionWithContext(AbstractFeatureScopeSession parent, LightweightTypeReference contextType, java.lang.String packageName)
-
-
Method Detail
-
isVisible
public boolean isVisible(org.eclipse.xtext.common.types.JvmMember member)
Description copied from interface:IVisibilityHelper
Returnstrue
if the member is visible according to theJvmVisibility
and the local context.- Specified by:
isVisible
in interfaceIVisibilityHelper
- Overrides:
isVisible
in classAbstractNestedFeatureScopeSession
- Parameters:
member
- the member that shall be accessed.- Returns:
true
if the feature can be accessed.
-
isVisible
public boolean isVisible(org.eclipse.xtext.common.types.JvmMember member, LightweightTypeReference receiverType, org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)
Description copied from interface:IFeatureScopeSession
Returnstrue
if the member is visible according to theJvmVisibility
and the local context when invoked on the given receiver feature which resolves to the given type.- Specified by:
isVisible
in interfaceIFeatureScopeSession
- Overrides:
isVisible
in classAbstractNestedFeatureScopeSession
- Parameters:
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.- Returns:
true
if the feature can be accessed.
-
isThisSuperOrTypeLiteral
protected boolean isThisSuperOrTypeLiteral(org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature)
-
-