Methods Summary |
---|
public void | add(java.lang.String method, java.lang.Object args)Adds a method call with a variable list of arguments.
Object[] argsCopy = new Object[args.length];
System.arraycopy(args, 0, argsCopy, 0, args.length);
methods.add(method);
argLists.add(argsCopy);
|
public void | clear()Clears the log.
methods.clear();
argLists.clear();
|
public java.lang.Object[] | getArgs(int index)Returns the argument array stored at the given index. May be empty, but
not null.
return argLists.get(index);
|
public java.lang.Object[] | getArgs()Returns the argument array of the last method that was invoked. Returns
null if no method has been invoked so far.
return (size() == 0 ? null : getArgs(size() - 1));
|
public java.lang.String | getMethod(int index)Returns the method name stored at the given index.
return methods.get(index);
|
public java.lang.String | getMethod()Returns the name of the last method that was invoked. Returns null if no
method calls have been logged so far.
return (size() == 0 ? null : getMethod(size() - 1));
|
public int | size()Returns the number of method invoked so far.
return methods.size();
|