对象的getClass().getMethods()方法可以返回java.lang.reflect.Method包中的Method类型的[],这样可以得到当前类中的所有方法,不是很常用,但是有时会需要.