org.eclipse.ocl.ecore.delegate
Class OCLInvocationDelegate

java.lang.Object
  extended by org.eclipse.emf.ecore.util.BasicInvocationDelegate
      extended by org.eclipse.ocl.ecore.delegate.OCLInvocationDelegate
All Implemented Interfaces:
org.eclipse.emf.ecore.EOperation.Internal.InvocationDelegate

public class OCLInvocationDelegate
extends org.eclipse.emf.ecore.util.BasicInvocationDelegate

An implementation of an operation-invocation delegate for OCL body expressions.

Since:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EOperation.Internal.InvocationDelegate
org.eclipse.emf.ecore.EOperation.Internal.InvocationDelegate.Factory
 
Field Summary
protected  OCLDelegateDomain delegateDomain
           
 
Fields inherited from class org.eclipse.emf.ecore.util.BasicInvocationDelegate
eOperation
 
Constructor Summary
OCLInvocationDelegate(OCLDelegateDomain delegateDomain, org.eclipse.emf.ecore.EOperation operation)
          Initializes me with my operation.
 
Method Summary
 java.lang.Object dynamicInvoke(org.eclipse.emf.ecore.InternalEObject target, org.eclipse.emf.common.util.EList<?> arguments)
           
 java.lang.String getOperationName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegateDomain

protected final OCLDelegateDomain delegateDomain
Constructor Detail

OCLInvocationDelegate

public OCLInvocationDelegate(OCLDelegateDomain delegateDomain,
                             org.eclipse.emf.ecore.EOperation operation)
Initializes me with my operation.

Parameters:
operation - the operation that I handle
Throws:
ParserException - if the operation's OCL body expression is invalid
Method Detail

dynamicInvoke

public java.lang.Object dynamicInvoke(org.eclipse.emf.ecore.InternalEObject target,
                                      org.eclipse.emf.common.util.EList<?> arguments)
                               throws java.lang.reflect.InvocationTargetException
Specified by:
dynamicInvoke in interface org.eclipse.emf.ecore.EOperation.Internal.InvocationDelegate
Overrides:
dynamicInvoke in class org.eclipse.emf.ecore.util.BasicInvocationDelegate
Throws:
java.lang.reflect.InvocationTargetException

getOperationName

public java.lang.String getOperationName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object