public static ReflectionMethod getNoArgsMethod ( Class < ? > clazz , String methodName ) { assertReflectionAccessor ( ) ; try { // TODO: Support inheritance? return accessor . getDeclaredMethod ( clazz , methodName , NO_ARGS_TYPE ) ; } catch ( Exception e ) { throw SneakyException . sneakyThrow ( e ) ; } }
Returns a method with the provided name that takes no - args .