StringBuffer ret=new StringBuffer(); ret.append("MethodCall (name=" + method_name); ret.append(", number of args=" + args.length + ')'); ret.append("\nArgs:"); for(int i=0; i < args.length; i++) { ret.append("\n[" + args[i] + " (" + (args[i] != null? args[i].getClass().getName() : "null") + ")]"); } return ret.toString(); }
StringBuffer ret=new StringBuffer(); ret.append("MethodCall (name=" + method_name); ret.append(", number of args=" + (args != null? args.length : 0) + ')'); if(args != null) { ret.append("\nArgs:"); for(int i=0; i < args.length; i++) { ret.append("\n[" + args[i] + " (" + (args[i] != null? args[i].getClass().getName() : "null") + ")]"); } } return ret.toString(); }
    public String toStringDetails() {         StringBuffer ret=new StringBuffer();         ret.append("MethodCall (name=" + method_name);         ret.append(", number of args=" + args.length + ')');         ret.append("\nArgs:");         for(int i=0; i < args.length; i++) {             ret.append("\n[" + args[i] + " (" +                        (args[i] != null? args[i].getClass().getName() : "null") + ")]");         }         return ret.toString();     }