1 Clazz.declarePackage ("jssun.util.calendar");
2 Clazz.load (["jssun.util.calendar.BaseCalendar"], "jssun.util.calendar.ImmutableGregorianDate", ["java.lang.NullPointerException", "$.UnsupportedOperationException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, jssun.util.calendar, "ImmutableGregorianDate", jssun.util.calendar.BaseCalendar.Date);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, jssun.util.calendar.ImmutableGregorianDate, []);
11 throw new NullPointerException ();
13 }, "jssun.util.calendar.BaseCalendar.Date");
14 Clazz.defineMethod (c$, "getEra",
16 return this.date.getEra ();
18 Clazz.overrideMethod (c$, "setEra",
22 }, "jssun.util.calendar.Era");
23 Clazz.defineMethod (c$, "getYear",
25 return this.date.getYear ();
27 Clazz.overrideMethod (c$, "setYear",
32 Clazz.overrideMethod (c$, "addYear",
37 Clazz.defineMethod (c$, "isLeapYear",
39 return this.date.isLeapYear ();
41 Clazz.overrideMethod (c$, "setLeapYear",
45 Clazz.defineMethod (c$, "getMonth",
47 return this.date.getMonth ();
49 Clazz.overrideMethod (c$, "setMonth",
54 Clazz.overrideMethod (c$, "addMonth",
59 Clazz.defineMethod (c$, "getDayOfMonth",
61 return this.date.getDayOfMonth ();
63 Clazz.overrideMethod (c$, "setDayOfMonth",
68 Clazz.overrideMethod (c$, "addDayOfMonth",
73 Clazz.defineMethod (c$, "getDayOfWeek",
75 return this.date.getDayOfWeek ();
77 Clazz.defineMethod (c$, "getHours",
79 return this.date.getHours ();
81 Clazz.overrideMethod (c$, "setHours",
86 Clazz.overrideMethod (c$, "addHours",
91 Clazz.defineMethod (c$, "getMinutes",
93 return this.date.getMinutes ();
95 Clazz.overrideMethod (c$, "setMinutes",
100 Clazz.overrideMethod (c$, "addMinutes",
105 Clazz.defineMethod (c$, "getSeconds",
107 return this.date.getSeconds ();
109 Clazz.overrideMethod (c$, "setSeconds",
114 Clazz.overrideMethod (c$, "addSeconds",
119 Clazz.defineMethod (c$, "getMillis",
121 return this.date.getMillis ();
123 Clazz.overrideMethod (c$, "setMillis",
128 Clazz.overrideMethod (c$, "addMillis",
133 Clazz.defineMethod (c$, "getTimeOfDay",
135 return this.date.getTimeOfDay ();
137 Clazz.overrideMethod (c$, "setDate",
138 function (year, month, dayOfMonth) {
142 Clazz.overrideMethod (c$, "addDate",
143 function (year, month, dayOfMonth) {
147 Clazz.defineMethod (c$, "setTimeOfDay",
148 function (hours, minutes, seconds, millis) {
152 Clazz.overrideMethod (c$, "addTimeOfDay",
153 function (hours, minutes, seconds, millis) {
157 Clazz.defineMethod (c$, "setTimeOfDay",
158 function (fraction) {
161 Clazz.defineMethod (c$, "isNormalized",
163 return this.date.isNormalized ();
165 Clazz.defineMethod (c$, "isStandardTime",
167 return this.date.isStandardTime ();
169 Clazz.overrideMethod (c$, "setStandardTime",
170 function (standardTime) {
173 Clazz.defineMethod (c$, "isDaylightTime",
175 return this.date.isDaylightTime ();
177 Clazz.overrideMethod (c$, "setLocale",
180 }, "java.util.Locale");
181 Clazz.defineMethod (c$, "getZone",
183 return this.date.getZone ();
185 Clazz.overrideMethod (c$, "setZone",
186 function (zoneinfo) {
189 }, "java.util.TimeZone");
190 Clazz.defineMethod (c$, "isSameDate",
192 return date.isSameDate (date);
193 }, "jssun.util.calendar.CalendarDate");
194 Clazz.defineMethod (c$, "equals",
198 }if (!(Clazz.instanceOf (obj, jssun.util.calendar.ImmutableGregorianDate))) {
200 }return this.date.equals ((obj).date);
202 Clazz.defineMethod (c$, "hashCode",
204 return this.date.hashCode ();
206 Clazz.defineMethod (c$, "toString",
208 return this.date.toString ();
210 Clazz.overrideMethod (c$, "setDayOfWeek",
211 function (dayOfWeek) {
214 Clazz.overrideMethod (c$, "setNormalized",
215 function (normalized) {
218 Clazz.defineMethod (c$, "getZoneOffset",
220 return this.date.getZoneOffset ();
222 Clazz.overrideMethod (c$, "setZoneOffset",
226 Clazz.defineMethod (c$, "getDaylightSaving",
228 return this.date.getDaylightSaving ();
230 Clazz.overrideMethod (c$, "setDaylightSaving",
231 function (daylightSaving) {
234 Clazz.defineMethod (c$, "getNormalizedYear",
236 return this.date.getNormalizedYear ();
238 Clazz.overrideMethod (c$, "setNormalizedYear",
239 function (normalizedYear) {
242 Clazz.defineMethod (c$, "unsupported",
244 throw new UnsupportedOperationException ();