public Method createObjectMethod ( Object ownerClass , String methodName , Class [ ] paramTypes ) { Method m = null ; try { m = ownerClass . getClass ( ) . getMethod ( methodName , paramTypes ) ; } catch ( NoSuchMethodException nsme ) { String errS = " NoSuchMethod:" + methodName + " in className:" + ownerClass . getClass ( ) . getName ( ) + " or method's args type error" ; Debug . logError ( errS , module ) ; } catch ( Exception ex ) { Debug . logError ( "[JdonFramework] createMethod error:" + ex , module ) ; } return m ; }
create a method object