public class ReceiverFeatureScope extends AbstractSessionBasedScope implements IVisibilityHelper
AbstractSessionBasedScope.NameAcceptor
AbstractScope.ParentIterable
ALL
Modifier | Constructor and Description |
---|---|
protected |
ReceiverFeatureScope(IScope parent,
IFeatureScopeSession session,
XExpression receiver,
LightweightTypeReference receiverType,
boolean implicit,
XAbstractFeatureCall featureCall,
TypeBucket bucket,
JvmIdentifiableElement receiverFeature,
OperatorMapping operatorMapping) |
Modifier and Type | Method and Description |
---|---|
protected IEObjectDescription |
createDescription(QualifiedName name,
JvmFeature feature,
TypeBucket bucket) |
protected java.lang.Iterable<JvmFeature> |
findAllFeaturesByName(JvmType type,
java.lang.String simpleName,
IResolvedFeatures.Provider resolvedFeaturesProvider) |
protected java.lang.Iterable<IEObjectDescription> |
getAllLocalElements() |
protected java.util.Collection<IEObjectDescription> |
getLocalElementsByName(QualifiedName name) |
protected java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> |
getReceiverTypeParameterMapping() |
boolean |
isVisible(JvmMember member)
Returns
true if the member is visible according to the JvmVisibility and the local context. |
protected void |
processFeatureNames(QualifiedName name,
AbstractSessionBasedScope.NameAcceptor acceptor) |
getElements, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, isShadowed, processAsPropertyNames, tryGetAsPropertyName
getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
protected ReceiverFeatureScope(IScope parent, IFeatureScopeSession session, XExpression receiver, LightweightTypeReference receiverType, boolean implicit, XAbstractFeatureCall featureCall, TypeBucket bucket, JvmIdentifiableElement receiverFeature, OperatorMapping operatorMapping)
public boolean isVisible(@NonNull JvmMember member)
IVisibilityHelper
true
if the member is visible according to the JvmVisibility
and the local context.isVisible
in interface IVisibilityHelper
member
- the member that shall be accessed.true
if the feature can be accessed.protected java.util.Collection<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName
in class AbstractSessionBasedScope
protected java.lang.Iterable<JvmFeature> findAllFeaturesByName(JvmType type, java.lang.String simpleName, IResolvedFeatures.Provider resolvedFeaturesProvider)
findAllFeaturesByName
in class AbstractSessionBasedScope
protected IEObjectDescription createDescription(QualifiedName name, JvmFeature feature, TypeBucket bucket)
protected java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> getReceiverTypeParameterMapping()
protected void processFeatureNames(QualifiedName name, AbstractSessionBasedScope.NameAcceptor acceptor)
processFeatureNames
in class AbstractSessionBasedScope
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractScope