searches in the given class for the given method name . the argument list is ignored . overload methods should n't used with it - you ca n't be sure which method you will get ! concode_field_sep PlaceHolder placeHolder concode_field_sep Enumeration<T> invokeAndCastEnumeration concode_elem_sep Collection<T> invokeAndCastCollection concode_elem_sep T invokeAndCast
Method function ( Class < ? > arg0 , String arg1 ) { Method loc0 = null ; for ( Method loc1 : arg0 . getMethods ( ) ) { if ( loc1 . getName ( ) . equals ( arg1 ) ) { loc0 = loc1 ; break ; } } if ( loc0 == null ) { throw new NoSuchMethodException ( arg1 ) ; } return loc0 ; }