2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_util_GregorianCalendar__
5 #define __java_util_GregorianCalendar__
9 #include <java/util/Calendar.h>
10 #include <gcj/array.h>
13 class java::util::GregorianCalendar
: public ::java::util::Calendar
18 GregorianCalendar(::java::util::TimeZone
*);
19 GregorianCalendar(::java::util::Locale
*);
20 GregorianCalendar(::java::util::TimeZone
*, ::java::util::Locale
*);
22 GregorianCalendar(::java::util::TimeZone
*, ::java::util::Locale
*, jboolean
);
24 GregorianCalendar(jint
, jint
, jint
);
25 GregorianCalendar(jint
, jint
, jint
, jint
, jint
);
26 GregorianCalendar(jint
, jint
, jint
, jint
, jint
, jint
);
27 virtual void setGregorianChange(::java::util::Date
*);
28 virtual ::java::util::Date
* getGregorianChange();
29 virtual jboolean
isLeapYear(jint
);
31 jint
getWeekDay(jint
, jint
);
32 jint
getFirstDayOfMonth(jint
, jint
);
33 jboolean
isGregorian(jint
, jint
);
34 void nonLeniencyCheck();
35 public: // actually protected
36 virtual void computeTime();
38 jlong
getLinearDay(jint
, jint
, jboolean
);
39 void calculateDay(JArray
< jint
> *, jlong
, jboolean
);
40 public: // actually protected
41 virtual void computeFields();
43 virtual jint
hashCode();
44 virtual jboolean
equals(::java::lang::Object
*);
45 virtual void add(jint
, jint
);
46 virtual void roll(jint
, jboolean
);
48 void cleanUpAfterRoll(jint
, jint
);
50 virtual void roll(jint
, jint
);
51 virtual jint
getMinimum(jint
);
52 virtual jint
getMaximum(jint
);
53 virtual jint
getGreatestMinimum(jint
);
54 virtual jint
getLeastMaximum(jint
);
55 virtual jint
getActualMinimum(jint
);
56 virtual jint
getActualMaximum(jint
);
57 static const jint BC
= 0;
58 static const jint AD
= 1;
60 jlong
__attribute__((aligned(__alignof__( ::java::util::Calendar
)))) gregorianCutover
;
61 public: // actually package-private
62 static const jlong serialVersionUID
= -8125100834729963327LL;
64 static const jint EPOCH_DAYS
= 719162;
65 static JArray
< jint
> * minimums
;
66 static JArray
< jint
> * maximums
;
68 static ::java::lang::Class
class$
;
71 #endif // __java_util_GregorianCalendar__