public class ExpressionScope extends java.lang.Object implements IExpressionScope
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionScope.DelegateScope |
static class |
ExpressionScope.Scope |
IExpressionScope.Anchor, IExpressionScope.NullExpressionScope
NULL
Constructor and Description |
---|
ExpressionScope(FeatureScopes featureScopes,
org.eclipse.emf.ecore.EObject context,
IExpressionScope.Anchor anchor,
ITypeReferenceOwner owner) |
Modifier and Type | Method and Description |
---|---|
void |
addData(IFeatureScopeSession session,
IResolvedTypes types) |
protected IScope |
createFeatureCallScopeForReceiver(XAbstractFeatureCall receiver) |
protected IScope |
createSimpleFeatureCallScope() |
IScope |
getFeatureScope() |
protected IScope |
getFeatureScope(IExpressionScope.Anchor anchor) |
IScope |
getFeatureScope(XAbstractFeatureCall currentFeatureCall) |
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) |
public ExpressionScope(FeatureScopes featureScopes, org.eclipse.emf.ecore.EObject context, IExpressionScope.Anchor anchor, ITypeReferenceOwner owner)
public IExpressionScope withAnchor(IExpressionScope.Anchor anchor)
protected IScope getFeatureScope(IExpressionScope.Anchor anchor)
protected IScope createFeatureCallScopeForReceiver(XAbstractFeatureCall receiver)
protected IScope createSimpleFeatureCallScope()
public IScope getFeatureScope(XAbstractFeatureCall currentFeatureCall, IExpressionScope.Anchor anchor)
public IScope getFeatureScope()
getFeatureScope
in interface IExpressionScope
public IScope getFeatureScope(XAbstractFeatureCall currentFeatureCall)
getFeatureScope
in interface IExpressionScope
public void addData(IFeatureScopeSession session, IResolvedTypes types)
public void replacePreviousData(IFeatureScopeSession session)
public java.util.List<java.lang.String> getTypeNamePrefix()
IExpressionScope
getTypeNamePrefix
in interface IExpressionScope
public boolean isPotentialTypeLiteral()
IExpressionScope
isPotentialTypeLiteral
in interface IExpressionScope