public class HelperOperationCall extends Object
query
and helper
with side-effects operations.
The call object is intended to be used in a given execution context in which it's created and invocations with actual parameter values.
NonTransformationExecutionContext
Modifier and Type | Method and Description |
---|---|
EClassifier |
getContextType()
Gets the context type of the operation referred by this call object.
|
Module |
getLibrary()
Gets the library module defining the operation referred by this call object.
|
Helper |
getOperation()
Gets the operation referred by this operation call
|
Object |
invoke(Object[] arguments)
Invokes as a library module owned (non-contextual) operation.
|
Object |
invoke(Object self,
Object[] arguments)
Performs contextual operation call on the operation referred by this call
object.
|
boolean |
isContextual()
Indicates whether the operation referred by this operation call is
contextual.
|
String |
toString() |
public Helper getOperation()
non-null
operation objectpublic Module getLibrary()
non-null
module objectpublic EClassifier getContextType()
null
if the referred operation is not contextual.isContextual()
public boolean isContextual()
true
if the operation is contextual and requires an
explicit contextual instance to be passed to every invocation.
false
indicates that operation is owned by defined
on a library and has no context type.getContextType()
,
invoke(Object, Object[])
public Object invoke(Object[] arguments) throws IllegalArgumentException, InvocationTargetException
arguments
- actual parameter values passed to the invocation or
null
in no parameters are definedIllegalArgumentException
- if the arguments
do not conform to
corresponding parameter types or the underlying operation
is contextualInvocationTargetException
- if the underling operation throws an exceptioninvoke(Object, Object[])
public Object invoke(Object self, Object[] arguments) throws IllegalArgumentException, InvocationTargetException
self
- a non-null
context type instance on which the invocation is performedarguments
- actual parameter values passed to the invocation or
null
in no parameters are definedIllegalArgumentException
- if the self
does not conform to the operation
context type or the arguments
do not conform
to corresponding parameter types or the underlying
operation is non-contextualInvocationTargetException
- if the underling operation throws an exceptioninvoke(Object[])
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.