Community
Participate
Working Groups
package org.eclipse.emf.ecore.impl;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.util.BasicEMap;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
}
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{
EOperation eOperation = eClass().getEOperation(operationID);
assert eOperation != null : "Invalid operationID: " + operationID;
return eInvocationDelegate(eOperation).dynamicInvoke(this, arguments);
public Object eInvoke(EOperation eOperation, EList<?> arguments) throws InvocationTargetException {
int operationID = eDerivedOperationID(eOperation);
if (operationID >= 0)
return eInvoke(operationID, arguments);
else
throw new IllegalArgumentException("The operation '" + eOperation.getName() + "' is not a valid operation");
protected EClass eDynamicClass()
return eClass;