private static List < String > getAllInterfaceMethodInfo ( List < InterfaceInfo > interfaceInfoList ) { List < String > names = new ArrayList <> ( ) ; if ( interfaceInfoList == null || interfaceInfoList . isEmpty ( ) ) { return names ; } interfaceInfoList . forEach ( ( InterfaceInfo interfaceInfo ) -> { if ( interfaceInfo . getMethodNames ( ) != null && ! interfaceInfo . getMethodNames ( ) . isEmpty ( ) ) { names . addAll ( interfaceInfo . getMethodNames ( ) ) ; } names . addAll ( getAllInterfaceMethodInfo ( interfaceInfo . getExtendedInterfaces ( ) ) ) ; } ) ; return names ; }
Obtain the names of all the methods in the current interface and all the extended interfaces .