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 class
ExpressionScope.DelegateScope
static class
ExpressionScope.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 void
addData(IFeatureScopeSession session, IResolvedTypes types)
protected org.eclipse.xtext.scoping.IScope
createFeatureCallScopeForReceiver(XAbstractFeatureCall receiver)
protected org.eclipse.xtext.scoping.IScope
createSimpleFeatureCallScope()
org.eclipse.xtext.scoping.IScope
getFeatureScope()
protected org.eclipse.xtext.scoping.IScope
getFeatureScope(IExpressionScope.Anchor anchor)
org.eclipse.xtext.scoping.IScope
getFeatureScope(XAbstractFeatureCall currentFeatureCall)
org.eclipse.xtext.scoping.IScope
getFeatureScope(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.boolean
isPotentialTypeLiteral()
If the current feature is worth to be tested as a type literal.void
replacePreviousData(IFeatureScopeSession session)
IExpressionScope
withAnchor(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:
getFeatureScope
in interfaceIExpressionScope
-
getFeatureScope
public org.eclipse.xtext.scoping.IScope getFeatureScope(XAbstractFeatureCall currentFeatureCall)
- Specified by:
getFeatureScope
in 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:IExpressionScope
Returns the prefix that was used to resolve the feature as a type literal if any.- Specified by:
getTypeNamePrefix
in interfaceIExpressionScope
-
isPotentialTypeLiteral
public boolean isPotentialTypeLiteral()
Description copied from interface:IExpressionScope
If the current feature is worth to be tested as a type literal.- Specified by:
isPotentialTypeLiteral
in interfaceIExpressionScope
-
-