Class ExpressionScope
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.ExpressionScope
-
- All Implemented Interfaces:
IExpressionScope
public class ExpressionScope extends java.lang.Object implements IExpressionScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpressionScope.DelegateScopestatic classExpressionScope.Scope-
Nested classes/interfaces inherited from interface org.eclipse.xtext.xbase.typesystem.IExpressionScope
IExpressionScope.Anchor, IExpressionScope.NullExpressionScope
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.xbase.typesystem.IExpressionScope
NULL
-
-
Constructor Summary
Constructors Constructor Description ExpressionScope(FeatureScopes featureScopes, org.eclipse.emf.ecore.EObject context, IExpressionScope.Anchor anchor, ITypeReferenceOwner owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddData(IFeatureScopeSession session, IResolvedTypes types)protected org.eclipse.xtext.scoping.IScopecreateFeatureCallScopeForReceiver(XAbstractFeatureCall receiver)protected org.eclipse.xtext.scoping.IScopecreateSimpleFeatureCallScope()org.eclipse.xtext.scoping.IScopegetFeatureScope()protected org.eclipse.xtext.scoping.IScopegetFeatureScope(IExpressionScope.Anchor anchor)org.eclipse.xtext.scoping.IScopegetFeatureScope(XAbstractFeatureCall currentFeatureCall)org.eclipse.xtext.scoping.IScopegetFeatureScope(XAbstractFeatureCall currentFeatureCall, IExpressionScope.Anchor anchor)java.util.List<java.lang.String>getTypeNamePrefix()Returns the prefix that was used to resolve the feature as a type literal if any.booleanisPotentialTypeLiteral()If the current feature is worth to be tested as a type literal.voidreplacePreviousData(IFeatureScopeSession session)IExpressionScopewithAnchor(IExpressionScope.Anchor anchor)
-
-
-
Constructor Detail
-
ExpressionScope
public ExpressionScope(FeatureScopes featureScopes, org.eclipse.emf.ecore.EObject context, IExpressionScope.Anchor anchor, ITypeReferenceOwner owner)
-
-
Method Detail
-
withAnchor
public IExpressionScope withAnchor(IExpressionScope.Anchor anchor)
-
getFeatureScope
protected org.eclipse.xtext.scoping.IScope getFeatureScope(IExpressionScope.Anchor anchor)
-
createFeatureCallScopeForReceiver
protected org.eclipse.xtext.scoping.IScope createFeatureCallScopeForReceiver(XAbstractFeatureCall receiver)
-
createSimpleFeatureCallScope
protected org.eclipse.xtext.scoping.IScope createSimpleFeatureCallScope()
-
getFeatureScope
public org.eclipse.xtext.scoping.IScope getFeatureScope(XAbstractFeatureCall currentFeatureCall, IExpressionScope.Anchor anchor)
-
getFeatureScope
public org.eclipse.xtext.scoping.IScope getFeatureScope()
- Specified by:
getFeatureScopein interfaceIExpressionScope
-
getFeatureScope
public org.eclipse.xtext.scoping.IScope getFeatureScope(XAbstractFeatureCall currentFeatureCall)
- Specified by:
getFeatureScopein interfaceIExpressionScope
-
addData
public void addData(IFeatureScopeSession session, IResolvedTypes types)
-
replacePreviousData
public void replacePreviousData(IFeatureScopeSession session)
-
getTypeNamePrefix
public java.util.List<java.lang.String> getTypeNamePrefix()
Description copied from interface:IExpressionScopeReturns the prefix that was used to resolve the feature as a type literal if any.- Specified by:
getTypeNamePrefixin interfaceIExpressionScope
-
isPotentialTypeLiteral
public boolean isPotentialTypeLiteral()
Description copied from interface:IExpressionScopeIf the current feature is worth to be tested as a type literal.- Specified by:
isPotentialTypeLiteralin interfaceIExpressionScope
-
-