Here you can find the source of collectArguments(JoinPoint jp)
public static Iterable<Object> collectArguments(JoinPoint jp)
//package com.java2s; //License from project: Apache License import org.aspectj.lang.JoinPoint; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class Main { public static Iterable<Object> collectArguments(JoinPoint jp) { List<Object> result = new ArrayList<>(); for (Object arg : jp.getArgs()) { if (arg instanceof Collection) { result.addAll((Collection) arg); } else { result.add(arg);/* w w w . j a va 2 s . c o m*/ } } return result; } }