Class LocalVariableScope
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScope
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
-
- org.eclipse.xtext.xbase.scoping.batch.LocalVariableScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
public class LocalVariableScope extends AbstractSessionBasedScope
A scope for the local variables that have been registered in the given session.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
AbstractSessionBasedScope.NameAcceptor
-
-
Constructor Summary
Constructors Constructor Description LocalVariableScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canBeLocalVariable()
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>
getAllLocalElements()
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getElements(org.eclipse.xtext.naming.QualifiedName name)
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription>
getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
org.eclipse.xtext.resource.IEObjectDescription
getSingleElement(org.eclipse.xtext.naming.QualifiedName name)
protected boolean
isShadowed(org.eclipse.xtext.resource.IEObjectDescription fromParent)
protected boolean
looksLikeLocalVariable(XAbstractFeatureCall featureCall)
protected boolean
looksLikeLocalVariable(XAbstractFeatureCall featureCall, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> localElements)
-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
addToList, addToList, findAllFeaturesByName, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, processAsPropertyNames, processFeatureNames, toProperty, toProperty, tryGetAsPropertyName
-
-
-
-
Constructor Detail
-
LocalVariableScope
public LocalVariableScope(org.eclipse.xtext.scoping.IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
-
-
Method Detail
-
getAllLocalElements
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in classAbstractSessionBasedScope
-
getSingleElement
public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getSingleElement
in interfaceorg.eclipse.xtext.scoping.IScope
- Overrides:
getSingleElement
in classorg.eclipse.xtext.scoping.impl.AbstractScope
-
getLocalElementsByName
protected java.util.List<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getLocalElementsByName
in classAbstractSessionBasedScope
-
canBeLocalVariable
protected boolean canBeLocalVariable()
-
looksLikeLocalVariable
protected boolean looksLikeLocalVariable(XAbstractFeatureCall featureCall)
-
looksLikeLocalVariable
protected boolean looksLikeLocalVariable(XAbstractFeatureCall featureCall, java.util.List<org.eclipse.xtext.resource.IEObjectDescription> localElements)
- Parameters:
localElements
- subclasses may use that.
-
getElements
public java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getElements
in interfaceorg.eclipse.xtext.scoping.IScope
- Overrides:
getElements
in classAbstractSessionBasedScope
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription fromParent)
- Overrides:
isShadowed
in classAbstractSessionBasedScope
-
-