perform a lookup for the method . no caching . in order to return a method the method name and arguments must match those specified when the optionalmethod was created . if the returntype is specified i.e. non-null it must also be compatible . the method must also be public . concode_field_sep Class[] methodParams concode_elem_sep String methodName concode_elem_sep Class<?> returnType concode_field_sep Object invokeWithoutCheckedException concode_elem_sep Object invokeOptionalWithoutCheckedException concode_elem_sep Object invoke concode_elem_sep boolean isSupported concode_elem_sep Method getPublicMethod concode_elem_sep Object invokeOptional
Method function ( Class < ? > arg0 ) { Method loc0 = null ; if ( methodName != null ) { loc0 = getPublicMethod ( arg0 , methodName , methodParams ) ; if ( loc0 != null && returnType != null && ! returnType . isAssignableFrom ( loc0 . getReturnType ( ) ) ) { loc0 = null ; } } return loc0 ; }