public void parseReplacedMethodSubElements ( Element beanEle , MethodOverrides overrides ) { NodeList nl = beanEle . getChildNodes ( ) ; for ( int i = 0 ; i < nl . getLength ( ) ; i ++ ) { Node node = nl . item ( i ) ; if ( node instanceof Element && nodeNameEquals ( node , REPLACED_METHOD_ELEMENT ) ) { Element replacedMethodEle = ( Element ) node ; String name = replacedMethodEle . getAttribute ( NAME_ATTRIBUTE ) ; String callback = replacedMethodEle . getAttribute ( REPLACER_ATTRIBUTE ) ; ReplaceOverride replaceOverride = new ReplaceOverride ( name , callback ) ; // Look for arg-type match elements. List < Element > argTypeEles = DomUtils . getChildElementsByTagName ( replacedMethodEle , ARG_TYPE_ELEMENT ) ; for ( Element argTypeEle : argTypeEles ) { replaceOverride . addTypeIdentifier ( argTypeEle . getAttribute ( ARG_TYPE_MATCH_ATTRIBUTE ) ) ; } replaceOverride . setSource ( extractSource ( replacedMethodEle ) ) ; overrides . addOverride ( replaceOverride ) ; } } }
Parse replaced - method sub - elements of the given bean element .