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