|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.xtext.xbase.scoping.LocalVariableScopeContext
public class LocalVariableScopeContext
A wrapped parameter object that holds the necessary information for computing local variable scopes.
XbaseScopeProvider.createLocalVarScope(org.eclipse.xtext.scoping.IScope, LocalVariableScopeContext)
,
XbaseScopeProvider.createLocalVariableScopeContext(EObject, EReference, boolean, int)
Constructor Summary | |
---|---|
protected |
LocalVariableScopeContext(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference,
boolean includeCurrentBlock,
int idx,
boolean referredFromClosure,
ILogicalContainerProvider expressionContext)
|
Method Summary | |
---|---|
boolean |
canSpawnForContainer()
Used to decide whether the container hierarchy for the referenced context should be walked up or not. |
org.eclipse.emf.ecore.EObject |
getContext()
|
int |
getIndex()
Returns the index in the current block for the 'leaf context'. |
org.eclipse.emf.ecore.EObject |
getLogicalOrRealContainer()
|
org.eclipse.emf.ecore.EReference |
getReference()
|
boolean |
isIncludeCurrentBlock()
|
boolean |
isReferredFromClosure()
|
LocalVariableScopeContext |
spawnForContainer()
Create a copy of the context and adjust parameters, e.g. the information about the block scoping context is set to default while the flag referredFromClosure is updated appropriately. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LocalVariableScopeContext(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, boolean includeCurrentBlock, int idx, boolean referredFromClosure, ILogicalContainerProvider expressionContext)
Method Detail |
---|
public LocalVariableScopeContext spawnForContainer()
referredFromClosure
is updated appropriately.
null
.canSpawnForContainer()
public org.eclipse.emf.ecore.EObject getLogicalOrRealContainer()
public boolean canSpawnForContainer()
context
should be walked up or not.
public org.eclipse.emf.ecore.EObject getContext()
public org.eclipse.emf.ecore.EReference getReference()
public int getIndex()
public boolean isIncludeCurrentBlock()
public boolean isReferredFromClosure()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |