summaryrefslogtreecommitdiff
path: root/libjava/java/util/GregorianCalendar.h
blob: 9fe77cde5a0478bfaa508fbaa1923dd5d74ed5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_GregorianCalendar__
#define __java_util_GregorianCalendar__

#pragma interface

#include <java/util/Calendar.h>
#include <gcj/array.h>


class java::util::GregorianCalendar : public ::java::util::Calendar
{

public:
  GregorianCalendar();
  GregorianCalendar(::java::util::TimeZone *);
  GregorianCalendar(::java::util::Locale *);
  GregorianCalendar(::java::util::TimeZone *, ::java::util::Locale *);
private:
  GregorianCalendar(::java::util::TimeZone *, ::java::util::Locale *, jboolean);
public:
  GregorianCalendar(jint, jint, jint);
  GregorianCalendar(jint, jint, jint, jint, jint);
  GregorianCalendar(jint, jint, jint, jint, jint, jint);
  virtual void setGregorianChange(::java::util::Date *);
  virtual ::java::util::Date * getGregorianChange();
  virtual jboolean isLeapYear(jint);
private:
  jint getWeekDay(jint, jint);
  jint getFirstDayOfMonth(jint, jint);
  jboolean isGregorian(jint, jint);
  void nonLeniencyCheck();
public: // actually protected
  virtual void computeTime();
private:
  jlong getLinearDay(jint, jint, jboolean);
  void calculateDay(JArray< jint > *, jlong, jboolean);
public: // actually protected
  virtual void computeFields();
public:
  virtual jint hashCode();
  virtual jboolean equals(::java::lang::Object *);
  virtual void add(jint, jint);
  virtual void roll(jint, jboolean);
private:
  void cleanUpAfterRoll(jint, jint);
public:
  virtual void roll(jint, jint);
  virtual jint getMinimum(jint);
  virtual jint getMaximum(jint);
  virtual jint getGreatestMinimum(jint);
  virtual jint getLeastMaximum(jint);
  virtual jint getActualMinimum(jint);
  virtual jint getActualMaximum(jint);
  static const jint BC = 0;
  static const jint AD = 1;
private:
  jlong __attribute__((aligned(__alignof__( ::java::util::Calendar)))) gregorianCutover;
public: // actually package-private
  static const jlong serialVersionUID = -8125100834729963327LL;
private:
  static const jint EPOCH_DAYS = 719162;
  static JArray< jint > * minimums;
  static JArray< jint > * maximums;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_GregorianCalendar__