@ SuppressWarnings ( "rawtypes" ) public static boolean isSetter ( String name , Class [ ] args ) { if ( ! StringUtils . hasText ( name ) || args == null ) return false ; if ( name . startsWith ( "set" ) ) { if ( args . length != 1 ) return false ; return GrailsNameUtils . isPropertyMethodSuffix ( name . substring ( 3 ) ) ; } return false ; }
Returns true if the name of the method specified and the number of arguments make it a javabean property setter . The name is assumed to be a valid Java method name that is not verified .