public static Map < String , MethodNode > getDeclaredMethodsFromInterfaces ( ClassNode cNode ) { Map < String , MethodNode > result = new HashMap < String , MethodNode > ( ) ; ClassNode [ ] interfaces = cNode . getInterfaces ( ) ; for ( ClassNode iface : interfaces ) { result . putAll ( iface . getDeclaredMethodsMap ( ) ) ; } return result ; }
Get methods from all interfaces . Methods from interfaces visited early will be overwritten by later ones .