Class ReceiverFeatureScope
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScope
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedExecutableScope
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractStaticOrInstanceFeatureScope
-
- org.eclipse.xtext.xbase.scoping.batch.ReceiverFeatureScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope,IVisibilityHelper
public class ReceiverFeatureScope extends AbstractStaticOrInstanceFeatureScope implements IVisibilityHelper
A scope that returns the features of a given receiver type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
AbstractSessionBasedScope.NameAcceptor
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
ALL
-
-
Constructor Summary
Constructors Constructor Description ReceiverFeatureScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XExpression receiver, LightweightTypeReference receiverType, boolean implicit, XAbstractFeatureCall featureCall, TypeBucket bucket, org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature, OperatorMapping operatorMapping, boolean validStaticState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)protected org.eclipse.xtext.resource.IEObjectDescriptioncreateDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, TypeBucket bucket)protected java.util.List<org.eclipse.xtext.common.types.JvmFeature>findAllFeaturesByName(org.eclipse.xtext.common.types.JvmType type, java.lang.String simpleName, IResolvedFeatures.Provider resolvedFeaturesProvider)protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>getAllLocalElements()protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument>getReceiverTypeParameterMapping()booleanisVisible(org.eclipse.xtext.common.types.JvmMember member)Returnstrueif the member is visible according to theJvmVisibilityand the local context.-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractStaticOrInstanceFeatureScope
addDescriptions
-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedExecutableScope
getOperatorMapping, processFeatureNames
-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
addToList, addToList, getElements, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, isShadowed, processAsPropertyNames, toProperty, toProperty, tryGetAsPropertyName
-
-
-
-
Constructor Detail
-
ReceiverFeatureScope
public ReceiverFeatureScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XExpression receiver, LightweightTypeReference receiverType, boolean implicit, XAbstractFeatureCall featureCall, TypeBucket bucket, org.eclipse.xtext.common.types.JvmIdentifiableElement receiverFeature, OperatorMapping operatorMapping, boolean validStaticState)
-
-
Method Detail
-
isVisible
public boolean isVisible(org.eclipse.xtext.common.types.JvmMember member)
Description copied from interface:IVisibilityHelperReturnstrueif the member is visible according to theJvmVisibilityand the local context.- Specified by:
isVisiblein interfaceIVisibilityHelper- Parameters:
member- the member that shall be accessed.- Returns:
trueif the feature can be accessed.
-
getLocalElementsByName
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getLocalElementsByNamein classAbstractSessionBasedScope
-
findAllFeaturesByName
protected java.util.List<org.eclipse.xtext.common.types.JvmFeature> findAllFeaturesByName(org.eclipse.xtext.common.types.JvmType type, java.lang.String simpleName, IResolvedFeatures.Provider resolvedFeaturesProvider)- Overrides:
findAllFeaturesByNamein classAbstractSessionBasedScope
-
createDescription
protected org.eclipse.xtext.resource.IEObjectDescription createDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, TypeBucket bucket)
-
getReceiverTypeParameterMapping
protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> getReceiverTypeParameterMapping()
-
getAllLocalElements
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElementsin classAbstractSessionBasedScope
-
addDescription
protected void addDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> result)- Specified by:
addDescriptionin classAbstractStaticOrInstanceFeatureScope
-
-