private static boolean implementsMethod ( ClassNode classNode , String methodName , Class [ ] argTypes ) { List methods = classNode . getMethods ( ) ; if ( argTypes == null || argTypes . length == 0 ) { for ( Iterator i = methods . iterator ( ) ; i . hasNext ( ) ; ) { MethodNode mn = ( MethodNode ) i . next ( ) ; boolean methodMatch = mn . getName ( ) . equals ( methodName ) ; if ( methodMatch ) return true ; // TODO Implement further parameter analysis } } return false ; }
Tests whether the ClassNode implements the specified method name