public class ReceiverFeatureScope extends AbstractStaticOrInstanceFeatureScope implements IVisibilityHelper
AbstractSessionBasedScope.NameAcceptor
AbstractScope.ParentIterable
ALL
Constructor and Description |
---|
ReceiverFeatureScope(IScope parent,
IFeatureScopeSession session,
XExpression receiver,
LightweightTypeReference receiverType,
boolean implicit,
XAbstractFeatureCall featureCall,
TypeBucket bucket,
JvmIdentifiableElement receiverFeature,
OperatorMapping operatorMapping,
boolean validStaticState) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDescription(QualifiedName name,
JvmFeature feature,
java.util.List<IEObjectDescription> result) |
protected IEObjectDescription |
createDescription(QualifiedName name,
JvmFeature feature,
TypeBucket bucket) |
protected java.util.List<JvmFeature> |
findAllFeaturesByName(JvmType type,
java.lang.String simpleName,
IResolvedFeatures.Provider resolvedFeaturesProvider) |
protected java.util.List<IEObjectDescription> |
getAllLocalElements() |
protected java.util.List<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. |
addDescriptions
getOperatorMapping, processFeatureNames
addToList, addToList, getElements, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, isShadowed, processAsPropertyNames, toProperty, toProperty, tryGetAsPropertyName
getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
public ReceiverFeatureScope(IScope parent, IFeatureScopeSession session, XExpression receiver, LightweightTypeReference receiverType, boolean implicit, XAbstractFeatureCall featureCall, TypeBucket bucket, JvmIdentifiableElement receiverFeature, OperatorMapping operatorMapping, boolean validStaticState)
public boolean isVisible(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.List<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName
in class AbstractSessionBasedScope
protected java.util.List<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 java.util.List<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractSessionBasedScope
protected void addDescription(QualifiedName name, JvmFeature feature, java.util.List<IEObjectDescription> result)
addDescription
in class AbstractStaticOrInstanceFeatureScope