DateFormat.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_text_DateFormat__
  3. #define __java_text_DateFormat__
  4. #pragma interface
  5. #include <java/text/Format.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace text
  12. {
  13. class DateFormat;
  14. class FieldPosition;
  15. class NumberFormat;
  16. class ParsePosition;
  17. }
  18. }
  19. }
  20. class java::text::DateFormat : public ::java::text::Format
  21. {
  22. public: // actually protected
  23. DateFormat();
  24. public:
  25. virtual jboolean equals(::java::lang::Object *);
  26. virtual ::java::lang::Object * clone();
  27. virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  28. virtual ::java::lang::String * format(::java::util::Date *);
  29. virtual ::java::lang::StringBuffer * format(::java::util::Date *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *) = 0;
  30. static JArray< ::java::util::Locale * > * getAvailableLocales();
  31. virtual ::java::util::Calendar * getCalendar();
  32. private:
  33. static ::java::text::DateFormat * computeInstance(jint, ::java::util::Locale *, jboolean, jboolean);
  34. static ::java::text::DateFormat * computeInstance(jint, jint, ::java::util::Locale *, jboolean, jboolean);
  35. static ::java::text::DateFormat * computeDefault(jint, jint, jboolean, jboolean);
  36. public:
  37. static ::java::text::DateFormat * getDateInstance();
  38. static ::java::text::DateFormat * getDateInstance(jint);
  39. static ::java::text::DateFormat * getDateInstance(jint, ::java::util::Locale *);
  40. static ::java::text::DateFormat * getDateTimeInstance();
  41. static ::java::text::DateFormat * getDateTimeInstance(jint, jint);
  42. static ::java::text::DateFormat * getDateTimeInstance(jint, jint, ::java::util::Locale *);
  43. static ::java::text::DateFormat * getInstance();
  44. virtual ::java::text::NumberFormat * getNumberFormat();
  45. static ::java::text::DateFormat * getTimeInstance();
  46. static ::java::text::DateFormat * getTimeInstance(jint);
  47. static ::java::text::DateFormat * getTimeInstance(jint, ::java::util::Locale *);
  48. virtual ::java::util::TimeZone * getTimeZone();
  49. virtual jint hashCode();
  50. virtual jboolean isLenient();
  51. virtual ::java::util::Date * parse(::java::lang::String *);
  52. virtual ::java::util::Date * parse(::java::lang::String *, ::java::text::ParsePosition *) = 0;
  53. virtual ::java::lang::Object * parseObject(::java::lang::String *, ::java::text::ParsePosition *);
  54. virtual void setCalendar(::java::util::Calendar *);
  55. virtual void setLenient(jboolean);
  56. virtual void setNumberFormat(::java::text::NumberFormat *);
  57. virtual void setTimeZone(::java::util::TimeZone *);
  58. private:
  59. static const jlong serialVersionUID = 7218322306649953788LL;
  60. public: // actually protected
  61. ::java::util::Calendar * __attribute__((aligned(__alignof__( ::java::text::Format)))) calendar;
  62. ::java::text::NumberFormat * numberFormat;
  63. public:
  64. static const jint FULL = 0;
  65. static const jint LONG = 1;
  66. static const jint MEDIUM = 2;
  67. static const jint SHORT = 3;
  68. static const jint DEFAULT = 2;
  69. static const jint ERA_FIELD = 0;
  70. static const jint YEAR_FIELD = 1;
  71. static const jint MONTH_FIELD = 2;
  72. static const jint DATE_FIELD = 3;
  73. static const jint HOUR_OF_DAY1_FIELD = 4;
  74. static const jint HOUR_OF_DAY0_FIELD = 5;
  75. static const jint MINUTE_FIELD = 6;
  76. static const jint SECOND_FIELD = 7;
  77. static const jint MILLISECOND_FIELD = 8;
  78. static const jint DAY_OF_WEEK_FIELD = 9;
  79. static const jint DAY_OF_YEAR_FIELD = 10;
  80. static const jint DAY_OF_WEEK_IN_MONTH_FIELD = 11;
  81. static const jint WEEK_OF_YEAR_FIELD = 12;
  82. static const jint WEEK_OF_MONTH_FIELD = 13;
  83. static const jint AM_PM_FIELD = 14;
  84. static const jint HOUR1_FIELD = 15;
  85. static const jint HOUR0_FIELD = 16;
  86. static const jint TIMEZONE_FIELD = 17;
  87. static ::java::lang::Class class$;
  88. };
  89. #endif // __java_text_DateFormat__