class Person{
long id;
int age;
String name;
}
class Car{
int age;
String desc;
}
public class Test{
public List<Car> getCars(List<Person> personList){...}
}
1.查看入参personList里id等于100L的Person实例信息
watch Test test "params[0].{? #this.id==100l}" -n 5 -x 3
如果Person内容太多,我只关心name,那么可以这么写
watch Test test "params[0].{? #this.id==100l}.{name}" -n 5 -x 3
2.查看入参personList里name是'isMe'的Person实例信息
watch Test test "params[0].{? #this.name=='isMe'}" -n 5 -x 3
3.查看返回结果List的某个Car的实例信息
watch Test test "returnObj.{? #this.age==1}"