SimpleDateFormat.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_text_SimpleDateFormat__
  3. #define __java_text_SimpleDateFormat__
  4. #pragma interface
  5. #include <java/text/DateFormat.h>
  6. extern "Java"
  7. {
  8. namespace gnu
  9. {
  10. namespace java
  11. {
  12. namespace text
  13. {
  14. class FormatBuffer;
  15. }
  16. }
  17. }
  18. namespace java
  19. {
  20. namespace text
  21. {
  22. class AttributedCharacterIterator;
  23. class DateFormatSymbols;
  24. class FieldPosition;
  25. class ParsePosition;
  26. class SimpleDateFormat;
  27. }
  28. }
  29. }
  30. class java::text::SimpleDateFormat : public ::java::text::DateFormat
  31. {
  32. void readObject(::java::io::ObjectInputStream *);
  33. void compileFormat(::java::lang::String *);
  34. public:
  35. virtual ::java::lang::String * toString();
  36. SimpleDateFormat();
  37. SimpleDateFormat(::java::lang::String *);
  38. SimpleDateFormat(::java::lang::String *, ::java::util::Locale *);
  39. SimpleDateFormat(::java::lang::String *, ::java::text::DateFormatSymbols *);
  40. virtual ::java::lang::String * toPattern();
  41. virtual ::java::lang::String * toLocalizedPattern();
  42. virtual void applyPattern(::java::lang::String *);
  43. virtual void applyLocalizedPattern(::java::lang::String *);
  44. private:
  45. ::java::lang::String * translateLocalizedPattern(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  46. public:
  47. virtual ::java::util::Date * get2DigitYearStart();
  48. virtual void set2DigitYearStart(::java::util::Date *);
  49. virtual ::java::text::DateFormatSymbols * getDateFormatSymbols();
  50. virtual void setDateFormatSymbols(::java::text::DateFormatSymbols *);
  51. virtual jboolean equals(::java::lang::Object *);
  52. virtual jint hashCode();
  53. private:
  54. void formatWithAttribute(::java::util::Date *, ::gnu::java::text::FormatBuffer *, ::java::text::FieldPosition *);
  55. public:
  56. virtual ::java::lang::StringBuffer * format(::java::util::Date *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  57. virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
  58. private:
  59. void withLeadingZeros(jint, jint, ::gnu::java::text::FormatBuffer *);
  60. jboolean expect(::java::lang::String *, ::java::text::ParsePosition *, jchar);
  61. public:
  62. virtual ::java::util::Date * parse(::java::lang::String *, ::java::text::ParsePosition *);
  63. private:
  64. ::java::lang::Integer * computeOffset(::java::lang::String *, ::java::text::ParsePosition *);
  65. void computeCenturyStart();
  66. public:
  67. virtual ::java::lang::Object * clone();
  68. private:
  69. ::java::util::ArrayList * __attribute__((aligned(__alignof__( ::java::text::DateFormat)))) tokens;
  70. ::java::text::DateFormatSymbols * formatData;
  71. ::java::util::Date * defaultCenturyStart;
  72. jint defaultCentury;
  73. ::java::lang::String * pattern;
  74. jint serialVersionOnStream;
  75. static const jlong serialVersionUID = 4774881970558875024LL;
  76. static ::java::lang::String * standardChars;
  77. static const jint RFC822_TIMEZONE_FIELD = 23;
  78. public:
  79. static ::java::lang::Class class$;
  80. };
  81. #endif // __java_text_SimpleDateFormat__