org.eclipse.xtext.xbase.jvmmodel
Interface ILogicalContainerProvider
- All Known Implementing Classes:
- IXtendJvmAssociations.Impl, JvmModelAssociator
public interface ILogicalContainerProvider
- Author:
- Sven Efftinge - Initial contribution and API
getLogicalContainer
JvmIdentifiableElement getLogicalContainer(org.eclipse.emf.ecore.EObject expr)
- Returns:
- the JvmIdentifiableElement that directly contains the given expression and therefore
defines its scope.
null
if this expression doesn't have such a context.
getNearestLogicalContainer
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.
null
if this expression doesn't live in such a context.
getAssociatedExpression
XExpression getAssociatedExpression(JvmIdentifiableElement element)
- Returns:
- the XExpression associated with the given
JvmIdentifiableElement