|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jicengine.operation.MethodInvocationOperation
Constructor Summary | |
MethodInvocationOperation(java.lang.String signature,
Operation actor,
Operation[] parameters)
|
Method Summary | |
static java.lang.Object[] |
evaluateParameters(Operation[] parameters,
Context context)
|
java.lang.Object |
execute(Context context)
executes the operation in a given context. objects in the context might be used in evaluation, or operation could produce more objects into the context. |
protected abstract java.lang.Object |
execute(java.lang.Object actor,
java.lang.Object[] parameters)
|
boolean |
needsParameter(java.lang.String name)
So clients may query if this operation needs a particular parameter. a return value 'true' means that in order to execute this parameter, a parameter with the given name must exist in the context. |
boolean |
needsParameters()
So clients may query whether this operation needs any parameters at all. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MethodInvocationOperation(java.lang.String signature, Operation actor, Operation[] parameters)
Method Detail |
public boolean needsParameters()
Operation
needsParameters
in interface Operation
public boolean needsParameter(java.lang.String name)
Operation
So clients may query if this operation needs a particular parameter. a return value 'true' means that in order to execute this parameter, a parameter with the given name must exist in the context.
if the parmeter in question is an optional parameter, a true must be returned.
needsParameter
in interface Operation
public java.lang.Object execute(Context context) throws OperationException
Operation
executes the operation in a given context. objects in the context might be used in evaluation, or operation could produce more objects into the context.
NOTE: operations must be re-executable.
execute
in interface Operation
OperationException
public java.lang.String toString()
protected abstract java.lang.Object execute(java.lang.Object actor, java.lang.Object[] parameters) throws OperationException
OperationException
public static java.lang.Object[] evaluateParameters(Operation[] parameters, Context context) throws OperationException
OperationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |