finds the index of the attribute with the given name in the given array of attributes . concode_field_sep ProgramClass targetClass concode_elem_sep CodeAttribute targetAttribute concode_elem_sep boolean replaceAttributes concode_elem_sep ProgramMember targetMember concode_field_sep boolean replaceAttribute concode_elem_sep Attribute findAttribute concode_elem_sep Attribute findAttribute concode_elem_sep void addAttribute concode_elem_sep Attribute[] addAttribute concode_elem_sep void deleteAttribute concode_elem_sep int deleteAttribute
int function ( int arg0 , Attribute [ ] arg1 , String arg2 ) { for ( int loc0 = 0 ; loc0 < arg0 ; loc0 ++ ) { Attribute loc1 = arg1 [ loc0 ] ; if ( loc1 . getAttributeName ( targetClass ) . equals ( arg2 ) ) { return loc0 ; } } return - 1 ; }