public static boolean isSetter ( Method method ) { String name = method . getName ( ) ; String [ ] splitname = StringUtils . splitByCharacterTypeCamelCase ( name ) ; return method . getReturnType ( ) . equals ( void . class ) && Modifier . isPublic ( method . getModifiers ( ) ) && splitname [ 0 ] . equals ( SETTER_PREFIX ) ; }
Determine if the method is a setter .