org.eclipse.emf.ecore.xcore.interpreter
Class XcoreInvocationDelegate

java.lang.Object
  extended by org.eclipse.emf.ecore.xcore.interpreter.XcoreInvocationDelegate
All Implemented Interfaces:
EOperation.Internal.InvocationDelegate

public class XcoreInvocationDelegate
extends java.lang.Object
implements EOperation.Internal.InvocationDelegate


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EOperation.Internal.InvocationDelegate
EOperation.Internal.InvocationDelegate.Factory
 
Constructor Summary
XcoreInvocationDelegate()
           
 
Method Summary
 java.lang.Object dynamicInvoke(InternalEObject target, EList<?> arguments)
          Invokes the operation behaviour for the specified target object.
 void initialize(org.eclipse.xtext.xbase.XBlockExpression body, EOperation operation, XcoreInterpreter interpreter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XcoreInvocationDelegate

public XcoreInvocationDelegate()
Method Detail

initialize

public void initialize(org.eclipse.xtext.xbase.XBlockExpression body,
                       EOperation operation,
                       XcoreInterpreter interpreter)

dynamicInvoke

public java.lang.Object dynamicInvoke(InternalEObject target,
                                      EList<?> arguments)
                               throws java.lang.reflect.InvocationTargetException
Description copied from interface: EOperation.Internal.InvocationDelegate
Invokes the operation behaviour for the specified target object.

Specified by:
dynamicInvoke in interface EOperation.Internal.InvocationDelegate
Parameters:
target - the object on which to invoke the operation
arguments - the arguments for the operation parameters (an empty list if the operation has no parameters)
Returns:
the operation's return result, or null if it is a void operation
Throws:
java.lang.reflect.InvocationTargetException - in case of failure to execute the operation behaviour, usually because of an exception

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.