Revision: 4000 http://vexi.svn.sourceforge.net/vexi/?rev=4000&view=rev Author: clrg Date: 2011-01-25 01:20:33 +0000 (Tue, 25 Jan 2011)
Log Message: ----------- Accurate jsdoc for JSDate Modified Paths: -------------- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp Modified: trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp =================================================================== --- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2011-01-25 00:46:21 UTC (rev 3999) +++ trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2011-01-25 01:20:33 UTC (rev 4000) @@ -65,9 +65,9 @@ } public String coerceToString() { return date_format(date, FORMATSPEC_FULL); } - public JS type() { return SC_date; } + public JS type() { return SC_date; } - public JS callMethod(JS this_, JS method, JS[] args) throws JSExn { + public JS callMethod(JS this_, JS method, JS[] args) throws JSExn { switch(args.length) { case 0: { //#switch(JSU.toString(method)) @@ -99,7 +99,7 @@ case "getUTCMilliseconds": return JSU.N(msFromTime(date)); case "getTimezoneOffset": return JSU.N(getTimezoneOffset(date)); //#end - return super.callMethod(this_, method, args); + break; } case 1: { //#switch(JSU.toString(method)) @@ -137,139 +137,172 @@ * <p>The standard js date object.</p> * */ /* <p>Returns the day of the month (1-31)</p> - * @return(number) */ + * @return(Number) */ case "getDate": return METHOD; /* <p>Returns the day of the week (0-6)</p> - * @return(number) */ + * @return(Number) */ case "getDay": return METHOD; /* <p>Returns the year</p> - * @return(number) */ + * @return(Number) */ case "getFullYear": return METHOD; /* <p>Returns the hour (0-23)</p> - * @return(number) */ + * @return(Number) */ case "getHours": return METHOD; /* <p>Returns the milliseconds (0-999)</p> - * @return(number) */ + * @return(Number) */ case "getMilliseconds": return METHOD; /* <p>Returns the minutes (0-59)</p> - * @return(number) */ + * @return(Number) */ case "getMinutes": return METHOD; /* <p>Returns the month (0-11)</p> - * @return(number) */ + * @return(Number) */ case "getMonth": return METHOD; /* <p>Returns the seconds (0-59)</p> - * @return(number) */ + * @return(Number) */ case "getSeconds": return METHOD; /* <p>Returns the number of milliseconds since midnight Jan 1, 1970</p> - * @return(string) */ + * @return(String) */ case "getTime": return METHOD; /* <p>Returns the difference, in minutes, between GMT and local time</p> - * @return(number) */ + * @return(Number) */ case "getTimezoneOffset": return METHOD; /* <p><b>Deprecated</b> - use getFullYear()</p> * <p>Returns the years since 1900</p> - * @return(number) */ + * @return(Number) */ case "getYear": return METHOD; /* <p>Returns the day of the month (1-31) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCDate": return METHOD; /* <p>Returns the day of the week (0-6) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCDay": return METHOD; /* <p>Returns the year according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCFullYear": return METHOD; /* <p>Returns the hour (0-23) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCHours": return METHOD; /* <p>Returns the milliseconds (0-999) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCMilliseconds": return METHOD; /* <p>Returns the minutes (0-59) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCMinutes": return METHOD; /* <p>Returns the month (0-11) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCMonth": return METHOD; /* <p>Returns the seconds (0-59) according to universal time</p> - * @return(number) */ + * @return(Number) */ case "getUTCSeconds": return METHOD; - /* <p>Sets the day of the month (1-31)</p> - * @return(number) */ + /* <p>Sets the day of the month (1-31), and returns the date as milliseconds</p> + * @return(Number) */ case "setDate": return METHOD; - /* <p>Sets the year</p> - * @return(number) */ + /* <p>Sets the year, and returns the date as milliseconds</p> + * @param(name=year) + * @param(name=month,optional=true) + * @param(name=date,optional=true) + * @return(Number) */ case "setFullYear": return METHOD; - /* <p>Sets the hour (0-23)</p> - * @return(number) */ + /* <p>Sets the hour (0-23), and returns the date as milliseconds</p> + * @param(name=hours) + * @param(name=mins,optional=true) + * @param(name=secs,optional=true) + * @param(name=ms,optional=true) + * @return(Number) */ case "setHours": return METHOD; - /* <p>Sets the milliseconds (0-999)</p> - * @return(number) */ + /* <p>Sets the milliseconds (0-999), and returns the date as milliseconds</p> + * @param(name=ms) + * @return(Number) */ case "setMilliseconds": return METHOD; - /* <p>Set the minutes (0-59)</p> - * @return(number) */ + /* <p>Set the minutes (0-59), and returns the date as milliseconds</p> + * @param(name=mins) + * @param(name=secs,optional=true) + * @param(name=ms,optional=true) + * @return(Number) */ case "setMinutes": return METHOD; - /* <p>Sets the month (0-11)</p> - * @return(number) */ + /* <p>Sets the month (0-11), and returns the date as milliseconds</p> + * @param(name=month) + * @param(name=date,optional=true) + * @return(Number) */ case "setMonth": return METHOD; - /* <p>Sets the seconds (0-59)</p> - * @return(number) */ + /* <p>Sets the seconds (0-59), and returns the date as milliseconds</p> + * @param(name=secs) + * @param(name=ms,optional=true) + * @return(Number) */ case "setSeconds": return METHOD; - /* <p>Sets a date and time by adding the specified number of milliseconds to midnight January 1, 1970</p> - * @return(number) */ + /* <p>Sets a date and time by adding the specified ‘ms’ milliseconds to midnight January 1, 1970</p> + * @param(name=ms) + * @return(Number) */ case "setTime": return METHOD; /* <p><b>Deprecated</b> - use setFullYear()</p> - * <p>Sets the year as an offset of 1900</p> - * @return(number) */ + * <p>Sets the year as an offset of 1900, and returns the date as milliseconds</p> + * @param(name=year) + * @return(Number) */ case "setYear": return METHOD; - /* <p>Sets the day of the month (1-31) according to universal time</p> - * @return(number) */ + /* <p>Sets the day of the month (1-31) according to universal time, and returns the date as milliseconds</p> + * @param(name=date) + * @return(Number) */ case "setUTCDate": return METHOD; - /* <p>Sets the year according to universal time</p> - * @return(number) */ + /* <p>Sets the year according to universal time, and returns the date as milliseconds</p> + * @param(name=year) + * @param(name=month,optional=true) + * @param(name=date,optional=true) + * @return(Number) */ case "setUTCFullYear": return METHOD; - /* <p>Sets the milliseconds (0-999) according to universal time</p> - * @return(number) */ + /* <p>Sets the milliseconds (0-999) according to universal time, and returns the date as milliseconds</p> + * @param(name=ms) + * @return(Number) */ case "setUTCMilliseconds": return METHOD; - /* <p>Sets the seconds (0-59) according to universal time</p> - * @return(number) */ + /* <p>Sets the seconds (0-59) according to universal time, and returns the date as milliseconds</p> + * @param(name=secs) + * @param(name=ms,optional=true) + * @return(Number) */ case "setUTCSeconds": return METHOD; - /* <p>Set the minutes (0-59) according to universal time</p> - * @return(number) */ + /* <p>Set the minutes (0-59) according to universal time, and returns the date as milliseconds</p> + * @param(name=mins) + * @param(name=secs,optional=true) + * @param(name=ms,optional=true) + * @return(Number) */ case "setUTCMinutes": return METHOD; - /* <p>Sets the hour (0-23) according to universal time</p> - * @return(number) */ + /* <p>Sets the hour (0-23) according to universal time, and returns the date as milliseconds</p> + * @param(name=hours) + * @param(name=mins,optional=true) + * @param(name=secs,optional=true) + * @param(name=ms,optional=true) + * @return(Number) */ case "setUTCHours": return METHOD; - /* <p>Sets the month (0-11)) according to universal time</p> - * @return(number) */ + /* <p>Sets the month (0-11)) according to universal time, and returns the date as milliseconds</p> + * @param(name=month) + * @param(name=date,optional=true) + * @return(Number) */ case "setUTCMonth": return METHOD; /* <p>Returns a string representing the date portion of the Date object</p> - * @return(string) */ + * @return(String) */ case "toDateString": return METHOD; /* <p><b>Deprecated</b> - use toUTCString()</p> * <p>Throws an exception</p> - * @return(error) */ + * @return(Error) */ case "toGMTString": throw new JSExn("Not implemented"); /* <p>Returns a string representing the Date object, using locale conventions</p> - * @return(string) */ + * @return(String) */ case "toLocaleString": return METHOD; /* <p>Returns a string representing the time portion of the Date object, using locale conventions</p> - * @return(string) */ + * @return(String) */ case "toLocaleTimeString": return METHOD; /* <p>Returns a string representing the date portion of the Date object, using locale conventions</p> - * @return(string) */ + * @return(String) */ case "toLocaleDateString": return METHOD; /* <p>Returns a string representing the Date object</p> - * @return(string) */ + * @return(String) */ case "toString": return METHOD; /* <p>Returns a string representing the time portion of the Date object</p> - * @return(string) */ + * @return(String) */ case "toTimeString": return METHOD; /* <p>Returns a string representing the Date object according to universal time</p> - * @return(string) */ + * @return(String) */ case "toUTCString": return METHOD; /* <p>Returns the primitive value of the Date object</p> - * @return(string) */ + * @return(String) */ case "valueOf": return METHOD; //#end return super.get(key); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn