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 booleancanBeLocalVariable()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.IEObjectDescriptiongetSingleElement(org.eclipse.xtext.naming.QualifiedName name)protected booleanisShadowed(org.eclipse.xtext.resource.IEObjectDescription fromParent)protected booleanlooksLikeLocalVariable(XAbstractFeatureCall featureCall)protected booleanlooksLikeLocalVariable(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:
getAllLocalElementsin classAbstractSessionBasedScope
-
getSingleElement
public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name)
- Specified by:
getSingleElementin interfaceorg.eclipse.xtext.scoping.IScope- Overrides:
getSingleElementin 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:
getLocalElementsByNamein 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:
getElementsin interfaceorg.eclipse.xtext.scoping.IScope- Overrides:
getElementsin classAbstractSessionBasedScope
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription fromParent)
- Overrides:
isShadowedin classAbstractSessionBasedScope
-
-