Method m1 = AAA.getClass().getMethod('className',BBB.class); Object returnList = m1.invoke('AAA',bbb);