|
JMMF API pre-release v0.8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fr.umlv.jmmf.hook.AbstractMessage
Abstract class that provide implementation for
common properties of AdapterMessage and
MultiMessage.
set/get),
set/get),
set/get/insert/remove).
| Constructor Summary | |
AbstractMessage()
|
|
| Method Summary | |
java.lang.Object[] |
getParameters()
get parameters of the requested method. |
java.lang.Class[] |
getParameterTypes()
get parameter type of the requested method. |
java.lang.Object |
getResult()
return the result of the invocation call. |
java.lang.Object |
getTarget()
return the target object of the message. |
void |
insertParameter(int index,
java.lang.Object arg,
java.lang.Class type)
insert a parameter and it's type into the parameter list. |
void |
removeParameter(int index)
remove a parameter. |
void |
setParameters(java.lang.Object[] args)
set parameters of the requested method. |
void |
setParameters(java.lang.Object[] args,
java.lang.Class[] types)
set the arguments of the requested method. |
void |
setResult(java.lang.Object result)
set an object as the result of the invocation call. |
void |
setTarget(java.lang.Object target)
set the target object of the message. |
protected void |
updateInnerMessage()
udpate inner-message informations. |
protected void |
updatePostMessage(java.lang.Object result)
udpate post-message informations. |
protected void |
updatePreMessage(java.lang.Object[] args,
java.lang.Class[] types)
udpate pre-message informations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractMessage()
| Method Detail |
public java.lang.Object getTarget()
public void setTarget(java.lang.Object target)
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
public java.lang.Object[] getParameters()
setParameters(Object[],Class[]),
getParameterTypes()public java.lang.Class[] getParameterTypes()
getParameters()public void setParameters(java.lang.Object[] args)
args - an array of object that contains the new parameters
of the requested method.setParameters(Object[],Class[]),
getParameters()
public void setParameters(java.lang.Object[] args,
java.lang.Class[] types)
args - an array of object that contains the new parameters
of the requested method.types - an array of class that contains the types of the
new parameters.getParameters(),
getParameterTypes()
public void insertParameter(int index,
java.lang.Object arg,
java.lang.Class type)
arg - parameter value.type - type of the parameter.index - must be in range [0..parameters.length].public void removeParameter(int index)
index - must be in range [0..parameters.length[.
protected void updatePreMessage(java.lang.Object[] args,
java.lang.Class[] types)
protected void updateInnerMessage()
protected void updatePostMessage(java.lang.Object result)
|
JMMF API pre-release v0.8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||