|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mChaRM.multichannel.mChaRMMethodCall
| Field Summary | |
protected static int |
_SIZE
|
| Constructor Summary | |
|
mChaRMMethodCall(java.lang.String s,
java.lang.String[] rs,
java.lang.String m,
java.lang.Object rv)
|
|
mChaRMMethodCall(java.lang.String s,
java.lang.String[] rs,
java.lang.String m,
java.lang.Object[] args)
|
|
mChaRMMethodCall(uka.transport.UnmarshalStream _stream)
Used by uka.transport.UnmarshalStream to unmarshal the object |
protected |
mChaRMMethodCall(uka.transport.UnmarshalStream _stream,
int _size)
|
| Method Summary | |
java.lang.Object[] |
actualArguments()
returns the actual arguments used in the trapped call. |
java.lang.Object |
deepClone(uka.transport.DeepClone _helper)
|
protected void |
deepCloneReferences(uka.transport.DeepClone _helper)
Clone all references to other objects. |
java.lang.String |
getMethodName()
returns the name of the method called. |
java.lang.Object |
getReturnValue()
gets the return value of the related method call. |
boolean |
hasArgs()
wonders about wheather the embodied call has or not arguments. |
void |
insertArgument(int position,
java.lang.Object value)
inserts a new argument at the specified position in the call. |
java.lang.Object |
inspectArgument(int position)
returns the actual value of a specified argument. |
void |
marshal(uka.transport.MarshalStream _stream)
Called directly by uka.transport.MarshalStream |
protected void |
marshalPrimitives(byte[] _buffer,
int _pos)
|
protected void |
marshalReferences(uka.transport.MarshalStream _stream)
|
java.lang.Object |
modifyArgument(int position,
java.lang.Object newValue)
changes the value of a specified argument and returns the original value of such an argument. |
void |
printmChaRMMethodCall()
prints the embodied method call. |
java.lang.String[] |
receivers()
returns an array containing the name of the reecivers involved in the call. |
java.lang.Object |
removeArgument(int position)
removes the specified argument from the embodied call. |
java.lang.String |
sender()
returns the name of the sender of the message. |
java.lang.String |
setMethodName(java.lang.String m)
changes the name of the method called. |
java.lang.Object |
setReturnValue(java.lang.Object val)
substitutes the return value of a method call. |
void |
unmarshalReferences(uka.transport.UnmarshalStream _stream)
Method of interface Transportable, it must be declared public. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static final int _SIZE
| Constructor Detail |
public mChaRMMethodCall(java.lang.String s,
java.lang.String[] rs,
java.lang.String m,
java.lang.Object[] args)
public mChaRMMethodCall(java.lang.String s,
java.lang.String[] rs,
java.lang.String m,
java.lang.Object rv)
public mChaRMMethodCall(uka.transport.UnmarshalStream _stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
protected mChaRMMethodCall(uka.transport.UnmarshalStream _stream,
int _size)
throws java.io.IOException,
java.lang.ClassNotFoundException
| Method Detail |
public java.lang.String sender()
public java.lang.String[] receivers()
public java.lang.String getMethodName()
public java.lang.String setMethodName(java.lang.String m)
m - the name of the method to be used.public java.lang.Object[] actualArguments()
public java.lang.Object inspectArgument(int position)
throws ReferenceToNonExistentArgumentException
position - the position in the call of the argument we want to inspect.ReferenceToNonExistentArgumentException - thrown when position exceeds (both the lower and the upper bound)
the number of arguments of the call.
public java.lang.Object modifyArgument(int position,
java.lang.Object newValue)
throws ReferenceToNonExistentArgumentException
position - the position in the call of the argument we want to modify.newValue - the new value for the specified argument.ReferenceToNonExistentArgumentException - thrown when position exceeds (both the lower and the upper bound)
the number of arguments of the call.
public void insertArgument(int position,
java.lang.Object value)
position - the position in the call that will have the argument we want to insert.value - the value of the new argument.
public java.lang.Object removeArgument(int position)
throws ReferenceToNonExistentArgumentException
position - the position in the call of the argument we want to remove.ReferenceToNonExistentArgumentException - thrown when position exceeds (both the lower and the upper bound)
the number of arguments of the call.public void printmChaRMMethodCall()
public boolean hasArgs()
public java.lang.Object setReturnValue(java.lang.Object val)
val - is the new value.public java.lang.Object getReturnValue()
public void unmarshalReferences(uka.transport.UnmarshalStream _stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
unmarshalReferences in interface uka.transport.Transportable
public void marshal(uka.transport.MarshalStream _stream)
throws java.io.IOException
marshal in interface uka.transport.Transportable
protected void marshalPrimitives(byte[] _buffer,
int _pos)
throws java.io.IOException
protected void marshalReferences(uka.transport.MarshalStream _stream)
throws java.io.IOException
public final java.lang.Object deepClone(uka.transport.DeepClone _helper)
throws java.lang.CloneNotSupportedException
deepClone in interface uka.transport.Transportable
protected void deepCloneReferences(uka.transport.DeepClone _helper)
throws java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||