Package org.eclipse.xtext.xbase.jvmmodel
Interface ILogicalContainerProvider
-
- All Known Implementing Classes:
JvmModelAssociator
public interface ILogicalContainerProvider- Since:
- 2.7
- See Also:
IJvmModelAssociator.associateLogicalContainer(XExpression, JvmIdentifiableElement)- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XExpressiongetAssociatedExpression(org.eclipse.xtext.common.types.JvmIdentifiableElement element)org.eclipse.xtext.common.types.JvmIdentifiableElementgetLogicalContainer(XExpression expr)org.eclipse.xtext.common.types.JvmIdentifiableElementgetNearestLogicalContainer(org.eclipse.emf.ecore.EObject expr)
-
-
-
Method Detail
-
getLogicalContainer
org.eclipse.xtext.common.types.JvmIdentifiableElement getLogicalContainer(XExpression expr)
- Returns:
- the JvmIdentifiableElement that directly contains the given expression and therefore
defines its scope.
nullif this expression doesn't have such a context.
-
getNearestLogicalContainer
org.eclipse.xtext.common.types.JvmIdentifiableElement getNearestLogicalContainer(org.eclipse.emf.ecore.EObject expr)
- Returns:
- the JvmIdentifiableElement that contains the given expression or any of its containers
and therefore defines its scope.
nullif this expression doesn't live in such a context.
-
getAssociatedExpression
XExpression getAssociatedExpression(org.eclipse.xtext.common.types.JvmIdentifiableElement element)
- Returns:
- the XExpression associated with the given
JvmIdentifiableElement
-
-