@ Nonnull public JSFunction name ( @ Nonnull @ Nonempty final String sName ) { if ( ! JSMarshaller . isJSIdentifier ( sName ) ) throw new IllegalArgumentException ( "The name '" + sName + "' is not a legal JS identifier!" ) ; m_sName = sName ; return this ; }
Changes the name of the function .