Class StaticFeatureScope
- 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.StaticFeatureScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
- Direct Known Subclasses:
StaticFeatureOnTypeLiteralScope
public class StaticFeatureScope extends AbstractStaticOrInstanceFeatureScope
A scope that contains static features. The features may be obtained implicitly from a given type (receiverisnull), or the features may be obtained from an instance which would render them invalidly accessed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
AbstractSessionBasedScope.NameAcceptor
-
-
Constructor Summary
Constructors Constructor Description StaticFeatureScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall, XExpression receiver, LightweightTypeReference receiverType, TypeBucket bucket, OperatorMapping operatorMapping)
-
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 org.eclipse.xtext.resource.IEObjectDescriptioncreateInstanceDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, TypeBucket bucket)protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>getAllLocalElements()protected TypeBucketgetBucket()protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)protected XExpressiongetReceiver()protected LightweightTypeReferencegetReceiverType()-
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, findAllFeaturesByName, getElements, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, isShadowed, processAsPropertyNames, toProperty, toProperty, tryGetAsPropertyName
-
-
-
-
Constructor Detail
-
StaticFeatureScope
public StaticFeatureScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall, XExpression receiver, LightweightTypeReference receiverType, TypeBucket bucket, OperatorMapping operatorMapping)
-
-
Method Detail
-
getLocalElementsByName
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getLocalElementsByNamein 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
-
createDescription
protected org.eclipse.xtext.resource.IEObjectDescription createDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, TypeBucket bucket)
-
createInstanceDescription
protected org.eclipse.xtext.resource.IEObjectDescription createInstanceDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmFeature feature, TypeBucket bucket)
-
getAllLocalElements
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElementsin classAbstractSessionBasedScope
-
getReceiverType
protected LightweightTypeReference getReceiverType()
-
getReceiver
protected XExpression getReceiver()
-
getBucket
protected TypeBucket getBucket()
-
-