1 5 package com.tcclient.object; 6 7 10 public class DistributedMethodCall { 11 private final Object receiver; 12 private final Object [] parameters; 13 private final String methodName; 14 private final String paramDesc; 15 16 public DistributedMethodCall(final Object receiver, final Object [] parameters, final String methodName, 17 final String paramDesc) { 18 this.receiver = receiver; 19 this.parameters = parameters; 20 this.methodName = methodName; 21 this.paramDesc = paramDesc; 22 } 23 24 public Object getReceiver() { 25 return receiver; 26 } 27 28 public String getMethodName() { 29 return this.methodName; 30 } 31 32 public String getParameterDesc() { 33 return paramDesc; 34 } 35 36 public final Object [] getParameters() { 37 Object [] rv = new Object [parameters.length]; 38 for (int i = 0; i < parameters.length; i++) 39 rv[i] = parameters[i]; 40 return rv; 41 } 42 43 public String toString() { 44 return receiver.getClass().getName() + "." + methodName + paramDesc; 45 } 46 } 47 | Popular Tags |