@ SuppressWarnings ( "static-method" ) protected boolean isDefaultValuedParameterFunction ( XtendFunction function ) { for ( final XtendParameter parameter : function . getParameters ( ) ) { if ( parameter instanceof SarlFormalParameter ) { final SarlFormalParameter sarlParameter = ( SarlFormalParameter ) parameter ; if ( sarlParameter . getDefaultValue ( ) != null ) { return true ; } } } return false ; }
Replies if the given function has a default value for one of its parameters .