public interface IJvmModelAssociator
IJvmModelAssociations
Modifier and Type | Method and Description |
---|---|
void |
associate(org.eclipse.emf.ecore.EObject sourceElement,
org.eclipse.emf.ecore.EObject jvmElement)
Associated the given source element with the given jvmElement.
|
void |
associateLogicalContainer(XExpression expression,
JvmIdentifiableElement logicalContainer)
Sets the given
JvmIdentifiableElement as the logical container of the given XExpression . |
void |
associatePrimary(org.eclipse.emf.ecore.EObject sourceElement,
org.eclipse.emf.ecore.EObject jvmElement)
Associated the given source element with the given jvmElement and marks the association as primary
on both sides.
|
void |
removeAllAssociation(org.eclipse.emf.ecore.EObject jvmElement)
Removes all associations for the given jvm element.
|
void |
removeAssociation(org.eclipse.emf.ecore.EObject sourceElement,
org.eclipse.emf.ecore.EObject jvmElement)
Removes an association between the given source and jvm elements.
|
void |
removeLogicalChildAssociation(JvmIdentifiableElement logicalContainer)
Removes the logically contained child of the given identifiable.
|
void associate(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement)
sourceElement
- the source EObjectjvmElement
- the inferred EObjectvoid associatePrimary(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement)
sourceElement
- the source EObjectjvmElement
- the inferred EObjectvoid associateLogicalContainer(XExpression expression, JvmIdentifiableElement logicalContainer)
JvmIdentifiableElement
as the logical container of the given XExpression
.
The container must be an instanceof JvmExecutable
or JvmField
.
The logical container is used to scope and link the given expression.
Associating the logical container of an expression, automatically removes any previously logical containers for the given expression.expression
- the expression that is put into a scopelogicalContainer
- a method, constructor or field that should act as the logical container of the given expressionvoid removeLogicalChildAssociation(JvmIdentifiableElement logicalContainer)
void removeAssociation(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement)
java.lang.IllegalArgumentException
- if the given source element is null; if the given jvm element is null or dangling; if elements does not belong to the same resourcevoid removeAllAssociation(org.eclipse.emf.ecore.EObject jvmElement)
java.lang.IllegalArgumentException
- if the give jvm element is null or dangling