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