summaryrefslogtreecommitdiff
path: root/libjava/java/text/DateFormat.h
blob: 5f5241fcb11d757aa7b59787f45f3406f8d2bd7e (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_text_DateFormat__
#define __java_text_DateFormat__

#pragma interface

#include <java/text/Format.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace text
    {
        class DateFormat;
        class FieldPosition;
        class NumberFormat;
        class ParsePosition;
    }
  }
}

class java::text::DateFormat : public ::java::text::Format
{

public: // actually protected
  DateFormat();
public:
  virtual jboolean equals(::java::lang::Object *);
  virtual ::java::lang::Object * clone();
  virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  virtual ::java::lang::String * format(::java::util::Date *);
  virtual ::java::lang::StringBuffer * format(::java::util::Date *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *) = 0;
  static JArray< ::java::util::Locale * > * getAvailableLocales();
  virtual ::java::util::Calendar * getCalendar();
private:
  static ::java::text::DateFormat * computeInstance(jint, ::java::util::Locale *, jboolean, jboolean);
  static ::java::text::DateFormat * computeInstance(jint, jint, ::java::util::Locale *, jboolean, jboolean);
  static ::java::text::DateFormat * computeDefault(jint, jint, jboolean, jboolean);
public:
  static ::java::text::DateFormat * getDateInstance();
  static ::java::text::DateFormat * getDateInstance(jint);
  static ::java::text::DateFormat * getDateInstance(jint, ::java::util::Locale *);
  static ::java::text::DateFormat * getDateTimeInstance();
  static ::java::text::DateFormat * getDateTimeInstance(jint, jint);
  static ::java::text::DateFormat * getDateTimeInstance(jint, jint, ::java::util::Locale *);
  static ::java::text::DateFormat * getInstance();
  virtual ::java::text::NumberFormat * getNumberFormat();
  static ::java::text::DateFormat * getTimeInstance();
  static ::java::text::DateFormat * getTimeInstance(jint);
  static ::java::text::DateFormat * getTimeInstance(jint, ::java::util::Locale *);
  virtual ::java::util::TimeZone * getTimeZone();
  virtual jint hashCode();
  virtual jboolean isLenient();
  virtual ::java::util::Date * parse(::java::lang::String *);
  virtual ::java::util::Date * parse(::java::lang::String *, ::java::text::ParsePosition *) = 0;
  virtual ::java::lang::Object * parseObject(::java::lang::String *, ::java::text::ParsePosition *);
  virtual void setCalendar(::java::util::Calendar *);
  virtual void setLenient(jboolean);
  virtual void setNumberFormat(::java::text::NumberFormat *);
  virtual void setTimeZone(::java::util::TimeZone *);
private:
  static const jlong serialVersionUID = 7218322306649953788LL;
public: // actually protected
  ::java::util::Calendar * __attribute__((aligned(__alignof__( ::java::text::Format)))) calendar;
  ::java::text::NumberFormat * numberFormat;
public:
  static const jint FULL = 0;
  static const jint LONG = 1;
  static const jint MEDIUM = 2;
  static const jint SHORT = 3;
  static const jint DEFAULT = 2;
  static const jint ERA_FIELD = 0;
  static const jint YEAR_FIELD = 1;
  static const jint MONTH_FIELD = 2;
  static const jint DATE_FIELD = 3;
  static const jint HOUR_OF_DAY1_FIELD = 4;
  static const jint HOUR_OF_DAY0_FIELD = 5;
  static const jint MINUTE_FIELD = 6;
  static const jint SECOND_FIELD = 7;
  static const jint MILLISECOND_FIELD = 8;
  static const jint DAY_OF_WEEK_FIELD = 9;
  static const jint DAY_OF_YEAR_FIELD = 10;
  static const jint DAY_OF_WEEK_IN_MONTH_FIELD = 11;
  static const jint WEEK_OF_YEAR_FIELD = 12;
  static const jint WEEK_OF_MONTH_FIELD = 13;
  static const jint AM_PM_FIELD = 14;
  static const jint HOUR1_FIELD = 15;
  static const jint HOUR0_FIELD = 16;
  static const jint TIMEZONE_FIELD = 17;
  static ::java::lang::Class class$;
};

#endif // __java_text_DateFormat__